Skip to content

Instantly share code, notes, and snippets.

@slyness
Created January 7, 2014 00:20
Show Gist options
  • Save slyness/8292532 to your computer and use it in GitHub Desktop.
Save slyness/8292532 to your computer and use it in GitHub Desktop.
some more issue
elecksee status:
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » gem query --local | grep elecksee
elecksee (1.0.18, 1.0.16, 1.0.10, 1.0.6, 1.0.4)
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » bundle exec gem query --local | grep elecksee
elecksee (1.0.18)
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » /opt/chef/embedded/bin/gem query --local | grep elecksee
elecksee (1.0.18, 1.0.16, 1.0.10, 1.0.6, 1.0.4)
New Error:
Ran ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' returned 127
[2014-01-06T16:16:16-08:00] INFO: Retrying command...
[2014-01-06T16:16:17-08:00] INFO: Encountered error running container command (chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb): Expected process to exit with [0], but received '127'
---- Begin output of ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' ----
STDOUT:
STDERR: bash: chef-solo: command not found
---- End output of ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' ----
Ran ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' returned 127
[2014-01-06T16:16:17-08:00] INFO: Retrying command...
================================================================================
Error executing action `run` on resource 'ruby_block[lxc initialize_commands[vb-zero-server]]'
================================================================================
Lxc::CommandFailed
------------------
Expected process to exit with [0], but received '127'
---- Begin output of ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' ----
STDOUT:
STDERR: bash: chef-solo: command not found
---- End output of ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' ----
Ran ssh root@10.0.3.70 -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no 'chef-solo -j /tmp/dna.json -c /etc/chef-solo-host.rb' returned 127
Cookbook Trace:
---------------
/home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:228:in `block (4 levels) in class_from_file'
/home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:226:in `each'
/home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:226:in `block (3 levels) in class_from_file'
Resource Declaration:
---------------------
# In /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb
224: ruby_block "lxc initialize_commands[#{new_resource.name}]" do
225: block do
226: new_resource.initialize_commands.each do |cmd|
227: Chef::Log.info "Running command on #{new_resource.name}: #{cmd}"
228: _lxc.container_command(cmd, 2)
229: end
230: end
231: only_if do
232: node.run_state[:lxc][:meta][new_resource.name][:new_container] &&
233: !new_resource.initialize_commands.empty?
234: end
235: end
236:
Compiled Resource:
------------------
# Declared in /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:224:in `block in class_from_file'
ruby_block("lxc initialize_commands[vb-zero-server]") do
action "run"
retries 0
retry_delay 2
block_name "lxc initialize_commands[vb-zero-server]"
cookbook_name :vagabond
block #<Proc:0x000000043a2768@/home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:225>
only_if { #code block }
end
[2014-01-06T16:16:19-08:00] INFO: Running queued delayed notifications before re-raising exception
[2014-01-06T16:16:19-08:00] ERROR: Running exception handlers
[2014-01-06T16:16:19-08:00] ERROR: Exception handlers complete
[2014-01-06T16:16:19-08:00] FATAL: Stacktrace dumped to /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/chef_cache/chef-stacktrace.out
[2014-01-06T16:16:19-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
STDERR: /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/cookbooks/lxc/providers/container.rb:132: warning: already initialized constant VERSION_REGEXP
---- End output of rvmsudo bundle exec chef-solo -j /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/dna.json -c /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/solo.rb ----
Ran rvmsudo bundle exec chef-solo -j /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/dna.json -c /home/aaronb/Planet/ninefold/ninefold-test/.vagabond/solo.rb returned 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment