{"id":1823,"date":"2017-12-06T07:48:03","date_gmt":"2017-12-06T07:48:03","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1823"},"modified":"2025-02-01T22:47:39","modified_gmt":"2025-02-01T22:47:39","slug":"fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u\/","title":{"rendered":"Chef Error &#8211; FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u<\/strong><br>\nFATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)<\/p>\n<p>Error<\/p>\n<p><code>gitlab-ctl reconfigure<br>\nStarting Chef Client, version 11.12.2<br>\nCompiling Cookbooks...<br>\nRecipe: gitlab::default<br>\n* directory[\/etc\/gitlab] action create (up to date)<\/code><\/p>\n<p><code>================================================================================<br>\nRecipe Compile Error in \/opt\/gitlab\/embedded\/cookbooks\/gitlab\/recipes\/default.rb<br>\n================================================================================<\/code><\/p><code>\n<p>RuntimeError<br>\n------------<br>\nExternal URL must include a FQDN<\/p>\n<p>Cookbook Trace:<br>\n---------------<br>\n\/opt\/gitlab\/embedded\/cookbooks\/gitlab\/libraries\/gitlab.rb:95:in `parse_external_url'<br>\n\/opt\/gitlab\/embedded\/cookbooks\/gitlab\/libraries\/gitlab.rb:191:in `generate_config'<br>\n\/opt\/gitlab\/embedded\/cookbooks\/gitlab\/recipes\/default.rb:34:in `from_file'<\/p>\n<p>Relevant File Content:<br>\n----------------------<br>\n\/opt\/gitlab\/embedded\/cookbooks\/gitlab\/libraries\/gitlab.rb:<\/p>\n<p>88:<br>\n89:      def parse_external_url<br>\n90:        return unless external_url<br>\n91:<br>\n92:        uri = URI(external_url.to_s)<br>\n93:<br>\n94:        unless uri.host<br>\n95&gt;&gt;         raise \"External URL must include a FQDN\"<br>\n96:        end<br>\n97:        Gitlab['user']['git_user_email'] ||= \"gitlab@#{uri.host}\"<br>\n98:        Gitlab['gitlab_rails']['gitlab_host'] = uri.host<br>\n99:        Gitlab['gitlab_rails']['gitlab_email_from'] ||= \"gitlab@#{uri.host}\"<br>\n100:<br>\n101:        case uri.scheme<br>\n102:        when \"http\"<br>\n103:          Gitlab['gitlab_rails']['gitlab_https'] = false<br>\n104:        when \"https\"<\/p>\n<p>Running handlers:<br>\n[2014-11-03T12:38:40+05:30] ERROR: Running exception handlers<br>\nRunning handlers complete<\/p>\n<\/code><p><code><\/code><code>[2014-11-03T12:38:40+05:30] ERROR: Exception handlers complete<br>\n[2014-11-03T12:38:40+05:30] FATAL: Stacktrace dumped to \/opt\/gitlab\/embedded\/cookbooks\/cache\/chef-stacktrace.out<br>\nChef Client failed. 0 resources updated in 3.925307977 seconds<br>\n[2014-11-03T12:38:40+05:30] ERROR: External URL must include a FQDN<br>\n[2014-11-03T12:38:41+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)<\/code><\/p>\n<p>more \/etc\/gitlab\/gitlab.rb<br>\n# Check and change the external_url to the address your users will type in their browser<br>\nexternal_url &#8216;hostname:9999&#8217;<br>\nunicorn = 9090<\/p>\n<p>Log file<\/p>\n<p>Dumped to<br>\n\/opt\/gitlab\/embedded\/cookbooks\/cache\/chef-stacktrace.out<\/p>\n<p>OS<br>\nRHEL 6.5<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u<\/strong><br>\nSolved after<br>\nhostname.dev.corp.local:9999<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u<\/strong><br>\nI am still not able to access the gitlab url from browsers&#8230;with following info&#8230;.<br>\ngitlab-ctl show-config<br>\nStarting Chef Client, version 11.12.2<br>\nCompiling Cookbooks&#8230;<br>\n{<br>\n&#8220;gitlab&#8221;: {<br>\n&#8220;bootstrap&#8221;: {<\/p>\n<p>},<br>\n&#8220;user&#8221;: {<\/p>\n<p>},<br>\n&#8220;redis&#8221;: {<\/p>\n<p>},<br>\n&#8220;gitlab-rails&#8221;: {<br>\n&#8220;secret_token&#8221;: &#8220;f276844818b47932ab27c670536111f68d4ad8d84e3d02a42a0f8be23e00c78a0094f62efbd08655f3430a9524258f39b82281e10d52c391c2e751f5747d45dc&#8221;<br>\n},<br>\n&#8220;gitlab-shell&#8221;: {<\/p>\n<p>},<br>\n&#8220;unicorn&#8221;: {<br>\n&#8220;port&#8221;: 9090<br>\n},<br>\n&#8220;sidekiq&#8221;: {<\/p>\n<p>},<br>\n&#8220;nginx&#8221;: {<\/p>\n<p>},<br>\n&#8220;logging&#8221;: {<\/p>\n<p>},<br>\n&#8220;remote-syslog&#8221;: {<\/p>\n<p>},<br>\n&#8220;logrotate&#8221;: {<\/p>\n<p>},<br>\n&#8220;high-availability&#8221;: {<\/p>\n<p>},<br>\n&#8220;postgresql&#8221;: {<\/p>\n<p>},<br>\n&#8220;web-server&#8221;: {<\/p>\n<p>}<br>\n}<br>\n}<br>\nConverging 0 resources<\/p>\n<p>Running handlers:<br>\nRunning handlers complete<\/p>\n<p>Chef Client finished, 0\/0 resources updated in 10.57749914 seconds<\/p>\n<p>gitlab-ctl status<br>\nrun: logrotate: (pid 19510) 136s; run: log: (pid 10239) 4278s<br>\nrun: nginx: (pid 20043) 2s; run: log: (pid 9765) 4365s<br>\nrun: postgresql: (pid 19516) 135s; run: log: (pid 9569) 4393s<br>\nrun: redis: (pid 19524) 135s; run: log: (pid 9432) 4475s<br>\nrun: sidekiq: (pid 19529) 134s; run: log: (pid 9712) 4371s<br>\nrun: unicorn: (pid 19534) 134s; run: log: (pid 9664) 4377s<\/p>\n<p>more \/etc\/gitlab\/gitlab.rb<br>\nexternal_url = &#8216;xysudyd.dev.corp.local:9999&#8217;<br>\nunicorn = 9090<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <strong>twitter.com\/RajeshKumarIn<\/strong><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_89701\"><iframe loading=\"lazy\"  id=\"_ytid_35490\"  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_89701\"  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 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 u FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) Error gitlab-ctl reconfigure Starting Chef Client, version 11.12.2 Compiling&#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":[38],"tags":[407],"class_list":["post-1823","post","type-post","status-publish","format-standard","hentry","category-git","tag-chef"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1823","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=1823"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1823\/revisions"}],"predecessor-version":[{"id":25741,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1823\/revisions\/25741"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}