I ran this command: sudo certbot --nginx -d lfsc.shop
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for lfsc.shop
An unexpected error occurred:
AttributeError: can't set attribute
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):
DigitalOcean (Droplet)
The operating system my web server runs on is (include version):
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
My hosting provider, if applicable, is:
DigitalOcean (Droplet), Domain name from GoDaddy
I can login to a root shell on my machine (yes or no, or I don't know):
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):
DigitalOcean Droplet Web Console
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
It keeps telling me that certbot 2.1.0 is the latest version
trying to force it to update to 2.3.0 just gives me
error: externally-managed-environment
Ă— This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
Certbot recommends using snap to install Certbot. See Certbot Instructions | Certbot for more information. (All Ubuntu's have the same instructions, so you can use e.g. Ubuntu 20 for your Ubuntu 23.)
Alternatively you could use the pip instructions, but that's not really recommended.
Even with 2.10.0 im still failing the tests
I get errors with the following hint:
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
This happens even when I use "sudo certbot certonly --nginx"
Im now trying to edit the /etc/nginx/sites-available/default file to see if the issues comes from there. 80/tcp and 443/tcp is already allowed. My own firewall is also not blocking anything
By upgrading you've fixed the "AttributeError: can't set attribute" error (which was the goal of upgrading, as you didn't get the actual error due to the attribute problem) and now you're faced with the actual error preventing your certificate issuance.
Please post the entire error message, as the error is different now. Although the hint hints to a "time out, probablu firewall issue" error message from the ACME server.
By the way: the hostname lfsc.shop has 3 IP addresses configured. Those are probably 3 different hosts? At least one of them isn't working: 188.166.217.71 is giving a connection refused error. The other 2 a HTTP 405 not allowed result.