NuCivic / ansible-dev-vm

8 stars 5 forks source link

Git path fails on vagrant up #15

Closed topicus closed 9 years ago

topicus commented 9 years ago

@acouch When I run vagrant up I got this message.

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [nucvicdev]

TASK: [geerlingguy.git | Ensure git is installed (RedHat).] *******************
skipping: [nucvicdev]

TASK: [geerlingguy.git | Ensure git is installed (Debian).] *******************
failed: [nucvicdev] => (item=git,git-svn) => {"failed": true, "item": "git,git-svn"}
stderr: E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.7.1-4ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.15 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

stdout: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  git-man libapr1 libaprutil1 liberror-perl libserf-1-1 libsvn-perl libsvn1
  libterm-readkey-perl libyaml-libyaml-perl libyaml-perl patch
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-bzr git-cvs git-mediawiki subversion libyaml-shell-perl
  diffutils-doc
The following NEW packages will be installed:
  git git-man git-svn libapr1 libaprutil1 liberror-perl libserf-1-1
  libsvn-perl libsvn1 libterm-readkey-perl libyaml-libyaml-perl libyaml-perl
  patch
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 5606 kB of archives.
After this operation, 31.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libapr1 amd64 1.5.0-1 [85.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1 amd64 1.5.3-1 [76.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libserf-1-1 amd64 1.3.3-1ubuntu0.1 [42.2 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libsvn1 amd64 1.8.8-1ubuntu3.1 [917 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libsvn-perl amd64 1.8.8-1ubuntu3.1 [802 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1 [698 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.1 [2627 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty/main libyaml-perl all 0.84-1 [68.3 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty/main libterm-readkey-perl amd64 2.31-1 [27.4 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe git-svn all 1:1.9.1-1ubuntu0.1 [93.2 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libyaml-libyaml-perl amd64 0.41-5ubuntu0.14.04.1 [63.8 kB]
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main patch amd64 2.7.1-4ubuntu1
  404  Not Found [IP: 91.189.91.15 80]
Fetched 5522 kB in 17s (315 kB/s)

msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'git' 'git-svn'' failed: E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.7.1-4ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.15 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/Mariano/playbook.retry

nucvicdev                  : ok=1    changed=0    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
acouch commented 9 years ago

Can you try https://github.com/NuCivic/ansible-dev-vm/tree/move-to-geerlinguy140 ?

vagrant destroy; git pull; git co move-to-geerlinguy140; vagrant up --provider=vmware_fusion? #18 might fix that.

janette commented 9 years ago

@acouch I ran the commands above and ended up with this

vagrant up --provider=vmware_fusion
Bringing machine 'nucvicdev' up with 'vmware_fusion' provider...
==> nucvicdev: Box 'geerlingguy/ubuntu1404' could not be found. Attempting to find and install...
    nucvicdev: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
    nucvicdev: Box Version: >= 0
==> nucvicdev: Adding box 'geerlingguy/ubuntu1404' (v0) for provider: vmware_desktop, vmware_fusion, vmware_workstation
    nucvicdev: Downloading: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
The box you attempted to add doesn't match the provider you specified.

Provider expected: vmware_desktop, vmware_fusion, vmware_workstation
Provider of box: virtualbox
acouch commented 9 years ago

Can you try vagrant plugin uninstall vagrant-vmware-fusion; vagrant plugin install vagrant-vmware-fusion; and try again?

janette commented 9 years ago

that did not fix it, same error after downloading finished

janette commented 9 years ago

Would be nice to have the trusty-server-cloudimg-amd64-vagrant-disk1.box files in the vm so it doesn't have to be dowloaded, it takes 1.5 hours to see if it works

janette commented 9 years ago

ok I think I got the vm updated

vagrant ssh
sudo apt-get update
sudo apt-get upgrade
exit
vagrant provision
janette commented 9 years ago

problem with buildmanager

screenshot_7_6_15__9_48_pm
acouch commented 9 years ago

You shouldn't have to apt-get . Everything else worked though? Lets make a separate ticket for buildmanager. #20

janette commented 9 years ago

yes I'm pretty sure the vm is running the latest goods now

acouch commented 9 years ago

wohoo

acouch commented 9 years ago

I'm going to pull this in.