Recipe compile error on vagrant up
Hi,
Originally I was able to get through the first two lessons fine. I then restarted my computer and had all sorts of weird issues with vagrant. I ended up attempting to recreate the box but for whatever reason when I run vagrant up I get this error:
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/resources/key.rb
ArgumentError
wrong number of arguments (2 for 1)
Here is a full log of the output, error start around line 34 http://pastebin.com/mdnZvJ2S
I tried to proceed but have found many of the required applications needed are not present or configured, even after running postinstall.sh, such as psql.
Answers
I'm hitting this problem as well and if anyone has any insight on fixing this, it would be greatly appreciated.
Similarly, anyone know why vagrant is so fragile? After ssh'ing in, I perform a simple apt-get update and the connection closes. This doesn't happen every time but many times. TIA, Vince
I also have exact same error. I tried this solution but it does not work. I am running Windows 7 x64 (if that helps)
Here are the steps I had to take in order to get things working:
In the VagrantFile, add this to the line above the chef install:
config.vm.provision :shell, :inline => "sudo aptitude -y install build-essential"
Once you run "vagrant up", you might still see errors, I did the following:
- vagrant ssh
- sudo gem install chef
- sudo apt-get update
- sudo apt-get install libopenssl-ruby ruby1.9.1-dev
- exit
- vagrant halt
- vagrant up