Problem scenario: You recently installed Chef server on a Linux t2.micro instance (an AWS virtual server with 1 vCPU and 1 GB of RAM). You ran this command “chef-server-ctl reconfigure” and received this error:
“Errno::ENOMEM occurred in delayed notification: runit_service[opscode-solr4] ( private-chef::opscode-solr4 line 37) had an error: Errno::ENOMEM: Cannot allocate memory – fork(2)”
What should you do?
Solution
Root cause: A t2.micro instance has insufficient RAM.
…
Continue reading “How do you handle a “ENOMEM” error when trying to run a Chef command?”