Skip to content

Commit

Permalink
grep the PIP_OUT and print useful info if the problem is about memory…
Browse files Browse the repository at this point in the history
… allocation
  • Loading branch information
timdream committed Sep 14, 2016
1 parent b3d20aa commit 643aa70
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions letsencrypt-auto-source/letsencrypt-auto.template
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,21 @@ UNLIKELY_EOF
echo "====================================================="
echo
echo "Certbot has problem setting up the virtual environment."
echo "There maybe some problems with the dependencies, or because "
echo "your system has not enough memory to build it."

if `echo $PIP_OUT | grep -q Killed` && `echo $PIP_OUT | grep -q "allocate memory"` ; then
echo
echo "Based on your pip output, the problem can likely be fixed by "
echo "increasing the available memory."
else
echo
echo "We were not be able to guess the right solution from your pip "
echo "output."
fi

echo
echo "Consult https://certbot.eff.org/docs/using.html#problems-with-python-virtual-environment"
echo "for possible solutions."
echo "You may also find some support resources at https://certbot.eff.org/support/ ."
fi
rm -rf "$VENV_PATH"
exit 1
Expand Down

0 comments on commit 643aa70

Please sign in to comment.