Page MenuHomePhabricator

vagrant up didn't git pull mediawiki
Closed, DeclinedPublic

Description

vagrant : 1.2.7
virtualbox : 4.2.16
ubuntu : 13.10
uname -r : 3.11.0-15-generic

vagrant up produced this puppet error:

notice: /Stage[main]/Mediawiki/Exec[mediawiki setup]/returns: Could not open input file: /vagrant/mediawiki/maintenance/install.php
err: /Stage[main]/Mediawiki/Exec[mediawiki setup]: Failed to call refresh: php /vagrant/mediawiki/maintenance/install.php devwiki admin --dbname wiki --server http://127.0.0.1:8080 --dbpass vagrant --pass vagrant --scriptpath /w --dbuser root
returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/mediawiki/manifests/init.pp:119

And the following is a workaround:

vagrant ssh
cd /vagrant/mediawiki
git fetch and git checkout the branch of mediawiki you'd like to set up.

NOTE: it's smart to git fetch --depth because otherwise you'll be waiting a long time :)

Version: unspecified
Severity: normal

Details

Reference
bz61235

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:02 AM
bzimport set Reference to bz61235.

Was this possibly a vm build that you had aborted at some point during the initial vagrant up? Exec['mediawiki setup'] has required Git::Clone['mediawiki/core'] since at least Ia0518b6 (committed over a year ago). I have done several completely clean MediaWiki-Vagrant builds over the last couple of weeks and have not had this problem.

It's possible Bryan, I haven't had this problem since I reported the issue.