kmerz / graveio

where your code stays alive
BSD 2-Clause "Simplified" License
8 stars 11 forks source link

Error on initial vagrant start #61

Closed basti1508 closed 10 years ago

basti1508 commented 10 years ago

Here's the output of my console

Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precise32' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: http://files.vagrantup.com/precise32.box
Extracting box...te: 139k/s, Estimated time remaining: 0:00:01))
Successfully added box 'precise32' with provider 'virtualbox'!
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 3000 => 3000 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
prevent things such as shared folders from working properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.1
[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] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2014-02-01T20:22:30+00:00] INFO: *** Chef 10.14.2 ***
[2014-02-01T20:22:30+00:00] INFO: Setting the run_list to ["recipe[proxy]", "recipe[apt]", "recipe[etc]", "recipe[graveio]", "recipe[rvm::system]", "recipe[rvm::vagrant]"] from JSON
[2014-02-01T20:22:30+00:00] INFO: Run List is [recipe[proxy], recipe[apt], recipe[etc], recipe[graveio], recipe[rvm::system], recipe[rvm::vagrant]]
[2014-02-01T20:22:30+00:00] INFO: Run List expands to [proxy, apt, etc, graveio, rvm::system, rvm::vagrant]
[2014-02-01T20:22:30+00:00] INFO: Starting Chef Run for graveio-dev
[2014-02-01T20:22:30+00:00] INFO: Running start handlers
[2014-02-01T20:22:30+00:00] INFO: Start handlers complete.
[2014-02-01T20:22:30+00:00] INFO: [Adding: optional proxy configuration for apt(8)]
[2014-02-01T20:22:30+00:00] INFO: [Adding Repository: ppa:chris-lea/node.js]
[2014-02-01T20:22:30+00:00] INFO: [Customising: /etc/motd.tail]
[2014-02-01T20:22:30+00:00] INFO: [Installing: graveio package dependencies]
[2014-02-01T20:22:30+00:00] INFO: [Running: gem install bundler]
[2014-02-01T20:22:30+00:00] INFO: [Installing: bury configuration for User vagrant]

================================================================================
Error executing action `install` on resource 'chef_gem[rvm]'
================================================================================

NoMethodError
-------------
undefined method `full_name' for nil:NilClass

Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:21:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system_install.rb:20:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system.rb:20:in `from_file'

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

 20: # install rvm api gem during chef compile phase
 21: chef_gem 'rvm' do
 22:   action :install
 23:   version '>= 1.11.3.6'
 24: end
 25: require 'rvm'

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

chef_gem("rvm") do
  retry_delay 2
  version ">= 1.11.3.6"
  retries 0
  recipe_name "default"
  action [:install]
  cookbook_name :rvm
  package_name "rvm"
  provider Chef::Provider::Package::Rubygems
end

================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system.rb
================================================================================

NoMethodError
-------------
chef_gem[rvm] (rvm::default line 21) had an error: NoMethodError: undefined method `full_name' for nil:NilClass

Cookbook Trace:
---------------
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:21:in `from_file'
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system_install.rb:20:in `from_file'
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/system.rb:20:in `from_file'

Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:

  1:  #
  2:  # Cookbook Name:: rvm
  3:  # Recipe:: default
  4:  #
  5:  # Copyright 2010, 2011, Fletcher Nichol
  6:  #
  7:  # Licensed under the Apache License, Version 2.0 (the "License");
  8:  # you may not use this file except in compliance with the License.
  9:  # You may obtain a copy of the License at

[2014-02-01T20:23:34+00:00] ERROR: Running exception handlers
[2014-02-01T20:23:34+00:00] ERROR: Exception handlers complete
[2014-02-01T20:23:34+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-01T20:23:34+00:00] FATAL: NoMethodError: chef_gem[rvm] (rvm::default line 21) had an error: NoMethodError: undefined method `full_name' for nil:NilClass
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complet
h5b commented 10 years ago

Thank you for reporting this.

How is your bootstrap process? Did you miss by any chance to init and update the included submodules? What versions of Vagrant and Virtualbox are you running?

I can't reproduce this with a clean checkout following the steps mentioned in the README.

git clone https://github.com/kmerz/graveio.git
cd graveio
git submodule init
git submodule update
vagrant up
h5b commented 10 years ago

Well, i missed the version information in your ouput.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.1

This might be the root of the Problem. If you can, try switching to Virtualbox >= 4.2.22

basti1508 commented 10 years ago

I've just found the problem. It was because the vm has had no connection to the internet. But thats a really bad message for this error!