Hello,
I got ‘connection refused’ response, then I tried several troubleshoot but doesn’t seem helpful so far.
- Tried with --debug-challenges, the challenge URL is accessible from browser, had no idea why the server cannot access it
-
https://letsdebug.net/jakartatimur.imigrasi.go.id/79943 said
Get http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/letsdebug-test: dial tcp 180.178.97.84:80: connect: connection refused
I created the same filename ‘letsdebug-test’ and opened thru browser, it worked. - https://check-your-website.server-daten.de/?q=jakartatimur.imigrasi.go.id - section 5. Url-Checks said all ok except https request.
My domain is: jakartatimur.imigrasi.go.id
I ran this command:
sudo certbot --debug-challenges --apache -d jakartatimur.imigrasi.go.id -v
It produced this output:
Reporting to user: The following errors were reported by the server:
Domain: jakartatimur.imigrasi.go.id
Type: connection
Detail: Fetching http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/pH7JjiJiz35MTuMDB6dIyVhxil-e4QKUFkBqDiC2sEI: 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.
Encountered exception:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. jakartatimur.imigrasi.go.id (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the
domain :: Fetching http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/pH7JjiJiz35MTuMDB6dIyVhxil-e4QKUFkBqDiC2sEI: Connection refused
Calling registered functions
Cleaning up challenges
Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.26.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1364, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1124, in run
certname, lineage)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 120, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 391, in obtain_and_enroll_certificate cert, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 334, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 370, in _get_order_and_authorizations authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. jakartatimur.imigrasi.go.id (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the
domain :: Fetching http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/pH7JjiJiz35MTuMDB6dIyVhxil-e4QKUFkBqDiC2sEI: Connection refused
Failed authorization procedure. jakartatimur.imigrasi.go.id (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/pH7JjiJiz35MTuMDB6dIyVhxil-e4QKUFkBqDiC2sEI: Connection refused
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: jakartatimur.imigrasi.go.id
Type: connection
Detail: Fetching
http://jakartatimur.imigrasi.go.id/.well-known/acme-challenge/pH7JjiJiz35MTuMDB6dIyVhxil-e4QKUFkBqDiC2sEI:
Connection refusedTo 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.
My web server is (include version): Apache/2.4.29 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 18.04.1
My hosting provider, if applicable, is: Self hosted
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 0.26.1