Got the error of no client name when access localhost:9980. I can run chef-client on the local side. Seems can not talk with opscode server by rest... should the client name be gotten from env? like hostname. or somewhere I should set manually? My client.rb and error log is attached below:
log_level :info
log_location STDOUT
chef_server_url "
https://api.opscode.com/organizations/vc2"
validation_key "/root/chef-repo-in/.chef/vc2-validator.pem"
validation_client_name "chef-validator"
root@ubuntu:~/Downloads# ArgumentError - Cannot sign the request without a client name, check that :node_name is assigned:
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/rest/auth_credentials.rb:41:in `signature_headers'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/rest.rb:329:in `authentication_headers'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/rest.rb:374:in `build_headers'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/rest.rb:224:in `api_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/rest.rb:114:in `get_rest'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/search/query.rb:42:in `search'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/lib/chef/node.rb:564:in `list'
/usr/lib/ruby/gems/1.8/gems/chef-rundeck-0.2.0/lib/chef-rundeck.rb:40:in `GET /'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/nulllogger.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/head.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
/usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/1.8/eventmachine.rb:1060:in `call'
/usr/lib/ruby/1.8/eventmachine.rb:1060:in `spawn_threadpool'
/usr/lib/ruby/1.8/eventmachine.rb:1057:in `initialize'
/usr/lib/ruby/1.8/eventmachine.rb:1057:in `new'
/usr/lib/ruby/1.8/eventmachine.rb:1057:in `spawn_threadpool'
/usr/lib/ruby/1.8/eventmachine.rb:1049:in `defer'
/usr/lib/ruby/1.8/thin/connection.rb:54:in `process'
/usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
/usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/1.8/thin/server.rb:156:in `start'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/handler/thin.rb:13:in `run'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1295:in `run!'
/usr/lib/ruby/gems/1.8/gems/chef-rundeck-0.2.0/bin/chef-rundeck:59
/usr/bin/chef-rundeck:19:in `load'
/usr/bin/chef-rundeck:19