GPII / qi-development-environments

P4A Quality Infrastructure Development Environments
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Error when first running "vagrant up" #3

Closed SteveALee closed 8 years ago

SteveALee commented 8 years ago

==> default: failed: [localhost] => {"checksum": "518223b44053ed4dc6235e4992b0b6e713480917", "failed": true} ==> default: msg: Could not replace file: /root/.ansible/tmp/ansible-tmp-1456265491.93-206858503772364/source to /home/vagrant/.npmrc: [Errno 26] Text file busy ==> default: ==> default: FATAL: all hosts have already failed -- aborting

I'm running on a Windows host with latest Virtualbox and Vagrant.

Perhaps a timing issue? I have i7 and SSD

SteveALee commented 8 years ago

I'm not sure how to recover now. I tried stopping the VM and then "vagrent up" but that failed with a different error. Probably not interesting due to previous error

SteveALee commented 8 years ago

This is reproducible as vagrant destroy followed by vagrant up always fails the same way.

Here is my vars.yml

avtar commented 8 years ago

Ah this is an artifact left over from when we were using Vagrant's rsync feature for sharing files between the host and VM. We are using VirtualBox Shared Folders and in order to proceed could you please change your nodejs_app_install_dir path to /home/vagrant/sync and then recreate the VM:

vagrant destroy -f
vagrant up

I'll send a PR for this. Thanks for spotting this!

colinbdclark commented 8 years ago

I've merged @avtar's fix for this issue. @SteveALee, when you get a chance, can you confirm that this fixes your issue after running the commands above? Thanks both of you, it's great to see this work being used and supported!

SteveALee commented 8 years ago

@avtar I confirm the workaround fixed that problem but I get another one later on

@colinbdclark Thanks the latest works as the workaround

SteveALee commented 8 years ago

==> default: failed: [localhost] => {"changed": false, "failed": true, "rc": 1} ==> default: msg: Package at https://rpm.nodesource.com/pub/el/7/x86_64/nodejs-0.10.41-1nodesource.el7.centos.x86_64.rpm could not be installed

SteveALee commented 8 years ago

Best ignore that error for now, I'm getting somewhat random behaviour each time I run vagrant up. I suspect the very poor internet here in the middle of the countryside. Will try again tomorrow.

SteveALee commented 8 years ago

Now i moved the files to the project root the provisioning works just fine.