Creating virtual environment...
Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "<stdin>", line 23, in create_venv
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'venv', '/opt/eff.org/certbot/venv']' returned non-zero exit status 1.
I got it working and I have only a guess how it worked
When I tried it on another day /opt sudo USE_PYTHON_3=1 ./certbot-auto
seemed to work fine.
That is basically going to /opt folder where where certbot-auto was present and simply running it with an environment variable.
Looks like last time when I had tried, I used the command in the same shell in which I ran sudo -H bench setup lets-encrypt [site-name]
That possibly created some environment variable which interfered with the Python 3 command. Logging again from a different ssh seems to have fixed it.
FYI, when the system failed with bench setup, I had avoided the overwrite of the ngix config file. Hence my system remained online although without https
After installing the certificate from the opt folder, all I had to do was restart ngix and it managed to get the config right. My site automatically went https
I also assume that the cron job added by the following command will continue to work. Will update. sudo -H bench setup lets-encrypt [site-name]