Invalid response

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: (as of right now, database is broken, But I know why there is a 500 error on the server, shouldn’t be effecting this at all).

I ran this command:

certbot certonly --webroot -w /var/www/certbot \
    --staging \ \ \
    --rsa-key-size 2048 \
    --agree-tos \
    --force-renewal" certbot

It produced this output:

Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.

 - The following errors were reported by the server:

   Type:   unauthorized
   Detail: Invalid response from
   []: 404

   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.

My web server is (include version):
None, Im using docker to run a command that runs two exectuables (./server and ./db)
(If Im correct that this is indeed talking about nginx, apache, etc).

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

My hosting provider, if applicable, is:
Google cloud, Compute engine

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
Newest, Downloaded latest version last night

1 Like

Hi @neddacs

checking your domain the main things are ok -

Port 80 is open. Checking a not existing file in /.well-known/acme-challenge there is the expected result http status 404 - Not Found.

But: There is no server software visible.

So the first question: Is the webroot path correct?

Really /var/www/certbot? Is there a location definition? Create the two subdirectories


there a file (file name 1234), then try to load that file via

That must work.


Im not quite sure what the --webroot should be equal too, Im using google compute engine to run the docker, and when I ssh into it, it looks like a normal linux directory,
If its looking at whats being served ie what my ./server is doing
my html/javascript/css files are in a /dist/ folder, But my server is serving the whole dist/ folder.
Do you have any idea on how i may find the correct webpath

1 Like

Your webroot is the basic directory of your website.

There, where your main index.html is saved.


I dont seem to have one, Or if an any case can find one

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