From faaf81d6e9d3a256769037c19375799b6835a43c Mon Sep 17 00:00:00 2001 From: nahtnam Date: Sat, 12 Nov 2016 22:05:05 -0800 Subject: [PATCH] Update troubleshooting.md Add `killed` symptom to troubleshooting guide. --- docs/getting-started/troubleshooting.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/getting-started/troubleshooting.md b/docs/getting-started/troubleshooting.md index ef6b35ead..48cdb40e8 100644 --- a/docs/getting-started/troubleshooting.md +++ b/docs/getting-started/troubleshooting.md @@ -154,3 +154,23 @@ dokku config:set --global CURL_CONNECT_TIMEOUT=30 ``` Please see https://github.com/dokku/dokku/issues/509 + +*** + +__Symptom:__ Build fails with `Killed` message. + +__Solution:__ + +This generally occurs when the server runs out of memory. You can either add more ram to your server or setup swap space. The follow script will create 2gb of swap space. + +```shell +sudo install -o root -g root -m 0600 /dev/null /swapfile +dd if=/dev/zero of=/swapfile bs=1k count=2048k +mkswap /swapfile +swapon /swapfile +echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab +sudo sysctl -w vm.swappiness=10 +echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf +``` + +***