geerlingguy / ansible-role-certbot

Ansible Role - Certbot (for Let's Encrypt)
https://galaxy.ansible.com/geerlingguy/certbot/
MIT License
781 stars 347 forks source link

Certbot Service Fails to Restart #126

Closed ProfessorManhattan closed 3 years ago

ProfessorManhattan commented 4 years ago

Hey, I used this role and I'm getting the following error on a fresh install of Ubuntu 20.04 after installing when I run sudo service certbot restart:

● certbot.service - Certbot
     Loaded: loaded (/lib/systemd/system/certbot.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2020-08-22 00:12:40 EDT; 3min 16s ago
TriggeredBy: ● certbot.timer
       Docs: file:///usr/share/doc/python-certbot-doc/html/index.html
             https://letsencrypt.readthedocs.io/en/latest/
    Process: 378406 ExecStart=/usr/bin/certbot -q renew (code=exited, status=1/FAILURE)
   Main PID: 378406 (code=exited, status=1/FAILURE)

Aug 22 00:12:40 Workstation systemd[1]: Starting Certbot...
Aug 22 00:12:40 Workstation certbot[378406]: An unexpected error occurred:
Aug 22 00:12:40 Workstation certbot[378406]: pkg_resources.VersionConflict: (certbot 0.40.0 (/usr/lib/python3/dist-packages), Requirement.parse('certbot>=1.1.0'))
Aug 22 00:12:40 Workstation certbot[378406]: Please see the logfile '/tmp/tmpbyv40qym/log' for more details.
Aug 22 00:12:40 Workstation systemd[1]: certbot.service: Main process exited, code=exited, status=1/FAILURE
Aug 22 00:12:40 Workstation systemd[1]: certbot.service: Failed with result 'exit-code'.
Aug 22 00:12:40 Workstation systemd[1]: Failed to start Certbot.

Any idea on how to fix this? Also, will this prevent the certificates from auto-renewing? Is the Ansible Galaxy role up to date?

stale[bot] commented 3 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 3 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.