wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose
MIT License
3.16k stars 1.17k forks source link

Certbot failed to authenticate some domains #117

Closed Cosmicoppai closed 3 years ago

Cosmicoppai commented 3 years ago
Requesting a certificate for pbl.asia and www.pbl.asia

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: pbl.asia
  Type:   unauthorized
  Detail: Invalid response from http://pbl.asia/.well-known/acme-challenge/hzQ1MBBnKOxuTA6V9ZnpDR3Vm6Yo1i0-2oFugPoPk8o [34.102.136.180]: "<!doctype html><html lang=\"en\"><head><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"><meta name=\"viewport\" con"

  Domain: www.pbl.asia
  Type:   unauthorized
  Detail: Invalid response from http://www.pbl.asia/.well-known/acme-challenge/5oIf1h7kThJhuM80k56pOvTdCscuY9y02cEyMOPPMkY [34.102.136.180]: "<!doctype html><html lang=\"en\"><head><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"><meta name=\"viewport\" con"

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ERROR: 1

### Reloading nginx ...
2021/09/11 14:08:37 [emerg] 13#13: cannot load certificate "/etc/letsencrypt/live/pbl.asia/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/pbl.asia/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/pbl.asia/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/pbl.asia/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Cosmicoppai commented 3 years ago

There was some error in volume binding.

hungpv35 commented 1 year ago

There was some error in volume binding.

what do you do to fix this problem. any update. thanks

Cosmicoppai commented 1 year ago

@hungpv35 It's been a while, I'm unable to recall the actual solution, but I'm attaching the link of my nginx.conf and docker-compose.

https://github.com/Cosmicoppai/chi_url/blob/master/nginx/nginx.conf https://github.com/Cosmicoppai/chi_url/blob/master/docker-compose.yaml

Hope this will help.