I ran this command: ./certbot-auto --apache -d mywebsite.com
It produced this output:
Traceback (most recent call last):
File "/tmp/tmp.BeKcJAA3xj/pipstrap.py", line 184, in <module>
exit(main())
File "/tmp/tmp.BeKcJAA3xj/pipstrap.py", line 171, in main
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'pip install --no-index --no-deps -U /tmp/pipstrap-A1Vb95/pip-9.0.1.tar.gz /tmp/pipstrap-A1Vb95/setuptools-29.0.1.tar.gz /tmp/pipstrap-A1Vb95/wheel-0.29.0.tar.gz' returned non-zero exit status -9
My web server is (include version): http - Apache v.2.2.22
The operating system my web server runs on is (include version): Ubuntu 12.04
My hosting provider, if applicable, is: OVH
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
I’m not certain, but I’d suspect it has to do with the fact that Ubuntu 12.04 has been end-of-life for over a year now. Even if that ultimately is not the issue, you should really consider updating to an operating system still supported by its developer.
That usually means the process received a signal to be terminated, in this case the signal received was the number 9 (KILL), if you are not killing the process then maybe some kind of OOM Killer (OOM stands for Out Of Memory) is killing the process because your system is... well, out of memory ;), so you should double check it and maybe you could also try to stop some services to free some memory...
You could try to use ./certbot-auto --no-self-upgrade --no-bootstrap --apache -d mywebsite.com just in case to check whether you can issue the cert.
Note: As @jared.m said, I think it is time to upgrade your server.
Thanks for your replies, I free memory and I got this error now :
Traceback (most recent call last):
File "/tmp/tmp.j8sOCycQkO/pipstrap.py", line 184, in
exit(main())
File "/tmp/tmp.j8sOCycQkO/pipstrap.py", line 171, in main
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
./letsencrypt-auto: line 1668: 29667 Killed PATH="$VENV_BIN:$PATH" "$VENV_BIN/python" "$TEMP_DIR/pipstrap.py"