mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
certbot-auto: Print link to doc on debugging pip install error [revision requested] (#3473)
* certbot-auto: Print link to doc on debugging pip install error Also, update the doc to teach the user to workaround problem on a low memory system. * Correct formatting * grep the PIP_OUT and print useful info if the problem is about memory allocation * Fix logic on string to grep
This commit is contained in:
committed by
Peter Eckersley
parent
feef1b411b
commit
3dbf5c9fcb
@@ -73,6 +73,23 @@ For full command line help, you can type::
|
||||
|
||||
./certbot-auto --help all
|
||||
|
||||
Problems with Python virtual environment
|
||||
----------------------------------------
|
||||
|
||||
On a low memory system such as VPS with only 256MB of RAM, the required dependencies of Certbot will failed to build.
|
||||
This can be identified if the pip outputs contains something like ``internal compiler error: Killed (program cc1)``.
|
||||
You can workaround this restriction by creating a temporary swapfile::
|
||||
|
||||
user@webserver:~$ sudo fallocate -l 1G /tmp/swapfile
|
||||
user@webserver:~$ sudo chmod 600 /tmp/swapfile
|
||||
user@webserver:~$ sudo mkswap /tmp/swapfile
|
||||
user@webserver:~$ sudo swapon /tmp/swapfile
|
||||
|
||||
Disable and remove the swapfile once the virtual enviroment is constructed::
|
||||
|
||||
user@webserver:~$ sudo swapoff /tmp/swapfile
|
||||
user@webserver:~$ sudo rm /tmp/swapfile
|
||||
|
||||
Running with Docker
|
||||
-------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user