Problem in ubuntu 16.04 EC2 with cerbot --apache

Hi I’m trying to install and use letsencrypt with cerbot in my domain just4goals.com with an apache and, tomcat server in a AWS EC2.

My problem is when I ran this command:
sudo certbot --apache

It produced this output:
Type: unauthorized
Detail: Invalid response from
http://just4goals.com/.well-known/acme-challenge/LgegFhsYi6eJoYjBkTdlJ_DNcViurlxxi3W7TbnMI-U
[18.219.199.31]: 503

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.

Am i doing something wrong?, should I remove or add something?

Thanks!

Hi @Absant

you have three ip addresses ( https://check-your-website.server-daten.de/?q=just4goals.com ):

Host T IP-Address is auth. ∑ Queries ∑ Timeout
just4goals.com A 18.219.144.176 yes 1 0
A 18.219.199.31 yes 1 0
A 52.14.43.34 yes 1 0
AAAA yes
www.just4goals.com Name Error yes 1 0

But two don't work:

Domainname Http-Status redirect Sec. G
http://just4goals.com/
52.14.43.34 301 https://just4goals.com/ 0.397 A
http://just4goals.com/
18.219.144.176 503 0.227 S
Service Unavailable: Back-end server is at capacity
http://just4goals.com/
18.219.199.31 503 0.227 S
Service Unavailable: Back-end server is at capacity
https://just4goals.com/
18.219.144.176 503 1.150 S
Service Unavailable: Back-end server is at capacity
https://just4goals.com/
18.219.199.31 503 1.066 S
Service Unavailable: Back-end server is at capacity
https://just4goals.com/
52.14.43.34 -2 1.323 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 52.14.43.34:443
http://just4goals.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
18.219.144.176 503 0.230 S
Service Unavailable: Back-end server is at capacity
Visible Content:
http://just4goals.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
18.219.199.31 503 0.226 S
Service Unavailable: Back-end server is at capacity
Visible Content:
http://just4goals.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
52.14.43.34 404 0.223 A
Not Found
Visible Content: Not Found The requested URL /.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de was not found on this server. Apache/2.4.18 (Ubuntu) Server at just4goals.com Port 80

Both 18.* addresses have a problem.

So check these addresses or remove the dns entries.

1 Like

Thank you so much, it works! :grin:

2 Likes

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