Mohamed El Mahallawy
Mohamed El Mahallawy

Reputation: 13872

chef-server SocketError: getaddrinfo: nodename nor servname provided, or not known

I keep getting error after running

➜  chef knife ssh 'name:beautifulprayer' -x ubuntu

WARNING: Failed to connect to beautifulprayer -- SocketError: getaddrinfo: nodename nor servname provided, or not known

Not sure why. Here is info about the node:

➜  chef knife node show beautifulprayer
Node Name:   beautifulprayer
Environment: _default
FQDN:        beautifulprayer
IP:          104.131.0.191
Run List:    recipe[sudo]
Roles:
Recipes:
Platform:    ubuntu 14.04
Tags:

Upvotes: 1

Views: 3016

Answers (1)

Roland
Roland

Reputation: 1426

 beautifulprayer

is probably not a FQDN and not resolvable. While you want to fix this you can try:

knife ssh 'name:beautifulprayer' -a ipaddress -x ubuntu

In this case, knife will use the ipaddress attribute instead of the (broken) FQDN.

Upvotes: 6

Related Questions