p2pu / lernanta-dev-env

Development Environment for p2pu lernanta code
8 stars 9 forks source link

Error executing action `upgrade` on resource 'package[libxml2]' #5

Closed natea closed 12 years ago

natea commented 12 years ago

When I run vagrant up, the following error occurs:

[2012-11-04T22:04:01+00:00] INFO: Processing package[libxml2] action upgrade (main::default line 10)
[2012-11-04T22:04:02+00:00] INFO: Retrying execution of package[libxml2], 2 attempt(s) left
[2012-11-04T22:04:05+00:00] INFO: Retrying execution of package[libxml2], 1 attempt(s) left
[2012-11-04T22:04:08+00:00] INFO: Retrying execution of package[libxml2], 0 attempt(s) left

================================================================================

Error executing action `upgrade` on resource 'package[libxml2]'
================================================================================

Chef::Exceptions::Exec
----------------------
apt-get -q -y install libxml2=2.7.8.dfsg-5.1ubuntu4.1 returned 100, expected 0

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb

  9: node[:base_packages].each do |pkg|
 10:   package pkg do
 11:     action :upgrade
 12:     retries 3
 13:   end
 14: end

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:10:in `from_file'

package("libxml2") do
  retry_delay 2
  retries 0
  recipe_name "default"
  action [:upgrade]
  cookbook_name :main
  package_name "libxml2"
end

[2012-11-04T22:04:12+00:00] ERROR: Running exception handlers
[2012-11-04T22:04:12+00:00] ERROR: Exception handlers complete
[2012-11-04T22:04:12+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-11-04T22:04:12+00:00] FATAL: Chef::Exceptions::Exec: package[libxml2] (main::default line 10) had an error: Chef::Exceptions::Exec: apt-get -q -y install libxml2=2.7.8.dfsg-5.1ubuntu4.1 returned 100, expected 0
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
mkcode commented 12 years ago

Hi natea,

The latest changes will fix this. Please git pull and try again.

natea commented 12 years ago

Great, thanks! I'll try it later today. On Nov 5, 2012 3:13 AM, "mkcode" notifications@github.com wrote:

Hi natea,

The latest changes will fix this. Please git pull and try again.

— Reply to this email directly or view it on GitHubhttps://github.com/p2pu/lernanta-dev-env/issues/5#issuecomment-10063076.

natea commented 12 years ago

Ok, it's not giving any errors now, but when I "vagrant ssh" into the VM and look in the /opt/lernanta dir, it's empty:

vagrant@precise32:/opt/lernanta$ ls -l
total 0

I did notice when I ran the "vagrant up" command, there was this warning message:

[default] Importing base box 'p2pu'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.1.18

Could that have something to do with the lernanta directory being empty?

mkcode commented 12 years ago

Something must have gotten out of sync with your repo. I just verified that starting fresh works fine. Delete the current directory, clone again from github and vagrant up.

On Mon, Nov 5, 2012 at 7:31 PM, Nate Aune notifications@github.com wrote:

Ok, it's not giving any errors now, but when I "vagrant ssh" into the VM and look in the /opt/lernanta dir, it's empty:

vagrant@precise32:/opt/lernanta$ ls -l total 0

I did notice when I ran the "vagrant up" command, there was this warning message:

[default] Importing base box 'p2pu'... [default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box.

Guest Additions Version: 4.2.0 VirtualBox Version: 4.1.18

Could that have something to do with the lernanta directory being empty?

— Reply to this email directly or view it on GitHubhttps://github.com/p2pu/lernanta-dev-env/issues/5#issuecomment-10094579.