Getamp postSetupHTTPS keeps failing

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: Ubuntu 20.04.6 LTS (Focal Fossa)

Product Name/Version: AMP 2.4.4

Problem Description: I am running getamp postSetupHTTPS and am getting an error because the challenge is failing.

domain: (subdomain).(domain).com
type: unauthorized
Detail:(myip) invalid response from http://(mysubdomain).(mydomain)/.well-known/acme-challenge/(challengestring)

“to fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record for that domain contain the right IP Address.” (Double checked DNS record and it is correctly pointing) (ex. amp.(mydomain).com to my public ip address)

[Error] Certbot failed with code 1.
failed to configure nginx. Please check (logfile) aborting.

Log file does not show Anything about why it failed.

Steps to reproduce:

  • Step 1: run getamp postSetupHTTPS
  • Step 2 Follow prompts with entering correct info and then it fails.

Actions taken to resolve so far:
checked A record. verified it is pointing correctly to my public ip. amp.(mydomain).com to puiblic ip.
Double checked made sure port 80 and 443 were port forwarded.
currently have ufw disabled on OS.
Restarted the server.
ran setup again. same thing.
Not sure what else to try at this point.

Update AMP as an initial step

Funny I thought I had it up to date.

Didn’t realize when I went to do the update I get "Failed to fetch 404 Not Found [IP 443]

Any suggestions on that?

Any errors when you run apt update?

Your repo key is probably expired

That is exactly what is going on with that. I can’t believe I didn’t notice that earlier.

Appears the repo key is expired. I will try and get that fixed first. hopefully a bit of googling will do wonders on that. That way I am not wasting your time.

Everything is now up to date. I have re ran getamp postSetupHTTPS and still receiving the same errors.

Possible that your isp blocks port 80

This was resolved due to the help of Greelan and sneakysneak. Issue was happening due to me being an idiot and trying to port forward the same ports to two machines at the same time.

We came up with a solution to reverse proxy from one to the other.

Thanks guys. You are awesome.

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