Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failure on cookbooks #3

Closed
fluxsauce opened this issue Apr 25, 2012 · 3 comments
Closed

Installation failure on cookbooks #3

fluxsauce opened this issue Apr 25, 2012 · 3 comments

Comments

@fluxsauce
Copy link

Context:

jpeck@:~/vagrant/ariadne$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
jpeck@:~/vagrant/ariadne$ rvm -v

rvm 1.12.3 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

jpeck@:~/vagrant/ariadne$ sw_vers | grep 'ProductVersion:'
ProductVersion: 10.7.3
jpeck@:~/vagrant/ariadne$ 

The failure took place after a clean clone of ariadne, the execution of .rvmrc, closing and re-opening the terminal. Good news; subsequent attempts indicated that guest additions were updated.

jpeck@:~$ cd vagrant/ariadne/
Using /Users/jpeck/.rvm/gems/ruby-1.9.3-p194
jpeck@:~/vagrant/ariadne$ vagrant up
[ariadne] Importing base box 'lucid64'...
[ariadne] 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.1.0
VirtualBox Version: 4.1.12
[ariadne] Matching MAC address for NAT networking...
[ariadne] Clearing any previously set forwarded ports...
[ariadne] Forwarding ports...
[ariadne] -- 22 => 2222 (adapter 1)
[ariadne] -- 80 => 8080 (adapter 1)
[ariadne] -- 3306 => 3306 (adapter 1)
[ariadne] Creating shared folders metadata...
[ariadne] Clearing any previously set network interfaces...
[ariadne] Preparing network interfaces based on configuration...
[ariadne] Booting VM...
[ariadne] Waiting for VM to boot. This can take a few minutes.
[ariadne] VM booted and ready for use!
[ariadne] Installing Virtualbox Guest Additions 4.1.12 - guest's version is 4.1.0
[ariadne] Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
[ariadne] Copy installer file setup_debian.sh into the box /tmp/install_vbguest.sh
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  fakeroot linux-headers-2.6.32-33 patch
Suggested packages:
  diffutils-doc
Recommended packages:
  linux-headers-2.6-686 linux-headers-2.6-amd64 linux-headers-generic
  linux-headers
The following NEW packages will be installed:
  dkms fakeroot linux-headers-2.6.32-33 linux-headers-2.6.32-33-server patch
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 11.0MB of archives.
After this operation, 86.6MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1 [121kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main dkms 2.1.1.2-2ubuntu1 [70.8kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1 [101kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-33 2.6.32-33.70 [9,924kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-33-server 2.6.32-33.70 [800kB]
dpkg-preconfigure: unable to re-open stdin: 
Fetched 11.0MB in 34s (323kB/s)
Selecting previously deselected package patch.
(Reading database ... 26603 files and directories currently installed.)
Unpacking patch (from .../patch_2.6-2ubuntu1_amd64.deb) ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.1.1.2-2ubuntu1_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_amd64.deb) ...
Selecting previously deselected package linux-headers-2.6.32-33.
Unpacking linux-headers-2.6.32-33 (from .../linux-headers-2.6.32-33_2.6.32-33.70_all.deb) ...
Selecting previously deselected package linux-headers-2.6.32-33-server.
Unpacking linux-headers-2.6.32-33-server (from .../linux-headers-2.6.32-33-server_2.6.32-33.70_amd64.deb) ...
Processing triggers for man-db ...
Setting up patch (2.6-2ubuntu1) ...
Setting up dkms (2.1.1.2-2ubuntu1) ...

Setting up fakeroot (1.14.4-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.

Setting up linux-headers-2.6.32-33 (2.6.32-33.70) ...
Setting up linux-headers-2.6.32-33-server (2.6.32-33.70) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.32-33-server /boot/vmlinuz-2.6.32-33-server

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.12 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.1.0 of VirtualBox Guest Additions...
tar: Record size = 8 blocks
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
[ariadne] Configuring and enabling network interfaces...
[ariadne] Mounting shared folders...
[ariadne] -- v-root: /vagrant
[ariadne] -- html: /mnt/www/html
[ariadne] -- apt-cache: /var/cache/apt/archives
[ariadne] -- gem-cache: /opt/ruby/lib/ruby/gems/1.8/cache
[ariadne] -- v-csr-3: /tmp/vagrant-chef-1/chef-solo-3/roles
[ariadne] -- v-csc-2: /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[ariadne] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 /tmp/vagrant-chef-1/chef-solo-1/cookbooks
jpeck@:~/vagrant/ariadne$ 

Issue persists after a halt and up, and also after a reload.

@calvinte
Copy link

I get the same error

@calvinte
Copy link

After failed vagrant up:

$ vagrant provision
[ariadne] Running provisioner: Vagrant::Provisioners::Shell...
stdin: is not a tty
Upgrading Chef to 0.10.8...
Successfully installed net-ssh-multi-1.1
Successfully installed chef-0.10.8
Successfully installed ipaddress-0.8.0
3 gems installed
[ariadne] Running provisioner: Vagrant::Provisioners::ChefSolo...
[ariadne] Generating chef JSON and uploading...
[ariadne] Running chef-solo...
stdin: is not a tty
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: *** Chef 0.10.8 ***
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Setting the run_list to ["role[ariadne]"] from JSON
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Run List is [role[ariadne]]
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Run List expands to [php::add_php_ppa, apt, php, apache2, apache2::mod_expires, apache2::mod_rewrite, apache2::mod_php5, php::common_php_ini, php::acquia_pear, php::module_apc, memcached, php::module_memcache, php::module_memcached, php::module_curl, php::module_gd, php::module_mysql, mysql, mysql::server, varnish::apt_repo, varnish, drush::utils, drush::make, postfix, xdebug, git, vim, ariadne::example]
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Starting Chef Run for lucid64
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Running start handlers
[Wed, 25 Apr 2012 08:13:12 -0700] INFO: Start handlers complete.
[Wed, 25 Apr 2012 08:13:12 -0700] ERROR: Running exception handlers
[Wed, 25 Apr 2012 08:13:12 -0700] ERROR: Exception handlers complete
[Wed, 25 Apr 2012 08:13:12 -0700] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[Wed, 25 Apr 2012 08:13:12 -0700] FATAL: NoMethodError: undefined method `apt_repository' for #<Chef::Recipe:0x7f742e03a288>
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

@patcon
Copy link
Contributor

patcon commented Apr 25, 2012

If anyone else is looking later, it was an issue with vagant uping when one of the shared dir, cookbooks, didn't exist. Following errors were residual. Was a doc'ing issue, and fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants