I've created a chef server on a virtual machine (192.168.0.21). The server runs fine on https (this is the last version from the opscode site).
knife user list
(and the other list commands) run fine, returning the right results (all the users/nodes/clients. new users shows just fine).
when I'm trying to upload a cookbook to the server, I'm getting this error:
Network Error: getaddrinfo: Name or service not known Check your knife configuration and network settings
or this longer error:
ERROR: Network Error: getaddrinfo: Name or service not known Check your knife configuration and network settings /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in
initialize': getaddrinfo: Name or service not known (SocketError) from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in
open' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:inblock in connect' from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:69:in
timeout' from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:100:intimeout' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in
connect' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:756:indo_start' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:745:in
start' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:intransmit' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
execute' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:inexecute' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:in
put' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/cookbook_uploader.rb:153:inblock in uploader_function_for' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/cookbook_uploader.rb:25:in
call' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/cookbook_uploader.rb:25:inblock (3 levels) in setup_worker_threads' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/cookbook_uploader.rb:24:in
loop' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/cookbook_uploader.rb:24:in `block (2 levels) in setup_worker_threads'
the knife.rb file:
log_level :info
log_location STDOUT
node_name 'dony'
client_key '/home/dony/.chef/dony.pem'
validation_client_name 'chef-validator'
validation_key '/home/dony/Documents/cd/cv.pem'
chef_server_url 'https://192.168.0.21'
syntax_check_cache_path '/home/dony/.chef/syntax_check_cache'
cookbook_path [ "/home/dony/Documents/chef" ]
Since other commands to the server are working, I can't put my finger on that issue.