wmnnd / nginx-certbot

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

Always challenge failed #130

Open DiogoAbdalla opened 2 years ago

DiogoAbdalla commented 2 years ago

Hey.

First of all, thank you for this. Ive been using for a while this little personal project.

That said, it stopped working here. It always gives me "Challenge failed" now

I tried a fresh clone from this repo, just changed the domain and ran and the result is the same:

http-01 challenge for mydomain.app
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain mydomain.app
http-01 challenge for mydomain.app
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: mydomain.app
   Type:   connection
   Detail: xxx.xxx.xxx.xx: Fetching
   http://mydomain.app/.well-known/acme-challenge/8IDnt4bKrZWPH9vz7duJR-XyTpEWLHGhbNXCmr2bm6U:
   Connection refused

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

Im fairly sure the domain is correctly configured, as this used to work and I didint change anything

Do you have any idea why this is happening? Any tips would be really appreciated

belmarca commented 1 year ago

I have the same error.

belmarca commented 1 year ago

It sometimes 404's, sometimes Connection refused, with the same configuration. I can easily serve traffic with just my docker-compose on port 80. I will have to investigate later.

git-clone-abhinav commented 1 year ago

Any leads on this guys ?