Error with default settings for bootstrap
Nobody has claimed this yet.
- Dominant language
- Erlang
- Stars
- 303
- Forks
- 211
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 5
Description
-
execute[bootstrap-platform] action run
Error executing action
runon resource 'execute[bootstrap-platform]'Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
'
---- Begin output of /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml ----
STDOUT:
STDERR: /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:ininitialize': Connection refused - connect(2) for "127.0.0.1" port 9463 (Errno::ECONNREFUSED) from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:inopen'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:inblock in connect' from /opt/opscode/embedded/lib/ruby/2.1.0/timeout.rb:76:intimeout'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:878:inconnect' from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:863:indo_start'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:852:instart' from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:206:intransmit'
from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:68:inexecute' from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:35:inexecute'
from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient.rb:74:inpost' from ./bin/bootstrap-platform:101:increate_object_in_authz'
from ./bin/bootstrap-platform:47:inbootstrap' from ./bin/bootstrap-platform:120:in
---- End output of /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml ----
Ran /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml returned 1Resource Declaration:
In /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/bootstrap.rb
45: execute "bootstrap-platform" do
46: command "/opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml"
47: cwd opscode_test_dir
48: retries 3
49: not_if { OmnibusHelper.has_been_bootstrapped? }
50: notifies :restart, 'service[opscode-erchef]'
51: end
52:Compiled Resource:
Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/bootstrap.rb:45:in `from_file'
execute("bootstrap-platform") do
action [:run]
retries 3
retry_delay 2
default_guard_interpreter :execute
command "/opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml"
backup 5
cwd "/opt/opscode/embedded/service/chef-server-bootstrap"
returns 0
declared_type :execute
cookbook_name "private-chef"
recipe_name "bootstrap"
not_if { #code block }
end
Running handlers:
[2016-01-11T12:39:36-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-11T12:39:36-05:00] ERROR: Exception handlers complete
Chef Client failed. 22 resources updated in 38 seconds
[2016-01-11T12:39:36-05:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
[2016-01-11T12:39:36-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[bootstrap-platform](private-chef::bootstrap line 45) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml ----
STDOUT:
STDERR: /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:in initialize': Connection refused - connect(2) for "127.0.0.1" port 9463 (Errno::ECONNREFUSED) from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:inopen'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:879:in block in connect' from /opt/opscode/embedded/lib/ruby/2.1.0/timeout.rb:76:intimeout'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:878:in connect' from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:863:indo_start'
from /opt/opscode/embedded/lib/ruby/2.1.0/net/http.rb:852:in start' from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:206:intransmit'
from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in execute' from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient/request.rb:35:inexecute'
from /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/rest-client-1.6.8/lib/restclient.rb:74:in post' from ./bin/bootstrap-platform:101:increate_object_in_authz'
from ./bin/bootstrap-platform:47:in bootstrap' from ./bin/bootstrap-platform:120:in
---- End output of /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml ----
Ran /opt/opscode/embedded/bin/bundle exec ./bin/bootstrap-platform ./bootstrapper-config/config.rb ./bootstrapper-config/pivotal.yml returned 1
[root@vm1729701]~# Error executing action
run on resource 'execute[bootstrap-platform]'-bash: run: command not found
-bash: Error: command not found
Try to perform re-run, but still fails, not sure where the issue lies
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with bin/bootstrap-platform, especially bootstrap and create_object_in_authz at line 101, and review the command invoked by private-chef/recipes/bootstrap.rb. Reproduce the bootstrap failure and trace why the request to 127.0.0.1:9463 is refused; the issue does not specify the intended fix, so done would require a confirmed successful bootstrap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100