I am getting issue ./letsencrypt-auto: line 920: python3: command not found, when i renew SSL

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.xyz.com

I ran this command: sudo -H ./letsencrypt-auto certonly --standalone --renew-by-default -d xyz.com -d www.xyz.com

It produced this output: WARNING: couldn’t find Python 2.7+ to check for updates.
./letsencrypt-auto: line 920: python3: command not found

My web server is (include version): CentOS 6.9

The operating system my web server runs on is (include version): CentOS 6.9

My hosting provider, if applicable, is:

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

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

And on browser i get this error message : NET::ERR_CERT_DATE_INVALID

Weird. What’s this show:

command -v python3
which python3
python3 -V

Maybe you have a dead symlink to an uninstalled version of Python.

i have already installed the Python3 but still i get
WARNING: couldn’t find Python 2.7+ to check for updates.
./letsencrypt-auto: line 920: python3: command not found

i have updated but still facing this error…

for this any another solution???

What’s the output of the commands in @_az’s post?

I get this after renew the certificate, and i have check in my system have 2.7 Python and i have
also installed Python 3.0 but still get this error

WARNING: couldn’t find Python 2.7+ to check for updates.
./letsencrypt-auto: line 920: python3: command not found

I would try: running the actual file and from the same directory

find / -name letsencrypt-auto
and
find / -name certbot-auto

cd {to the directory of the file found above - if that returns a link, then: to the actual file location}

then [whichever actual file name was found]
sudo ./letsencrypt-auto …
or
sudo ./certbot-auto …

still get same issue…

WARNING: couldn’t find Python 2.7+ to check for updates.
./letsencrypt-auto: python3: command not found

DO i need Pthon 3 or not ?

You don’t need Python 3, but if you have a dead symlink to the python3 binary, it will fail in that way.

That’s why I asked you to post the output of those commands, because it could help answer your question, but you ignored me.

i get this when i check phyton version

python -V
Python 2.7.6

Python 3 not have in my system

Please post the verbatim output of all 3 commands, exactly how I typed them. I don’t care if they fail or not.

1 Like

do i need Installed Python 3 in my system,
If, Yes than i think my other thinks are hamper.

command -v python3

Command not found

which python3
python3 -V

[root@0000 letsencrypt]# sudo -H ./letsencrypt-auto certonly --standalone --renew-by-default -d billing.xyz.co.in -d www.billing.xyz.co.in
WARNING: couldn’t find Python 2.7+ to check for updates.
./letsencrypt-auto: line 920: python3: command not found

I get above when i renew , what i do…

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