Nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/exemple.com/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/example.com/fullch

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: example.com

I ran this command: I ran a dockerfile compose and stop start my nginx server

It produced this output: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/exemple.com/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/example.com/fullch

My web server is (include version): nginx 1.23

The operating system my web server runs on is (include version): ubuntu

My hosting provider, if applicable, is: AWS

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.32.2

If I ran a certbot certificates get me the output

Found the following certs:
Certificate Name: http://example.com
Serial Number: 38853da10fcaf49bb287f66a53b647153d1
Key Type: RSA
Domains: http://example.com
Expiry Date: 2023-04-12 11:55:41+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/example.comr/privkey.pem

my docker compose its like :

volumes:
  - ./frontend:/app/
  - '/app/node_modules'
  - ./nginx.conf:/etc/nginx/conf.d/default.conf
  - ./data/certbot/letsencrypt:/etc/letsencrypt 
  - ./data/certbot/www:/var/www/certbot
  - /etc/letsencrypt:/etc/letsencrypt

Hello @thveloso, welcome to the Let's Encrypt community. :slightly_smiling_face:

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Thank you for assisting us in helping YOU!

Isn't this a duplicate bind? Can you show the full docker-compose file?

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.