Page MenuHomePhabricator

The vagrant role gadgets2 fails on vagrant up
Closed, DeclinedPublic

Description

Seems like something is wrong with the role gadgets2

==> default: Notice: /Stage[main]/Role::Gadgets2/Mediawiki::Extension[Gadgets]/Mediawiki::Settings[Gadgets]/File[/vagrant/settings.d/puppet-managed/10-Gadgets.php]/ensure: defined content as '{md5}b9d5d375a469ce3006a3d3567c8428f2'
==> default: Info: Mediawiki::Settings[Gadgets]: Scheduling refresh of Exec[update_all_databases]
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: gadgetswiki
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: gadgetswiki:  #!/usr/bin/env php
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: [f859bc5d70176af43d7ae1c3] [no req]   Error from line 456 of /vagrant/mediawiki/extensions/Gadgets/Gadgets.hooks.php: Access to undeclared static property: ApiBase::$messageMap
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: Backtrace:
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #0 /vagrant/mediawiki/includes/Setup.php(937): GadgetsHooks::onExtensionFunctions()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #1 /vagrant/mediawiki/maintenance/doMaintenance.php(81): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #2 /vagrant/mediawiki/maintenance/update.php(248): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #3 /var/www/w/MWScript.php(98): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #4 {main}
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: gadgetsclientwiki
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: gadgetsclientwiki:  #!/usr/bin/env php
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: [54abe37724aacdeb9ef956b5] [no req]   Error from line 456 of /vagrant/mediawiki/extensions/Gadgets/Gadgets.hooks.php: Access to undeclared static property: ApiBase::$messageMap
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: Backtrace:
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #0 /vagrant/mediawiki/includes/Setup.php(937): GadgetsHooks::onExtensionFunctions()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #1 /vagrant/mediawiki/maintenance/doMaintenance.php(81): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #2 /vagrant/mediawiki/maintenance/update.php(248): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #3 /var/www/w/MWScript.php(98): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #4 {main}
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: wiki
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: -----------------------------------------------------------------
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: wiki:  #!/usr/bin/env php
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: [ac5496e99b90ddf1533ad521] [no req]   Error from line 456 of /vagrant/mediawiki/extensions/Gadgets/Gadgets.hooks.php: Access to undeclared static property: ApiBase::$messageMap
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: Backtrace:
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #0 /vagrant/mediawiki/includes/Setup.php(937): GadgetsHooks::onExtensionFunctions()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #1 /vagrant/mediawiki/maintenance/doMaintenance.php(81): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #2 /vagrant/mediawiki/maintenance/update.php(248): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #3 /var/www/w/MWScript.php(98): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #4 {main}
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: 3 wikis failed.
==> default: Error: /Stage[main]/Mediawiki/Exec[update_all_databases]: Failed to call refresh: /usr/local/bin/foreachwiki update.php --quick --doshared returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Mediawiki/Exec[update_all_databases]: /usr/local/bin/foreachwiki update.php --quick --doshared returned 1 instead of one of [0]

Full log

Event Timeline

jeblad created this task.Jan 19 2019, 12:49 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 19 2019, 12:49 PM
Base added a subscriber: Base.
jeblad added a comment.EditedJan 19 2019, 2:39 PM

Not quite sure if it is related, but the path used in the templatecall seems weird. It does not fail on the path though. The same weird path is used while defining a bunch of roles.

Reedy added subscribers: Legoktm, Reedy.

Looking at https://github.com/wikimedia/mediawiki-extensions-Gadgets/tree/RL2, the branch hasn't been touched for 3.5 years (July 2015)

@Legoktm Are you likely to work on this anytime soon? If not, we should probably remove this vagrant role as it's not much use for testing anything atm

Reedy triaged this task as Lowest priority.Jan 19 2019, 3:11 PM
Reedy updated the task description. (Show Details)

Change 485369 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/vagrant@master] Remove gadgets2 role

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

I'm pretty sure I saw some related work less that 3.5 years ago, so it can have been moved somewhere else. Not sure about this, it could be me mixing it up with something else.

No, it's not actively being worked on. Also the plan was to stop using a branch and instead copy stuff into master.

Change 485369 merged by jenkins-bot:
[mediawiki/vagrant@master] Remove gadgets2 role

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

Reedy closed this task as Declined.Jan 19 2019, 8:23 PM
Reedy removed a project: Patch-For-Review.