`initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError) from Chef

Published: Mon 23 September 2013
By admin

In Notes.

This error can be caused by a mismatch between the hostname in your knife.rb and the hostname to which nginx is bound on the Chef server.  Try running the following command on the chef server:

chef-server-ctl reconfigure

Sometimes this is a quick and easy fix.