Page MenuHomePhabricator

Error returned during `vagrant provision` of wikidata role
Closed, InvalidPublic

Description

Created a vagrant instance as described at https://www.mediawiki.org/wiki/MediaWiki-Vagrant#wikidata with vagrant roles enable wikidata

After

$ vagrant roles enable wikidata
$ vagrant provision

the following error was reported

==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: [0d27901a812e03dd47798bcd] [no req]   Error from line 35 of /vagrant/mediawiki/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: Backtrace:
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #0 /vagrant/mediawiki/extensions/Wikibase/client/includes/WikibaseClient.php(472): require()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #1 /vagrant/mediawiki/extensions/Wikibase/client/includes/WikibaseClient.php(697): Wikibase\Client\WikibaseClient::getDefaultEntityTypes()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #2 /vagrant/mediawiki/extensions/Wikibase/client/includes/WikibaseClient.php(770): Wikibase\Client\WikibaseClient::newInstance()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #3 /vagrant/mediawiki/extensions/Wikibase/client/includes/Usage/Sql/SqlUsageTrackerSchemaUpdater.php(85): Wikibase\Client\WikibaseClient::getDefaultInstance()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #4 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(483): Wikibase\Client\Usage\Sql\SqlUsageTrackerSchemaUpdater::fillUsageTable(MysqlUpdater)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #5 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(451): DatabaseUpdater->runUpdates(array, boolean)
==> default: 
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #6 /vagrant/mediawiki/maintenance/update.php(203): DatabaseUpdater->doUpdates(array)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #7 /vagrant/mediawiki/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #8 /vagrant/mediawiki/maintenance/update.php(248): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #9 /var/www/w/MWScript.php(98): require_once(string)
==> default: Notice: /Stage[main]/Mediawiki/Exec[update_all_databases]/returns: #10 {main}

Running vagrant provision again seems to fix the problem, but opening http://wikidata.wiki.local.wmftest.net:8080/w/index.php gives

[2dcd2395c7254b21c27cbef1] /w/index.php Error from line 35 of /vagrant/mediawiki/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found

Backtrace:

#0 /vagrant/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(637): require()
#1 /vagrant/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(362): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
#2 /vagrant/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(418): Wikibase\Repo\WikibaseRepo::newInstance()
#3 /vagrant/mediawiki/extensions/Wikibase/repo/RepoHooks.php(110): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
#4 /vagrant/mediawiki/includes/Hooks.php(174): Wikibase\RepoHooks::onSetupAfterCache()
#5 /vagrant/mediawiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#6 /vagrant/mediawiki/includes/Setup.php(801): Hooks::run(string)
#7 /vagrant/mediawiki/includes/WebStart.php(77): require_once(string)
#8 /vagrant/mediawiki/index.php(39): require(string)
#9 /var/www/w/index.php(5): require(string)
#10 {main}

After a second vagrant provision it seems to work.

As I recall a separate ItemId is removed, so some cleanup is still missing. Someone at Wikidata / wikiba.se website should be able to figure this out.

Event Timeline

jeblad created this task.Dec 10 2018, 5:51 PM
Restricted Application added a project: Wikidata. · View Herald TranscriptDec 10 2018, 5:51 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jeblad closed this task as Invalid.Jun 18 2020, 2:08 PM

Outdated, still flaky though…