Letsencrypt certificate upgrade problem


#1

Please fill out the fields below so we can help you better.

My domain is:

I ran this command:./letsencrypt-auto renew --dry-run

It produced this output:Error: couldn’t get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/bin/letsencrypt”, line 7, in
from certbot.main import main
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”, line 13, in
from acme import jose
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/init.py”, line 37, in
from acme.jose.interfaces import JSONDeSerializable
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/interfaces.py”, line 9, in
from acme.jose import util
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/util.py”, line 4, in
from cryptography.hazmat.primitives.asymmetric import rsa
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py”, line 14, in
from cryptography.hazmat.backends.interfaces import RSABackend
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 7, in
import pkg_resources
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 36, in
import plistlib
File “/usr/lib/python2.7/plistlib.py”, line 62, in
import datetime
ImportError: No module named datetime

My operating system is (include version): Ubuntu 16.04.2 LTS

My web server is (include version):nginx 1.10

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):


#2

hi @Dave123

it looks like certbot it not installed

did you unistall?

Andrei


#3

How to install certbot ?


#4

Well, that would the ~auto script actually do for you… And it should take care of all dependencies…

But for some reason your datetime Python module could not be found. That’s actually pretty weird, because it’s a built-in module.

There are a few sites which relate to this problem, such as http://askubuntu.com/questions/509283/python-no-module-named-datetime

Try Google for datetime python ubuntu.


#6

I am using this command for renewing the certificate
./letsencrypt-auto renew --dry-run. Can you please help me to understand where to put auto ?

I downloaded using ln -s /usr/lib/python2.7/lib-dynload/datetime.x86_64-linux-gnu.so /usr/lib/python2.7/lib-dynload/datetime.so but its throwing error.


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.