Page MenuHomePhabricator

[XupjZqwQBHcAAAaR1i8AAAAR] / LogicException from line 88 of /srv/mediawiki/php-master/includes/Revision/SlotRoleRegistry.php
Closed, DuplicatePublic

Description

https://commons.wikimedia.beta.wmflabs.org/ fatal.

This is preventing me testing some things on the beta cluster and given I'm not sure if this is isolated to beta cluster marking as UBN until somebody who understands this code better can comment.

[XupjZqwQBHcAAAaR1i8AAAAR] / LogicException from line 88 of /srv/mediawiki/php-master/includes/Revision/SlotRoleRegistry.php: Role mediainfo is already defined

Backtrace:

#0 /srv/mediawiki/php-master/includes/Revision/SlotRoleRegistry.php(115): MediaWiki\Revision\SlotRoleRegistry->defineRole(string, Closure)
#1 /srv/mediawiki/php-master/extensions/WikibaseMediaInfo/src/WikibaseMediaInfoHooks.php(68): MediaWiki\Revision\SlotRoleRegistry->defineRoleWithModel(string, string)
#2 [internal function]: Wikibase\MediaInfo\WikibaseMediaInfoHooks::Wikibase\MediaInfo\{closure}(MediaWiki\Revision\SlotRoleRegistry, MediaWiki\MediaWikiServices)
#3 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(458): call_user_func_array(Closure, array)
#4 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(419): Wikimedia\Services\ServiceContainer->createService(string)
#5 /srv/mediawiki/php-master/includes/MediaWikiServices.php(1193): Wikimedia\Services\ServiceContainer->getService(string)
#6 /srv/mediawiki/php-master/includes/ServiceWiring.php(1040): MediaWiki\MediaWikiServices->getSlotRoleRegistry()
#7 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(451): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#8 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(419): Wikimedia\Services\ServiceContainer->createService(string)
#9 /srv/mediawiki/php-master/includes/MediaWikiServices.php(1128): Wikimedia\Services\ServiceContainer->getService(string)
#10 /srv/mediawiki/php-master/includes/ServiceWiring.php(1022): MediaWiki\MediaWikiServices->getRevisionStoreFactory()
#11 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(451): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#12 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(419): Wikimedia\Services\ServiceContainer->createService(string)
#13 /srv/mediawiki/php-master/includes/MediaWikiServices.php(1120): Wikimedia\Services\ServiceContainer->getService(string)
#14 /srv/mediawiki/php-master/includes/cache/MessageCache.php(546): MediaWiki\MediaWikiServices->getRevisionStore()
#15 /srv/mediawiki/php-master/includes/cache/MessageCache.php(448): MessageCache->loadFromDB(string, NULL)
#16 /srv/mediawiki/php-master/includes/cache/MessageCache.php(371): MessageCache->loadFromDBWithLock(string, array, NULL)
#17 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1091): MessageCache->load(string)
#18 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1018): MessageCache->getMsgFromNamespace(string, string)
#19 /srv/mediawiki/php-master/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#20 /srv/mediawiki/php-master/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#21 /srv/mediawiki/php-master/includes/language/Message.php(1305): MessageCache->get(string, boolean, LanguageEn)
#22 /srv/mediawiki/php-master/includes/language/Message.php(860): Message->fetchMessage()
#23 /srv/mediawiki/php-master/includes/Message/TextFormatter.php(51): Message->toString(string)
#24 /srv/mediawiki/php-master/includes/user/UserNameUtils.php(189): MediaWiki\Message\TextFormatter->format(Wikimedia\Message\MessageValue)
#25 /srv/mediawiki/php-master/includes/user/User.php(987): MediaWiki\User\UserNameUtils->isUsable(string)
#26 /srv/mediawiki/php-master/extensions/CentralAuth/includes/session/CentralAuthSessionProvider.php(166): User::isUsableName(string)
#27 /srv/mediawiki/php-master/includes/session/SessionManager.php(492): CentralAuthSessionProvider->provideSessionInfo(WebRequest)
#28 /srv/mediawiki/php-master/includes/session/SessionManager.php(215): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#29 /srv/mediawiki/php-master/includes/WebRequest.php(830): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#30 /srv/mediawiki/php-master/includes/session/SessionManager.php(137): WebRequest->getSession()
#31 /srv/mediawiki/php-master/includes/Setup.php(725): MediaWiki\Session\SessionManager::getGlobalSession()
#32 /srv/mediawiki/php-master/includes/WebStart.php(89): require_once(string)
#33 /srv/mediawiki/php-master/index.php(44): require(string)
#34 /srv/mediawiki/w/index.php(3): require(string)
#35 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 17 2020, 6:41 PM
Jdlrobson triaged this task as Unbreak Now! priority.Jun 17 2020, 6:41 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptJun 17 2020, 6:41 PM
Jdlrobson added a subscriber: daniel.
Jdlrobson added a subscriber: Jdforrester-WMF.

This was caused by https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/599307, which si now reverted https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/606235. Once the revert reaches beta, this should resolve automatically.

Change 606244 had a related patch set uploaded (by Urbanecm; owner: Urbanecm):
[operations/mediawiki-config@master] Disable DiscussionTools at beta

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

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptJun 17 2020, 7:09 PM