Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renew by service always failed #18

Closed
Drafteed opened this issue Aug 19, 2021 · 1 comment
Closed

Renew by service always failed #18

Drafteed opened this issue Aug 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Drafteed
Copy link

Hello! Thx for nice plugin!

Describe the bug

Automatic reneweal by systemd timer always failed. But certbot renew works fine.

'Namespace' object has no attribute 'dns_duckdns_propagation_seconds'. Skipping.

To Reproduce

systemctl start snap.certbot.renew.service
or
snap run certbot.renew

Expected behavior

root@HMS:~# systemctl status snap.certbot.renew.service
● snap.certbot.renew.service - Service for snap application certbot.renew
     Loaded: loaded (/etc/systemd/system/snap.certbot.renew.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2021-08-19 19:58:11 MSK; 12min ago
TriggeredBy: ● snap.certbot.renew.timer
    Process: 171958 ExecStart=/usr/bin/snap run --timer=00:00~24:00/2 certbot.renew (code=exited, status=1/FAILURE)
   Main PID: 171958 (code=exited, status=1/FAILURE)

Aug 19 19:58:06 HMS systemd[1]: Starting Service for snap application certbot.renew...
Aug 19 19:58:11 HMS certbot.renew[171958]: Renewal configuration file /etc/letsencrypt/renewal/XXXXXXXXXXXXX.duckdns.org.conf (cert: XXXXXXXXXXXXX.duckdns.org) produced an une>
Aug 19 19:58:11 HMS certbot.renew[171958]: 0 renew failure(s), 1 parse failure(s)
Aug 19 19:58:11 HMS systemd[1]: snap.certbot.renew.service: Main process exited, code=exited, status=1/FAILURE
Aug 19 19:58:11 HMS systemd[1]: snap.certbot.renew.service: Failed with result 'exit-code'.
Aug 19 19:58:11 HMS systemd[1]: Failed to start Service for snap application certbot.renew.

[3]+  Stopped                 systemctl status snap.certbot.renew.service
root@HMS:~# snap run certbot.renew
Renewal configuration file /etc/letsencrypt/renewal/XXXXXXXXXXXXX.duckdns.org.conf (cert: XXXXXXXXXXXXX.duckdns.org) produced an unexpected error: 'Namespace' object has no attribute 'dns_duckdns_propagation_seconds'. Skipping.
0 renew failure(s), 1 parse failure(s)
root@HMS:~# sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/XXXXXXXXXXXXX.duckdns.org.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator dns-duckdns, Installer None
Simulating renewal of an existing certificate for XXXXXXXXXXXXX.duckdns.org
Performing the following challenges:
dns-01 challenge for XXXXXXXXXXXXX.duckdns.org
Waiting 60 seconds for DNS changes to propagate
Waiting for verification...
Cleaning up challenges

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/XXXXXXXXXXXXX.duckdns.org/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all simulated renewals succeeded:
  /etc/letsencrypt/live/XXXXXXXXXXXXX.duckdns.org/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Certbot command

certbot certonly --non-interactive --agree-tos --email XXXXXXXX@XXXX.XXX --preferred-challenges dns --authenticator dns-duckdns --dns-duckdns-token XXXXXXXXXX --dns-duckdns-propagation-seconds 60 -d "XXXXXXXXXXX.duckdns.org"

Versions (please complete the following version information):

  • certbot: 1.15.0
  • certbot_dns_duckdns: 0.6

Additional context
Add any other context about the problem here.

@Drafteed Drafteed added the bug Something isn't working label Aug 19, 2021
@Drafteed
Copy link
Author

Resolved by delete snap certbot package and install pure python3 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant