I am getting a boostrap failure due to RPC server unavailable.
The bootstrap process seems to be running fine - successfully installs client package ,writes validation key except for this step
FATAL: SystemCallError: The RPC server is unavailable. - OpenEventLog
ERROR: Failed to execute command on host return code 1
Versions am using -
Chef Development Kit Version: 0.13.21
chef-client version: 12.9.41
berks version: 4.3.2
kitchen version: 1.7.3
Would appreciate any suggestion.
How are you bootstrapping the node? A debug level log or at least a stack trace may help to pinpoint this better.
Matt, thanks for responding. Could you let me know the command to debug , didnt find it with Knife boostrap --help
I was able to find the switch and below is the debug info .
Net::HTTPServerException: 401 "Unauthorized"
C:/opscode/chef/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in error!' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/http.rb:146:in
request’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/http.rb:111:in get' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/node.rb:604:in
load’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/node.rb:588:in find_or_create' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/policy_builder/dynamic.rb:72:in
load_node’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/client.rb:467:in load_node' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/client.rb:269:in
run’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application.rb:268:in run_with_graceful_exit_option' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application.rb:244:in
block in run_chef_client’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/local_mode.rb:44:in with_server_connectivity' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application.rb:227:in
run_chef_client’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application/client.rb:456:in sleep_then_run_chef_client' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application/client.rb:443:in
block in interval_run_chef_client’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application/client.rb:442:in loop' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application/client.rb:442:in
interval_run_chef_client’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application/client.rb:426:in run_application' C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/lib/chef/application.rb:59:in
run’
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.18-universal-mingw32/bin/chef-client:26:in <top (required)>' C:/opscode/chef/bin/chef-client:62:in
load’
C:/opscode/chef/bin/chef-client:62:in `’
Interesting but I feel like we are missing context here. The RPC error from your previous post does not seem to jive with the 401 here. Would be great if you could include a gist of a complete bootstrap output if you can redacting as appropriate.
Faced the same issue. Turning on the event log service solved the problem, which was off. i believe by default event log service should be on but my case it was otherwise.