Hi,
Im new to this, I was trying to setup reverse proxy with nginx to my webserver running on port 80. But I messed up something and now I cant renew my certificate. I was also trying to disable nginx and just use my webserver and get certificate using certbot. Its not working and I dont know what to do. I dont really need nginx just want to get my certificate using certbot, and use forgejo as webserver. But all the guides I found used nginx as rewerse proxy so thats why I used it.
My domain is:
weforgecode.xyz
I ran this command:
$ sudo certbot certonly --webroot Saving debug log to /var/log/letsencrypt/letsencrypt.log Please enter the domain name(s) you would like on your certificate (comma and/or space separated) (Enter 'c' to cancel): weforgecode.xyz Requesting a certificate for weforgecode.xyz 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.
$ sudo certbot renew --dry-run Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing /etc/letsencrypt/renewal/weforgecode.xyz.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Renewal configuration file /etc/letsencrypt/renewal/weforgecode.xyz.conf is broken. The error was: expected /etc/letsencrypt/live/weforgecode.xyz/privkey.pem to be a symlink Skipping. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No simulated renewals were attempted. Additionally, the following renewal configurations were invalid: /etc/letsencrypt/renewal/weforgecode.xyz.conf (parsefail) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 renew failure(s), 1 parse failure(s) 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):
forgejo-1.20.5
The operating system my web server runs on is (include version):
Debian GNU/Linux 12 (bookworm) x86_64
Kernel:
6.1.0-10-amd64
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):
no? well there is administrative options such as changing user names but no options related to networking
The version of my client is:
certbot 2.1.0
list of certificates:
$ sudo certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log Renewal configuration file /etc/letsencrypt/renewal/weforgecode.xyz.conf produced an unexpected error: expected /etc/letsencrypt/live/weforgecode.xyz/privkey.pem to be a symlink. Skipping. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The following renewal configurations were invalid: /etc/letsencrypt/renewal/weforgecode.xyz.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
last lines in log:
2023-10-11 08:55:32,762:DEBUG:certbot._internal.renewal:Traceback was: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/certbot/_internal/renewal.py", line 75, in _reconstitute renewal_candidate = storage.RenewableCert(full_path, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/certbot/_internal/storage.py", line 506, in __init__ self._check_symlinks() File "/usr/lib/python3/dist-packages/certbot/_internal/storage.py", line 585, in _check_symlinks raise errors.CertStorageError( certbot.errors.CertStorageError: expected /etc/letsencrypt/live/weforgecode.xyz/privkey.pem to be a symlink 2023-10-11 08:55:32,762:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2023-10-11 08:55:32,763:DEBUG:certbot._internal.display.obj:Notifying user: No simulated renewals were attempted. 2023-10-11 08:55:32,764:DEBUG:certbot._internal.display.obj:Notifying user: Additionally, the following renewal configurations were invalid: 2023-10-11 08:55:32,765:DEBUG:certbot._internal.display.obj:Notifying user: /etc/letsencrypt/renewal/weforgecode.xyz.conf (parsefail) 2023-10-11 08:55:32,765:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2023-10-11 08:55:32,766:DEBUG:certbot._internal.log:Exiting abnormally: Traceback (most recent call last): File "/usr/bin/certbot", line 33, in <module> sys.exit(load_entry_point('certbot==2.1.0', 'console_scripts', 'certbot')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/certbot/main.py", line 19, in main return internal_main.main(cli_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1736, in main return config.func(config, plugins) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1629, in renew renewal.handle_renewal_request(config) File "/usr/lib/python3/dist-packages/certbot/_internal/renewal.py", line 558, in handle_renewal_request raise errors.Error( certbot.errors.Error: 0 renew failure(s), 1 parse failure(s) 2023-10-11 08:55:32,768:ERROR:certbot._internal.log:0 renew failure(s), 1 parse failure(s)