Some challenges have failed.:

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. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: asankai.info

I ran this command: sudo certbot certonly --webroot -w /var/www/asankai.info/public_html/ -d asankai.info -d www.asankai.info

It produced this output:Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for asankai.info and www.asankai.info

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: asankai.info
Type: unauthorized
Detail: 45.32.118.237: Invalid response from http://asankai.info/.well-known/acme-challenge/8hRcXpRdIwyfMt62fnXERjKMPVM1FoYMNJnp-hWcYTQ: 404

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version): nginx/1.26.0

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

My hosting provider, if applicable, is: vultr

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):certbot 2.9.0

Welcome @Asanka

Would you please show the server block that handles that domain? There looks to be a mismatch between the root statement folder in the server block and the Webroot path on your command

1 Like

server {

    listen 80;
    listen [::]:80;
    server_name asanka.info www.asankai.info;

    root /var/www/asankai.info/public_html;
    index index.php;

    location / {
            try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
            include snippets/fastcgi-php.conf;
            fastcgi_pass unix:/run/php/php8.3-fpm.sock;
            include /etc/nginx/includes/fastcgi_optimize.conf;
    }

    include /etc/nginx/includes/browser_caching.conf;       

    access_log /var/log/nginx/access_asankai.info.log combined buffer=256k flush=60m;
    error_log /var/log/nginx/error_asankai.info.log;

}

1 Like

Looks like the domain name was misspelled :slight_smile:

2 Likes

Thanks a lot

2 Likes