Some challenges have failed

Very new to hosting a server and this is my first time to get a SSL cert.
While I'm following the guide in the Certbot website, this error popped in.
I have no skill for server managing so please bear with me.
The log is right below.

My domain is: sonfoundry.duckdns.org

I ran this command:

sudo certbot --nginx -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: sonfoundry.duckdns.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1

It produced this output:

Requesting a certificate for sonfoundry.duckdns.org
Performing the following challenges:
http-01 challenge for sonfoundry.duckdns.org
Waiting for verification...
Challenge failed for domain sonfoundry.duckdns.org
http-01 challenge for sonfoundry.duckdns.org

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: sonfoundry.duckdns.org
  Type:   connection
  Detail: IP Address: Fetching http://sonfoundry.duckdns.org/.well-known/acme-challenge/bNxR42bsdQ-vkC8zlJah6utxoPXigk6L7NEQEYI6YD0: Error getting validation data

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Cleaning up challenges
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.

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

My hosting provider, if applicable, is: Oracle Cloud

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

Hi @jjjih, and welcome to the LE community forum :slight_smile:

You must have a working HTTP site before you can obtain a certificate using HTTP authentication.

HTTP [TCP port 80] is not being served OR the requests are being blocked.
See: Let's Debug (letsdebug.net)

5 Likes

@rg305

It solved. Thank you for the early Christmas present:)

3 Likes

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