Error on letsencrypt renew

  • Recently I discover that letsencrypt didnt renew on my server:


    Code
    1. Traceback (most recent call last):
    2. File "/usr/local/sbin/certbot", line 6, in <module>
    3. from certbot.main import main
    4. File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 5, in <module>
    5. import logging.handlers
    6. File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    7. import sys, os, time, cStringIO, traceback, warnings, weakref, collections
    8. File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    9. from _weakref import (
    10. ImportError: cannot import name _remove_dead_weakref at /var/www/imscp/gui/plugins/LetsEncrypt/backend/LetsEncrypt.pm line 834.


    I tried to deactivate plugin and receive this error on reactivate:

    Code
    1. An unexpected error occurred:
    2. Plugin::LetsEncrypt::enable: Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt: Traceback (most recent call last): File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 6, in from certbot.main import main File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 5, in import logging.handlers File "/usr/lib/python2.7/logging/__init__.py", line 26, in import sys, os, time, cStringIO, traceback, warnings, weakref, collections File "/usr/lib/python2.7/weakref.py", line 14, in from _weakref import (
    3. ImportError: cannot import name _remove_dead_weakref at /var/www/imscp/gui/plugins/LetsEncrypt/backend/LetsEncrypt.pm line 266


    My server:

    • Debian 10

    • i-MSCP 1.5.3 Build: 2018120800 Codename: Ennio Morricone

    • Lets Encrypt


  • Finally I can solved this deleting:

    Code
    1. rm -rf /opt/eff.org

    Reinstalling plugin, and renove domains.

  • Debian 10 is still not fully supported - and on this point - you are alone by solving such errors!

    CLOSED!

    Support Infos: I-MSCP Version: 1.5.x / Distro: Debian Stretch / PHP: 7.1.27 - FPM / I-MSCP Plugins: Let´s Encrypt + PHPSwitcher (latest Versions)

  • FloRet88

    Closed the thread.