I ran this command: certbot auto
It produced this output:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.31.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1333, in main
File “/usr/lib/python3/dist-packages/certbot/log.py”, line 55, in pre_arg_parse_setup
temp_handler = TempHandler()
File “/usr/lib/python3/dist-packages/certbot/log.py”, line 243, in init
stream = tempfile.NamedTemporaryFile(‘w’, delete=False)
File “/usr/lib/python3.5/tempfile.py”, line 679, in NamedTemporaryFile
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File “/usr/lib/python3.5/tempfile.py”, line 269, in _sanitize_params
dir = gettempdir()
File “/usr/lib/python3.5/tempfile.py”, line 435, in gettempdir
tempdir = _get_default_tempdir()
File “/usr/lib/python3.5/tempfile.py”, line 370, in _get_default_tempdir
FileNotFoundError: [Errno 2] No usable temporary directory found in [’/tmp’, ‘/var/tmp’, ‘/usr/tmp’, ‘/root’]
My web server is (include version): Apache/2.4.38 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 16.04.6 LTS
My hosting provider, if applicable, is: Scaleway, VPS.
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): Pytty/WinSCP
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you’re using Certbot): I cannot determine it - certbot does not work properly since this morning.
All was OK till this morning when I discovered that all my sites are not available. I tried to uderstand what is a problem, launched WinSCP/Putty and then found that something happened to Certbot - see my data above.
Need an advice - what should I do?