forumone / web-starter

Starting place for developing Drupal, Wordpress and other web applications
http://forumone.github.io/web-starter/
22 stars 11 forks source link

Vagrant Provision Error - Ruby Version #200

Closed windycitymoon closed 8 years ago

windycitymoon commented 8 years ago

On vagrant up, the box is failing here

==> default: Error: tar -zxvf /tmp/vagrant-cache/ruby-1.9.3.tgz -C /home/vagrant/.rbenv/versions/1.9.3 returned 2 instead of one of [0] ==> default: Error: /Stage[main]/Forumone::Ruby/Exec[forumone::ruby::extract]/returns: change from notrun to 0 failed: tar -zxvf /tmp/vagrant-cache/ruby-1.9.3.tgz -C /home/vagrant/.rbenv/versions/1.9.3 returned 2 instead of one of [0] ==> default: Info: Creating state file /var/lib/puppet/state/state.yaml ==> default: Notice: Finished catalog run in 218.69 seconds The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.

windycitymoon commented 8 years ago

Side Note: Nothing is being put into the /tmp/vagrant-cache/ during build.

windycitymoon commented 8 years ago

the directory /tmp/vagrant-cache was not given full write permissions during the initial vagrant build. I changed permissions on that directory to 777, ran a 'vagrant provision' and now it works.

mshade commented 8 years ago

To know what went wrong, we'd need to see who owns /tmp/vagrant-cache - can you do ls -ld /tmp/vagrant-cache ?

wwhurley commented 8 years ago

I believe this is resolved by https://github.com/forumone/puppet-forumone/commit/996beb8420f23919199635205706684dc11edd99. Previously it was trying to set permissions on that file to vagrant / games (501 / 20) which caused issues.