Skip to content

Instantly share code, notes, and snippets.

@bixu
Created September 22, 2010 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bixu/592267 to your computer and use it in GitHub Desktop.
Save bixu/592267 to your computer and use it in GitHub Desktop.
[default] Provisioning enabled with Vagrant::Provisioners::ChefServer
[default] Beginning provisioning process...
[default] Setting permissions on chef provisioning folder...
[default] Creating folder to hold client key...
[default] Uploading chef client validation key...
[default] Generating chef JSON and uploading...
[default] Uploading chef configuration script...
[default] Running chef-client...
[default] [Wed, 22 Sep 2010 13:42:04 -0400] INFO: Setting the run_list to ["role[vagrant-unstable]"] from JSON
[Wed, 22 Sep 2010 13:42:05 -0400] INFO: Starting Chef Run (Version 0.9.8)
[Wed, 22 Sep 2010 13:42:07 -0400] INFO: Storing updated cookbooks/user
gem install --no-rdoc --no-ri /recipes/default.rb in the cache.
: stdout
[default] [Wed, 22 Sep 2010 13:42:09 -0400] INFO: Removing package[ImageMagick]
: stdout
[default] [Wed, 22 Sep 2010 13:42:26 -0400] INFO: Ran execute[Install more current ImageMagick] successfully
: stdout
[default] [Wed, 22 Sep 2010 13:42:26 -0400] INFO: Altered user[user
gem install --no-rdoc --no-ri ]
: stdout
[default] [Wed, 22 Sep 2010 13:42:27 -0400] INFO: Ran bash[set a default ruby] successfully
: stdout
[default] [Wed, 22 Sep 2010 13:42:31 -0400] ERROR: bash[install needed gems as user
gem install --no-rdoc --no-ri user] (/srv/chef/cache/cookbooks/user
gem install --no-rdoc --no-ri /recipes/default.rb:85:in `from_file') had an error:
"bash" "/tmp/chef-script.14610.0" returned 1, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:in `run_command'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/execute.rb:49:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/script.rb:33:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:304:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:106:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
[Wed, 22 Sep 2010 13:42:31 -0400] ERROR: Running exception handlers
[Wed, 22 Sep 2010 13:42:31 -0400] ERROR: Exception handlers complete
[Wed, 22 Sep 2010 13:42:31 -0400] ERROR: Re-raising exception: Chef::Exceptions::Exec - "bash" "/tmp/chef-script.14610.0" returned 1, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:in `run_command'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/execute.rb:49:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/script.rb:33:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `st: stdout
[default] /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures': stderr
[default] ep'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:304:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:106:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
: stdout
[default] : "bash" "/tmp/chef-script.14610.0" returned 1, expected 0 (Chef::Exceptions::Exec)
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/execute.rb:49:in `action_run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/script.rb:33:in `action_run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `send'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `run_action'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `converge'
... 13 levels...
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26
from /usr/bin/chef-client:19:in `load'
from /usr/bin/chef-client:19
: stderr
/opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:231:in `check_exit_status': The following SSH command responded with a non-zero exit status. (Vagrant::Action::ActionException)
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-chef && sudo -E chef-client -c client.rb -j dna.json
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/provisioners/chef_server.rb:57:in `run_chef_client'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:207:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:207:in `exec!'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/channel.rb:550:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/channel.rb:550:in `do_request'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:551:in `channel_request'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:456:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:456:in `dispatch_incoming_packets'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:213:in `preprocess'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:197:in `process'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:161:in `loop'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:161:in `loop_forever'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/session.rb:161:in `loop'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/connection/channel.rb:269:in `wait'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:216:in `exec!'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/provisioners/chef_server.rb:55:in `run_chef_client'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:66:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh.rb:186:in `start'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/ssh.rb:59:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/provisioners/chef_server.rb:54:in `run_chef_client'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/provisioners/chef_server.rb:23:in `provision!'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/action/vm/provision.rb:17:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/action/env/error_halt.rb:11:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/action/builder.rb:147:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/action.rb:66:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/action.rb:66:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/vm.rb:120:in `provision'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/provision.rb:20:in `provision_single'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:109:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:109:in `all_or_single'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:108:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:108:in `all_or_single'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/provision.rb:9:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:41:in `dispatch'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/commands/base.rb:50:in `dispatch'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/command.rb:24:in `subcommand'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/lib/vagrant/command.rb:13:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/vagrant-0.5.3/bin/vagrant:7
from /opt/local/bin/vagrant:19:in `load'
from /opt/local/bin/vagrant:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment