Skip to content

Instantly share code, notes, and snippets.

@erran-r7
Last active December 19, 2015 08:19
Show Gist options
  • Save erran-r7/5924598 to your computer and use it in GitHub Desktop.
Save erran-r7/5924598 to your computer and use it in GitHub Desktop.
execute 'unarchive xampp' do
command "tar -xzf #{tarball_path} -C #{node[:xampp][:dir]}"
not_if { version.eql? node[:xampp][:version] }
end
LoadError: cannot load such file -- highline
/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/formatters/base.rb:74:in `highline'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/formatters/base.rb:91:in `puts'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/formatters/base.rb:119:in `puts'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/formatters/base.rb:129:in `display_error'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/formatters/base.rb:161:in `resource_failed'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/event_dispatch/dispatcher.rb:29:in `block in resource_failed'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/event_dispatch/dispatcher.rb:29:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/event_dispatch/dispatcher.rb:29:in `resource_failed'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:618:in `rescue in run_action'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:624:in `run_action'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:50:in `run_action'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block (2 levels) in converge'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block in converge'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:94:in `block in execute_each_resource'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:92:in `execute_each_resource'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:81:in `converge'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:404:in `converge'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:469:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:239:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
/tmp/vagrant-chef-1/chef-stacktrace.out (END)
[ecarey @ xampp]$ vagrant reload
[default] Attempting graceful shutdown of VM...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
[Berkshelf] You should check for a newer version of vagrant-berkshelf.
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
[Berkshelf] You can also join the discussion in #berkshelf on Freenode.
[Berkshelf] Updating Vagrant's berkshelf: '/Users/ecarey/.berkshelf/default/vagrant/berkshelf-20130704-78698-16snr80-default'
[Berkshelf] Using xampp (1.1.0)
[Berkshelf] Using apt (2.0.0)
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Chef 11.4.4 Omnibus package is already installed.
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2013-07-10T21:58:56+00:00] INFO: *** Chef 11.4.4 ***
[2013-07-10T21:58:56+00:00] INFO: Setting the run_list to ["recipe[xampp]"] from JSON
[2013-07-10T21:58:56+00:00] INFO: Run List is [recipe[xampp]]
[2013-07-10T21:58:56+00:00] INFO: Run List expands to [xampp]
[2013-07-10T21:58:56+00:00] INFO: Starting Chef Run for xampp-server
[2013-07-10T21:58:56+00:00] INFO: Running start handlers
[2013-07-10T21:58:56+00:00] INFO: Start handlers complete.
[2013-07-10T21:58:56+00:00] INFO: Processing chef_gem[highline] action install (xampp::default line 35)
[2013-07-10T21:58:56+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-07-10T21:59:01+00:00] INFO: execute[apt-get-update] ran successfully
[2013-07-10T21:59:01+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2013-07-10T21:59:01+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36)
[2013-07-10T21:59:01+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42)
[2013-07-10T21:59:01+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48)
[2013-07-10T21:59:02+00:00] INFO: package[update-notifier-common] sending run action to execute[apt-get-update] (immediate)
[2013-07-10T21:59:02+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-07-10T21:59:05+00:00] INFO: execute[apt-get-update] ran successfully
[2013-07-10T21:59:05+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52)
[2013-07-10T21:59:05+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62)
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local] group changed to 0
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local] mode changed to 755
[2013-07-10T21:59:05+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2013-07-10T21:59:05+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[2013-07-10T21:59:05+00:00] INFO: Processing chef_gem[highline] action install (xampp::default line 35)
[2013-07-10T21:59:05+00:00] INFO: Processing gem_package[highline] action install (xampp::default line 36)
[2013-07-10T21:59:05+00:00] INFO: Processing remote_file[/tmp/vagrant-chef-1/xampp-linux-1.8.1.tar.gz] action create (xampp::default line 41)
[2013-07-10T21:59:53+00:00] INFO: remote_file[/tmp/vagrant-chef-1/xampp-linux-1.8.1.tar.gz] updated
[2013-07-10T21:59:54+00:00] INFO: Processing directory[/opt] action delete (xampp::default line 46)
[2013-07-10T21:59:55+00:00] INFO: directory[/opt] deleted /opt recursively
[2013-07-10T21:59:55+00:00] INFO: Processing execute[unarchive xampp] action run (xampp::default line 52)
[2013-07-10T21:59:55+00:00] INFO: Running queued delayed notifications before re-raising exception
[2013-07-10T21:59:55+00:00] ERROR: Running exception handlers
[2013-07-10T21:59:55+00:00] ERROR: Exception handlers complete
[2013-07-10T21:59:55+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-07-10T21:59:55+00:00] FATAL: LoadError: cannot load such file -- highline
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
[ecarey @ xampp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment