{"id":2824,"date":"2017-12-09T13:31:06","date_gmt":"2017-12-09T13:31:06","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2824"},"modified":"2021-11-18T06:21:59","modified_gmt":"2021-11-18T06:21:59","slug":"error-network-error-getaddrinfo-nodename-nor-servname-provided-or","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/error-network-error-getaddrinfo-nodename-nor-servname-provided-or\/","title":{"rendered":"Chef Error: Network Error: getaddrinfo: nodename nor servname provided, or"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: ERROR: Network Error: getaddrinfo: nodename nor servname provided, or<\/strong><\/p>\n<p>Issues &#8211;<br>\n[code language=&#8221;css&#8221;]<br>\nknife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy &#8211;sudo &#8211;node-name firefox<br>\nDoing old-style registration with the validation key at \/Users\/rajesh.kumar\/.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:10:17-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 Creating a new client identity for firefox using the validator key.<br>\nuvo1t75faaktzc532w6.vm.cld.sr resolving cookbooks for run list: []<br>\nuvo1t75faaktzc532w6.vm.cld.sr Synchronizing Cookbooks:<br>\nuvo1t75faaktzc532w6.vm.cld.sr Compiling Cookbooks&#8230;<br>\nuvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:10:21-04:00] WARN: Node firefox has an empty run list.<br>\nuvo1t75faaktzc532w6.vm.cld.sr Converging 0 resources<br>\nuvo1t75faaktzc532w6.vm.cld.sr<br>\nuvo1t75faaktzc532w6.vm.cld.sr Running handlers:<br>\nuvo1t75faaktzc532w6.vm.cld.sr Running handlers complete<br>\nuvo1t75faaktzc532w6.vm.cld.sr Chef Client finished, 0\/0 resources updated in 4.732276995 seconds<br>\nMAMSIT1026467:.chef rajesh.kumar$ knife bootstrap {{uvo1t75faaktzc532w6.vm.cld.sr}} &#8211;ssh-user {{root}} &#8211;ssh-password &#8216;{{Br356YS0iy}}&#8217; &#8211;sudo &#8211;use-sudo-password &#8211;node-name firefox1<br>\nDoing old-style registration with the validation key at \/Users\/rajesh.kumar\/.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>\nERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known<br>\nCheck your knife configuration and network settings<br>\n[\/code]<\/p>\n<p>Solution &#8211;<br>\n[code language=&#8221;css&#8221;]<br>\nI am not able to find the problem with the above commands but following commands is working perfectly&#8230;.<br>\nknife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy &#8211;sudo &#8211;node-name firefox<br>\n[\/code]<\/p>\n<p>Regards,<br>\nRajesh Kumar<br>\nTwitt me @ twitter.com\/RajeshKumarIn<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_47855\"><iframe loading=\"lazy\"  id=\"_ytid_43697\"  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_47855\"  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: ERROR: Network Error: getaddrinfo: nodename nor servname provided, or Issues &#8211; [code language=&#8221;css&#8221;] knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy &#8211;sudo &#8211;node-name firefox Doing old-style registration&#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":[258],"class_list":["post-2824","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-error"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2824","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=2824"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2824\/revisions"}],"predecessor-version":[{"id":25671,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2824\/revisions\/25671"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}