Skip to content

Instantly share code, notes, and snippets.

@goude
Created June 10, 2016 14:57
Show Gist options
  • Save goude/78293b5fe7f82f94134e20c695501b36 to your computer and use it in GitHub Desktop.
Save goude/78293b5fe7f82f94134e20c695501b36 to your computer and use it in GitHub Desktop.
Turn on swap on small virtual machines (e.g. letsencrypt command 'x86_64-linux-gnu-gcc' failed with exit status 4)
Digitalocean, 512MB - need to turn on swap:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=524288
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Sources: https://community.letsencrypt.org/t/installation-via-letsencrypt-auto-fails-with-error-code-1/5919, http://stackoverflow.com/a/26762938
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment