So I think it's not a firewall problem.
Where does certbot store the temporary files (tokens)? Is it really /var/www/anjoapp.duckdns.org/.well-known/acme-challenge ?
Because nginx error log says "no such file or directory":
2020/08/23 14:25:32 [error] 1832#1832: *51 open() "/var/www/anjoapp.duckdns.org/.well-known/acme-challenge/V6Qcnp_j8JYG5yybLLNvuaVGkiINSvZ4Vwb6rm4NHZM" failed (2: No such file or directory), client: 34.211.60.134, server: anjoapp.duckdns.org, request: "GET /.well-known/acme-challenge/V6Qcnp_j8JYG5yybLLNvuaVGkiINSvZ4Vwb6rm4NHZM HTTP/1.1", host: "anjoapp.duckdns.org"
Can you share the renewal attempts log in /var/log/letsencrypt/letsencrypt.log? Only this attempt is needed.
By the way, I think you’ll need the webroot authenticator instead of Nginx, since I think Nginx authenticator actually modify your Nginx configuration instead of placing the file, and might cause issue since you already have a block for acme-challenge specified.
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.
2020-08-23 15:48:28,912:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 168, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 239, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. anjoapp.duckdns.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://anjoapp.duckdns.org/.well-known/acme-challenge/7CFOT7CGfeGSUnd4PK7wxdm4rM3b6miXC9F-Y4QP35Y [77.185.114.151]: "\r\n404 Not Found\r\n<body bgcolor="white">\r\n
404 Not Found
\r\n"
2020-08-23 15:48:28,913:DEBUG:certbot.error_handler:Calling registered functions
2020-08-23 15:48:28,914:INFO:certbot.auth_handler:Cleaning up challenges
2020-08-23 15:48:30,560:WARNING:certbot.renewal:Attempting to renew cert (anjoapp.duckdns.org) from /etc/letsencrypt/renewal/anjoapp.duckdns.org.conf produced an unexpected error: Failed authorization procedure. anjoapp.duckdns.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://anjoapp.duckdns.org/.well-known/acme-challenge/7CFOT7CGfeGSUnd4PK7wxdm4rM3b6miXC9F-Y4QP35Y [77.185.114.151]: "\r\n404 Not Found\r\n<body bgcolor="white">\r\n
404 Not Found
\r\n". Skipping.
2020-08-23 15:48:30,569:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 452, in handle_renewal_request
main.renew_cert(lineage_config, plugins, renewal_candidate)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1193, in renew_cert
renewed_lineage = _get_and_save_cert(le_client, config, lineage=lineage)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 116, in _get_and_save_cert
renewal.renew_cert(config, domains, le_client, lineage)
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 310, in renew_cert
new_cert, new_chain, new_key, _ = le_client.obtain_certificate(domains, new_key)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 353, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 389, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 168, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 239, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. anjoapp.duckdns.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://anjoapp.duckdns.org/.well-known/acme-challenge/7CFOT7CGfeGSUnd4PK7wxdm4rM3b6miXC9F-Y4QP35Y [77.185.114.151]: "\r\n404 Not Found\r\n<body bgcolor="white">\r\n
404 Not Found
\r\n"
2020-08-23 15:48:30,571:ERROR:certbot.renewal:All renewal attempts failed. The following certs could not be renewed:
2020-08-23 15:48:30,572:ERROR:certbot.renewal: /etc/letsencrypt/live/anjoapp.duckdns.org/fullchain.pem (failure)
2020-08-23 15:48:30,573:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1272, in renew
renewal.handle_renewal_request(config)
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 477, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
Yes. Thank you for responding!
please look: https://pastebin.com/V7bP4nwE
I can not do any attachment because I am a new user. And I think my post was to big...