Page MenuHomePhabricator

Wikimedia\Rdbms\DBQueryError: Error 1049: Unknown database 'wikishared'Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomainQuery: USE `wikishared`
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   Wikimedia\Rdbms\DBQueryError: Error 1049: Unknown database 'wikishared'
Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain
Query: USE `wikishared`
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/Database.php(1203)
#0 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/Database.php(1187): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/Database.php(1161): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/DatabaseMySQL.php(204): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string)
#3 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/Database.php(1514): Wikimedia\Rdbms\DatabaseMySQL->doSelectDomain(Wikimedia\Rdbms\DatabaseDomain)
#4 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/loadbalancer/LoadBalancer.php(912): Wikimedia\Rdbms\Database->selectDomain(Wikimedia\Rdbms\DatabaseDomain)
#5 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/loadbalancer/LoadBalancer.php(801): Wikimedia\Rdbms\LoadBalancer->reuseOrOpenConnectionForNewRef(integer, Wikimedia\Rdbms\DatabaseDomain, integer)
#6 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#7 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/DBConnRef.php(110): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)
#8 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/DBConnRef.php(124): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#9 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/database/DBConnRef.php(345): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#10 /srv/mediawiki/php-1.43.0-wmf.5/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(748): Wikimedia\Rdbms\DBConnRef->selectField(array, string, array, string, array, array)
#11 /srv/mediawiki/php-1.43.0-wmf.5/extensions/LoginNotify/includes/LoginNotify.php(358): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#12 /srv/mediawiki/php-1.43.0-wmf.5/extensions/LoginNotify/includes/LoginNotify.php(751): LoginNotify\LoginNotify->userIsInCurrentSeenBucket(integer, integer)
#13 /srv/mediawiki/php-1.43.0-wmf.5/extensions/LoginNotify/includes/LoginNotify.php(703): LoginNotify\LoginNotify->recordUserInSeenTable(MediaWiki\User\User)
#14 /srv/mediawiki/php-1.43.0-wmf.5/extensions/LoginNotify/includes/Hooks.php(107): LoginNotify\LoginNotify->recordKnown(MediaWiki\User\User)
#15 /srv/mediawiki/php-1.43.0-wmf.5/includes/HookContainer/HookContainer.php(159): LoginNotify\Hooks->onRecentChange_save(RecentChange)
#16 /srv/mediawiki/php-1.43.0-wmf.5/includes/HookContainer/HookRunner.php(3200): MediaWiki\HookContainer\HookContainer->run(string, array)
#17 /srv/mediawiki/php-1.43.0-wmf.5/includes/changes/RecentChange.php(468): MediaWiki\HookContainer\HookRunner->onRecentChange_save(RecentChange)
#18 /srv/mediawiki/php-1.43.0-wmf.5/includes/changes/RecentChange.php(771): RecentChange->save()
#19 [internal function]: RecentChange::{closure}()
#20 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/MWCallableUpdate.php(42): call_user_func(Closure)
#21 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdates.php(486): MediaWiki\Deferred\MWCallableUpdate->doUpdate()
#22 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdates.php(198): MediaWiki\Deferred\DeferredUpdates::attemptUpdate(MediaWiki\Deferred\MWCallableUpdate)
#23 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdates.php(285): MediaWiki\Deferred\DeferredUpdates::run(MediaWiki\Deferred\MWCallableUpdate)
#24 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdatesScope.php(269): MediaWiki\Deferred\DeferredUpdates::MediaWiki\Deferred\{closure}(MediaWiki\Deferred\MWCallableUpdate, integer)
#25 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdatesScope.php(198): MediaWiki\Deferred\DeferredUpdatesScope->processStageQueue(integer, integer, Closure)
#26 /srv/mediawiki/php-1.43.0-wmf.5/includes/deferred/DeferredUpdates.php(304): MediaWiki\Deferred\DeferredUpdatesScope->processUpdates(integer, Closure)
#27 /srv/mediawiki/php-1.43.0-wmf.5/includes/MediaWikiEntryPoint.php(672): MediaWiki\Deferred\DeferredUpdates::doUpdates()
#28 /srv/mediawiki/php-1.43.0-wmf.5/includes/MediaWikiEntryPoint.php(495): MediaWiki\MediaWikiEntryPoint->restInPeace()
#29 /srv/mediawiki/php-1.43.0-wmf.5/includes/MediaWikiEntryPoint.php(453): MediaWiki\MediaWikiEntryPoint->doPostOutputShutdown()
#30 /srv/mediawiki/php-1.43.0-wmf.5/includes/MediaWikiEntryPoint.php(208): MediaWiki\MediaWikiEntryPoint->postOutputShutdown()
#31 /srv/mediawiki/php-1.43.0-wmf.5/api.php(44): MediaWiki\MediaWikiEntryPoint->run()
#32 /srv/mediawiki/w/api.php(3): require(string)
#33 {main}
Impact

No idea, I guess the login notification are not shown?

Notes

Started on May 14, 2024 @ 04:52:48.466 on test.wikidata.org which matches 1.43.0-wmf.5 (T361399) being deployed. The issue shows up on mediawiki.org as we promoted 1.43.-wmf.5 to group 0 wikis.

The trace shows LoginNotify extension. There is another similar unknown database error showing up with Cognate which might or might not be similar: T364827

Details

Request URL
https://test.wikidata.org/w/api.php