Acme challenge 404 error with apache

My domain is: http://podporsvehokadernika.cz/

I ran this command: sudo certbot --apache

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?


1: podporsvehokadernika.cz


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for podporsvehokadernika.cz
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. podporsvehokadernika.cz (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://podporsvehokadernika.cz/.well-known/acme-challenge/_idSJUiocLTMhs4woLyRP4jVzEtxZBiLkqf6Tme1J4Y [2a02:2b88:1:4::16]: “\n\n404 Not Found\n\n

Not Found

\n<p”

IMPORTANT NOTES:

My web server is (include version): Apache/2.4.29

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

My hosting provider, if applicable, is:

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): 0.31.0

Please if you could help me resolve this issue, I’ve been looking through this forum for similar errors, but no solution seems to work.

1 Like

Hi @anciksfg

checking your domain you have ipv4 and ipv6 - podporsvehokadernika.cz - Make your website better - DNS, redirects, mixed content, certificates

Host T IP-Address is auth. ∑ Queries ∑ Timeout
podporsvehokadernika.cz A 158.177.212.183 New York/United States (US) - SoftLayer Hostname: b7.d4.b19e.ip4.static.sl-reverse.com yes 2 0
AAAA 2a02:2b88:1:4::16 Hluboka nad Vltavou/Jihocesky kraj/Czechia (CZ) - WEDOS Internet yes
www.podporsvehokadernika.cz C podporsvehokadernika.cz yes 1 0
A 158.177.212.183 New York/United States (US) - SoftLayer Hostname: b7.d4.b19e.ip4.static.sl-reverse.com yes
AAAA 2a02:2b88:1:4::16 Hluboka nad Vltavou/Jihocesky kraj/Czechia (CZ) - WEDOS Internet yes

But that looks that these are different servers.

And there is different content - http + ipv4 = 62247 Bytes, http + ipv6 = 4344 Bytes.

So

  • find your correct ipv6 and update your dns entry (or)
  • remove the wrong ipv6

Checking your domain Letsencrypt prefers ipv6, so that's critical.

1 Like

Thank you so much! I didn’t notice that DNS entry before, now after updating it works perfectly.

1 Like

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