Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the knife ec2 plugin to bootstrap a new instance (Ubuntu 12.04) and install a software on it. Everything works great but after chef-client ends, some processes of the new software are killed. The weird thing is that this only appears with bootstrapping. If I bootstrap first a new instance and run the recipes afterwards this problem does not appear. As Chef Server I use hosted chef.
Any ideas what the problem could be?

share|improve this question

Linux will kill processes if the system is in danger of running out of memory [0], perhaps this is happening? grep /var/log/syslog for the phrase "oom" (can't remember if it is in capitals or not) - this will tell you if processes are being killed due to lack of memory.


share|improve this answer

Check dmesg for out of memory errors

dmesg | grep OOM

This can happen almost surely if this is a micro instance you're running. In this case, add a swap file recipe before everything else (try this one: and your issues will be over!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.