honza/django-chef — Issue #1: Install error
Author: ddehghan
Created: 2011-11-20 13:00:56+00:00
State: open

Hi Honza,

I am running into this issue. I think you ran into it as well on another thread. I am not sure if you were able to resolve it or not.

I am running this on lucid 64.

I cloned your repo and did a vagrant up.

Any help would be much appreciated.

Thanks
David

[default] Importing base box 'base'...
[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.1.0
VirtualBox Version: 4.1.2
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] -- http: 80 => 8080 (adapter 1)
[default] -- web: 9999 => 9999 (adapter 1)
[default] Creating shared folders metadata...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[default] stdin: is not a tty
: stderr
[default] [Sun, 20 Nov 2011 04:47:00 -0800] INFO: *** Chef 0.10.2 ***
: stdout
[default] [Sun, 20 Nov 2011 04:47:01 -0800] INFO: Setting the run_list to ["recipe[djangoapp::default]"] from JSON
: stdout
[default] [Sun, 20 Nov 2011 04:47:01 -0800] INFO: Run List is [recipe[djangoapp::default]]
: stdout
[default] [Sun, 20 Nov 2011 04:47:01 -0800] INFO: Run List expands to [djangoapp::default]
[Sun, 20 Nov 2011 04:47:01 -0800] INFO: Starting Chef Run for lucid64
: stdout
[default] [Sun, 20 Nov 2011 04:47:02 -0800] ERROR: Running exception handlers
: stdout
[default] [Sun, 20 Nov 2011 04:47:02 -0800] ERROR: Exception handlers complete
: stdout
[default] [Sun, 20 Nov 2011 04:47:02 -0800] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
: stdout
[default] [Sun, 20 Nov 2011 04:47:02 -0800] FATAL: NoMethodError: undefined method `apt_repository' for #
: stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json

The output of the command prior to failing is outputted below:

[no output]