Monday, August 5, 2013

FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

This error message from chef is not very useful
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
I took me a few hours to dig in to chef source code to figure out what's really happening. It turned out for me that chef doesn't like ~ (home) that I used in path declarations in the solo.rb file.

As I skimmed through the code, I have a feeling that any errors that occurs during fork process will cause this error message which does not explain anything. If your cause is not the same as me, unfortunately your only option is to go digging through chef source code. :(

Gem: Chef
Version: 11.6.0

10 comments:

Richard Cochrane said...

Thanks tap. Worked like a charm.

Tap said...

The most welcome

Guru Raghavendran Gopal Rao said...

I am also facing the same error but which solo.rb file need to be modified. please advise. I am getting this error while executing chef-client command and it did not created solo.rb file under /etc/chef/solo.rb in controller node.

Tap said...

Hi Guru,

I guess you aren't running chef-solo mode then it's probably a different issue.

Guru Raghavendran Gopal Rao said...

Thank you, Tap for the directions

Vinod Athrey said...

even im running through this error... using a vagrant box for bootstrapping a node ..... exited with 2 error message
ERROR: 401 "Unauthorized"
fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

could any1 help me on these..............

rahul raghavendra said...

i think your validator.pem key is missing reset d key once..

ilja petin said...

Sometimes you can just need to 'sudo' it

Manikanta Harish Kumar Vanka said...

The same error, please notify me as soon as possible

Faraz Munir said...

HTTP Request Returned 404 Not Found:
i am getting this error

Config number of file descriptors on Linux

Check file descriptor limit for a process. Vary depending on owner of the process $ cat /proc/{process-id}/limits Check current number of...