Page MenuHomePhabricator

jessie-migration vagrant install fails
Closed, ResolvedPublic

Description

Pretty sure it's not the fault of using a vmware provider (purely based on the errors being thrown being during wiki creation...

But on the jessie-migration branch:

==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: Creating main page with default content
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: Could not insert main page: Error: invalid magic word 'pagelanguage'
==> default: Error: /usr/local/bin/multiversion-install /vagrant/mediawiki --wiki wiki --dbname wiki --dbpass wikipassword --dbuser wikiadmin --pass vagrant --scriptpath /w --server http://dev.wiki.local.wmftest.net:8080 --confpath /vagrant/settings.d/wikis/wiki  wiki Admin
==> default:  returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: change from notrun to 0 failed: /usr/local/bin/multiversion-install /vagrant/mediawiki --wiki wiki --dbname wiki --dbpass wikipassword --dbuser wikiadmin --pass vagrant --scriptpath /w --server http://dev.wiki.local.wmftest.net:8080 --confpath /vagrant/settings.d/wikis/wiki  wiki Admin
==> default:  returned 1 instead of one of [0]
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_include_extra_settings]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_include_extra_settings]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_copy_LocalSettings]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_copy_LocalSettings]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/File[/etc/logrotate.d/mediawiki_wiki_debug_log]/ensure: defined content as '{md5}3d03b655685bd2782abe4fed738bb1c3'
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/File[/srv/images]/ensure: created
==> default: Notice: /Stage[main]/Mediawiki::Ready_service/Service[mediawiki-ready]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Ready_service/Service[mediawiki-ready]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Group[devwiki_suppress]/Mediawiki::Settings[devwiki_suppress_group]/File[/vagrant/settings.d/wikis/wiki/settings.d/puppet-managed/10-devwiki_suppress_group.php]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::Group[devwiki_suppress]/Mediawiki::Settings[devwiki_suppress_group]/File[/vagrant/settings.d/wikis/wiki/settings.d/puppet-managed/10-devwiki_suppress_group.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Hhvm::Fcgi/File[/etc/systemd/system/hhvm.service.d]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Hhvm::Fcgi/File[/etc/systemd/system/hhvm.service.d]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Hhvm::Fcgi/File[/etc/systemd/system/hhvm.service.d/puppet-override.conf]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Hhvm::Fcgi/File[/etc/systemd/system/hhvm.service.d/puppet-override.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Hhvm::Fcgi/Exec[systemd reload for hhvm]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Hhvm::Fcgi/Exec[systemd reload for hhvm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Hhvm::Fcgi/Service[hhvm]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Hhvm::Fcgi/Service[hhvm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Hhvm::Fcgi/Service[hhvm]: Triggered 'refresh' from 8 events
==> default: Notice: /Stage[main]/Mediawiki/File[/vagrant/settings.d/composer]/ensure: created
==> default: Info: /Stage[main]/Mediawiki/File[/vagrant/settings.d/composer]: Scheduling refresh of Exec[composer update /vagrant/mediawiki]
==> default: Notice: /Stage[main]/Mediawiki/Exec[composer update /vagrant/mediawiki]: Triggered 'refresh' from 1 events
==> default: Notice: /Stage[main]/Mediawiki/File[/var/www/mediawiki-vagrant.png]/ensure: defined content as '{md5}f9afb7d19e39247820bc1e81883a96f7'
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Skin[Vector]/Mediawiki::Settings[Vector]/File[/vagrant/settings.d/puppet-managed/10-Vector.php]/ensure: created
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Exec[update_all_databases]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::User[admin_user_in_steward_suppress_on_wiki]/Mediawiki::Maintenance[mediawiki_user_Admin_wiki]/Exec[mediawiki_user_Admin_wiki]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::User[admin_user_in_steward_suppress_on_wiki]/Mediawiki::Maintenance[mediawiki_user_Admin_wiki]/Exec[mediawiki_user_Admin_wiki]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]/returns: A copy of your installation's LocalSettings.php
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]/returns: must exist and be readable in the source directory.
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]/returns: Use --conf to specify it.
==> default: Error: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]: Failed to call refresh: /usr/local/bin/mwscript edit.php --wiki=wiki --summary='Vagrant import' --no-rc 'Template:Main_Page' < '/srv/pages/wiki/wiki/Template:Main_Page' returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Mediawiki::Maintenance[add page devwiki/Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]: /usr/local/bin/mwscript edit.php --wiki=wiki --summary='Vagrant import' --no-rc 'Template:Main_Page' < '/srv/pages/wiki/wiki/Template:Main_Page' returned 1 instead of one of [0]
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]/returns: A copy of your installation's LocalSettings.php
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]/returns: must exist and be readable in the source directory.
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]/returns: Use --conf to specify it.
==> default: Error: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]: Failed to call refresh: /usr/local/bin/mwscript edit.php --wiki=wiki --summary='Vagrant import' --no-rc 'Main_Page' < '/srv/pages/wiki/wiki/Main_Page' returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Mediawiki::Maintenance[add page devwiki/Main_Page]/Exec[add page devwiki/Main_Page]: /usr/local/bin/mwscript edit.php --wiki=wiki --summary='Vagrant import' --no-rc 'Main_Page' < '/srv/pages/wiki/wiki/Main_Page' returned 1 instead of one of [0]
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::User[admin_user_in_steward_suppress_on_wiki]/Mediawiki::Maintenance[mediawiki_user_Admin_wiki_steward,suppress]/Exec[mediawiki_user_Admin_wiki_steward,suppress]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki/Mediawiki::User[admin_user_in_steward_suppress_on_wiki]/Mediawiki::Maintenance[mediawiki_user_Admin_wiki_steward,suppress]/Exec[mediawiki_user_Admin_wiki_steward,suppress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/lib/systemd/system/jobrunner.service]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/lib/systemd/system/jobrunner.service]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/jobrunner.json]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/etc/jobrunner.json]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/lib/systemd/system/jobchron.service]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/lib/systemd/system/jobchron.service]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Exec[systemd reload for jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Exec[systemd reload for jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Exec[systemd reload for jobchron]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Exec[systemd reload for jobchron]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/File[/vagrant/srv/jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/File[/vagrant/srv/jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/default/jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/etc/default/jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service[jobchron]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Service[jobchron]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobrunner]/File[/etc/mw-vagrant/services/jobrunner.conf]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobrunner]/File[/etc/mw-vagrant/services/jobrunner.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobchron]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobchron]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobchron]/File[/etc/mw-vagrant/services/jobchron.conf]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobchron]/File[/etc/mw-vagrant/services/jobchron.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/Exec[git_clone_mediawiki/services/jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/Exec[git_clone_mediawiki/services/jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]: Dependency Exec[wiki_setup] has failures: true
==> default: Warning: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mediawiki::Mwrepl/File[/usr/local/bin/mwrepl]/ensure: defined content as '{md5}5a1414d4e63fab8465655683533285af'
==> default: Notice: /Stage[main]/Mediawiki::Mwrepl/File[/usr/local/bin/hhvmsh]/ensure: created
==> default: Info: Creating state file /var/lib/puppet/state/state.yaml
==> default: Notice: Finished catalog run in 262.67 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.
Sams-MacBook-Pro:vagrant reedy$

Event Timeline

Reedy created this task.Jan 10 2017, 5:36 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 10 2017, 5:36 AM
Reedy updated the task description. (Show Details)Jan 10 2017, 5:37 AM
Reedy closed this task as Resolved.Jan 23 2017, 6:53 AM
Reedy claimed this task.

So, it seems the problems relate to a messed up working copy of mediawiki in my vagrant folder... rm -rf'ing it fixed it (so it was re-cloned), but similarly, git reset HEAD --hard && git pull would have a similar effect

We just need a way to check for this error state in the git repo (and that it's out of date(?)) before we run multiversion-install

Going to file a new task for that

vagrant@mediawiki-vagrant:/vagrant/mediawiki$ git pull
remote: Counting objects: 23947, done
remote: Finding sources: 100% (2013/2013)
remote: Getting sizes: 100% (463/463)
remote: Compressing objects: 100% (3548503/3548503)
remote: Total 2013 (delta 1467), reused 1749 (delta 1335)
Receiving objects: 100% (2013/2013), 4.94 MiB | 4.26 MiB/s, done.
Resolving deltas: 100% (1467/1467), completed with 613 local objects.
From https://gerrit.wikimedia.org/r/p/mediawiki/core
   3580929e36..a2cc0fd347  master              -> origin/master
   2bac17fe80..36b636dcb6  REL1_27             -> origin/REL1_27
   48cd4b565c..bd2f326a46  REL1_28             -> origin/REL1_28
   1f9ea809b3..c22353b6a9  fundraising/REL1_27 -> origin/fundraising/REL1_27
   613cca21e0..c82525cdce  wmf/1.29.0-wmf.5    -> origin/wmf/1.29.0-wmf.5
   30d21455c4..8187b6e5b1  wmf/1.29.0-wmf.6    -> origin/wmf/1.29.0-wmf.6
   23bde0e33f..d5eae5382d  wmf/1.29.0-wmf.7    -> origin/wmf/1.29.0-wmf.7
 * [new branch]            wmf/1.29.0-wmf.8    -> origin/wmf/1.29.0-wmf.8
Updating d642313763..a2cc0fd347
error: Your local changes to the following files would be overwritten by merge:
	includes/parser/Parser.php
	languages/i18n/ar.json
	languages/i18n/ba.json
	languages/i18n/be-tarask.json
	languages/i18n/bn.json
	languages/i18n/br.json
	languages/i18n/ce.json
	languages/i18n/cs.json
	languages/i18n/de.json
	languages/i18n/el.json
	languages/i18n/en.json
	languages/i18n/eo.json
	languages/i18n/es.json
	languages/i18n/fi.json
	languages/i18n/fr.json
	languages/i18n/he.json
	languages/i18n/ia.json
	languages/i18n/io.json
	languages/i18n/ko.json
	languages/i18n/ku-latn.json
	languages/i18n/lo.json
	languages/i18n/lv.json
	languages/i18n/mk.json
	languages/i18n/mr.json
	languages/i18n/my.json
	languages/i18n/nb.json
	languages/i18n/nl.json
	languages/i18n/or.json
	languages/i18n/pl.json
	languages/i18n/ps.json
	languages/i18n/pt-br.json
	languages/i18n/pt.json
	languages/i18n/qqq.json
	languages/i18n/ru.json
	languages/i18n/sah.json
	languages/i18n/sl.json
	languages/i18n/udm.json
	languages/i18n/zh-hans.json
	languages/messages/MessagesEn.php
	tests/parser/parserTests.txt
	tests/phpunit/includes/user/UserTest.php
Please commit your changes or stash them before you merge.
Aborting
vagrant@mediawiki-vagrant:/vagrant/mediawiki$
bd808 moved this task from Backlog to Done on the MediaWiki-Vagrant board.Jan 23 2017, 4:08 PM