Page MenuHomePhabricator

Vagrant fresh install fails to run composer: php5 not found?
Closed, ResolvedPublic

Description

Not everything gets initialized right the first time through, looks a bit scary. Possible order of operations error here?

Stderr from the command:

stdin: is not a tty
Error: /Stage[main]/Php::Composer/Exec[download_composer]: Could not evaluate: Could not find command 'php5'
Warning: /Stage[main]/Php::Composer/File[/usr/local/bin/composer]: Skipping because of failed dependencies
Warning: /Stage[main]/Php::Composer/Exec[update_composer]: Skipping because of failed dependencies
Warning: /Stage[main]/Mediawiki/Php::Composer::Install[/vagrant/mediawiki]/Exec[composer-install--vagrant-mediawiki]: Skipping because of failed dependencies
Error: /usr/local/bin/multiversion-install wiki admin --dbname wiki --dbpass vagrant --dbuser root --pass vagrant --scriptpath /w --server http://127.0.0.1:8080 --confpath /vagrant/settings.d/wikis/wiki 
 returned 255 instead of one of [0]
Error: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: change from notrun to 0 failed: /usr/local/bin/multiversion-install wiki admin --dbname wiki --dbpass vagrant --dbuser root --pass vagrant --scriptpath /w --server http://127.0.0.1:8080 --confpath /vagrant/settings.d/wikis/wiki 
 returned 255 instead of one of [0]
Warning: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_include_extra_settings]: Skipping because of failed dependencies
Warning: /Stage[main]/Mediawiki/Exec[copy_LocalSettings]: Skipping because of failed dependencies
Warning: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]: Skipping because of failed dependencies

After another 'vagrant provision' things seem happier.

Details

Related Changes in Gerrit:

Event Timeline

brooke raised the priority of this task from to Needs Triage.
brooke updated the task description. (Show Details)
brooke added a project: MediaWiki-Vagrant.
brooke subscribed.

this commit based on this patch seems to have created the issue.

gerritbot subscribed.

Change 186902 had a related patch set uploaded (by BryanDavis):
Require php5-cli before using it

https://gerrit.wikimedia.org/r/186902

Patch-For-Review

Change 186902 merged by jenkins-bot:
Require php5-cli before using it

https://gerrit.wikimedia.org/r/186902

@brion: Please, confirm if it has been resolved to close this task

bd808 claimed this task.