{"id":2826,"date":"2017-12-09T13:33:32","date_gmt":"2017-12-09T13:33:32","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2826"},"modified":"2021-11-18T06:21:42","modified_gmt":"2021-11-18T06:21:42","slug":"fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully\/","title":{"rendered":"Chef Error &#8211; Fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully<\/strong><\/p>\n<p>FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully<br>\n[code language=&#8221;css&#8221;]<br>\n&gt; knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy &#8211;sudo<\/p>\n<p>Doing old-style registration with the validation key at \/Users\/rajesh.kumar\/chef-repo\/.chef\/scmgalaxy-validator.pem&#8230;<br>\nDelete your validation key in order to use your user credentials instead<\/p>\n<p>Connecting to uvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\n&gt; Existing Chef installation detected<br>\nuvo1t75faaktzc532w6.vm.cld.sr Starting first Chef Client run&#8230;<br>\nuvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:37-04:00] WARN:<br>\nuvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br>\nuvo1t75faaktzc532w6.vm.cld.sr SSL validation of HTTPS requests is disabled. HTTPS connections are still<br>\nuvo1t75faaktzc532w6.vm.cld.sr encrypted, but chef is not able to detect forged replies or man in the middle<br>\nuvo1t75faaktzc532w6.vm.cld.sr attacks.<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr To fix this issue add an entry like this to your configuration file:<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr &#8220;`<br>\nuvo1t75faaktzc532w6.vm.cld.sr # Verify all HTTPS connections (recommended)<br>\nuvo1t75faaktzc532w6.vm.cld.sr ssl_verify_mode :verify_peer<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr # OR, Verify only connections to chef-server<br>\nuvo1t75faaktzc532w6.vm.cld.sr verify_api_cert true<br>\nuvo1t75faaktzc532w6.vm.cld.sr &#8220;`<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr To check your SSL configuration, or troubleshoot errors, you can use the<br>\nuvo1t75faaktzc532w6.vm.cld.sr `knife ssl check` command like so:<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr &#8220;`<br>\nuvo1t75faaktzc532w6.vm.cld.sr knife ssl check -c \/etc\/chef\/client.rb<br>\nuvo1t75faaktzc532w6.vm.cld.sr &#8220;`<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Starting Chef Client, version 11.16.2<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr ================================================================================<br>\nuvo1t75faaktzc532w6.vm.cld.sr Chef encountered an error attempting to load the node data for &#8220;C2445575914.domain&#8221;<br>\nuvo1t75faaktzc532w6.vm.cld.sr ================================================================================<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Authentication Error:<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate to the chef server (http 401).<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Server Response:<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate as &#8216;C2445575914.domain&#8217;. Ensure that your node_name and client key are correct.<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Relevant Config Settings:<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr chef_server_url &#8221; api.opscode.com\/organizations\/scmgalaxy &#8220;<br>\nuvo1t75faaktzc532w6.vm.cld.sr node_name &#8220;C2445575914.domain&#8221;<br>\nuvo1t75faaktzc532w6.vm.cld.sr client_key &#8220;\/etc\/chef\/client.pem&#8221;<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr If these settings are correct, your client_key may be invalid, or<br>\nuvo1t75faaktzc532w6.vm.cld.sr you may have a chef user with the same client name as this node.<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] FATAL: Stacktrace dumped to \/var\/chef\/cache\/chef-stacktrace.out<br>\nuvo1t75faaktzc532w6.vm.cld.sr Chef Client failed. 0 resources updated in 3.598799916 seconds<br>\nuvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] ERROR: 401 &#8220;Unauthorized&#8221;<br>\nuvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)<br>\n[\/code]<\/p>\n<p>Regards,<br>\nRajesh Kumar<br>\nTwitt me @ twitter.com\/RajeshKumarIn<\/p>\n<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u<\/strong><\/p>\n<p>I just login to the nodes and deleted all files under \/etc\/chef\/ and rerun the commands and worked like charm.<\/p>\n<p>Regards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\">twitter.com\/RajeshKumarIn<\/a><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_49622\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_55748\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_49622\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully [code language=&#8221;css&#8221;] &gt; knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[407],"class_list":["post-2826","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-chef"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2826"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2826\/revisions"}],"predecessor-version":[{"id":25670,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2826\/revisions\/25670"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}