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

Unknown 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.

Unknown said...

Thank you, Tap for the directions

Unknown 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..............

Unknown said...

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

Unknown said...

Sometimes you can just need to 'sudo' it

Anonymous said...

The same error, please notify me as soon as possible

Unknown said...

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

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...