Page MenuHomePhorge

error page when creating a new wiki (UnexpectedValueException)
Open, NormalPublic

Description

A page with the following error message appeared when I created the wiki http://uvgmi.shoutwiki.com. Despite this error, the wiki appears to function properly. If it makes any difference, I created the wiki as a Public wiki and chose not have it create starter pages.

(I think this error also happened when I created the wiki http://gitaroopals.shoutwiki.com last month, but I didn't think to save that error message so I can't be sure. I created that wiki as an invite-only wiki. At the time, I chose to have it create starter pages, but somehow the starter pages never got created.)

MediaWiki internal error.

Original exception: [57fcb03beec6909b4b2d533c] /wiki/Special:CreateWiki UnexpectedValueException from line 961 of /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Got connection to 'uvgmi_wiki', but expected local domain ('shoutwiki').
Backtrace:
#0 /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(890): Wikimedia\Rdbms\LoadBalancer->openLocalConnection(integer, integer)
#1 /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(766): Wikimedia\Rdbms\LoadBalancer->openConnection(integer, boolean, integer)
#2 /var/www/live/w/includes/GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /var/www/live/w/extensions/CreateWiki/CreateWiki_backend.php(311): wfGetDB(integer)
#4 /var/www/live/w/extensions/CreateWiki/CreateWiki_backend.php(75): CreateWikiBackend->addToAnalytics()
#5 /var/www/live/w/extensions/CreateWiki/CreateWiki_body.php(400): CreateWikiBackend->createNewWiki()
#6 /var/www/live/w/extensions/CreateWiki/CreateWiki_body.php(217): CreateWikiPage->verifyAndSubmit()
#7 /var/www/live/w/extensions/CreateWiki/CreateWiki_body.php(116): CreateWikiPage->getPageForm(integer)
#8 /var/www/live/w/includes/specialpage/SpecialPage.php(569): CreateWikiPage->execute(NULL)
#9 /var/www/live/w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#10 /var/www/live/w/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#11 /var/www/live/w/includes/MediaWiki.php(860): MediaWiki->performRequest()
#12 /var/www/live/w/includes/MediaWiki.php(517): MediaWiki->main()
#13 /var/www/live/w/index.php(42): MediaWiki->run()
#14 {main}

Exception caught inside exception handler: [57fcb03beec6909b4b2d533c] /wiki/Special:CreateWiki UnexpectedValueException from line 961 of /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Got connection to 'uvgmi_wiki', but expected local domain ('shoutwiki').
Backtrace:
#0 /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(890): Wikimedia\Rdbms\LoadBalancer->openLocalConnection(integer, integer)
#1 /var/www/live/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(766): Wikimedia\Rdbms\LoadBalancer->openConnection(integer, boolean, integer)
#2 /var/www/live/w/includes/GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /var/www/live/w/extensions/PageImages/includes/PageImages.php(50): wfGetDB(integer)
#4 /var/www/live/w/extensions/PageImages/includes/PageImages.php(199): PageImages::getPageImage(Title)
#5 /var/www/live/w/includes/Hooks.php(174): PageImages::onBeforePageDisplay(OutputPage, SkinAurora)
#6 /var/www/live/w/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
#7 /var/www/live/w/includes/OutputPage.php(2703): Hooks::runWithoutAbort(string, array)
#8 /var/www/live/w/includes/exception/MWExceptionRenderer.php(136): OutputPage->output()
#9 /var/www/live/w/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(UnexpectedValueException)
#10 /var/www/live/w/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(UnexpectedValueException, integer)
#11 /var/www/live/w/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(UnexpectedValueException)
#12 /var/www/live/w/includes/MediaWiki.php(544): MWExceptionHandler::handleException(UnexpectedValueException)
#13 /var/www/live/w/index.php(42): MediaWiki->run()
#14 {main}

Event Timeline

I remember getting a similar error. I think this is - at least partly - because page imports are currently disabled (they were apparently being abused, so they're working on a new, more manageable system, last I heard).

In T265#4020, @Scia wrote:

I remember getting a similar error. I think this is - at least partly - because page imports are currently disabled (they were apparently being abused, so they're working on a new, more manageable system, last I heard).

That doesn't have anything to do with this. Starter content is imported through the database, not the UI. The issue here is more to do with upstream changing lots of internals with database connections which means we need to have a rethink on how CreateWiki works.

Got the same just now. Does that mean that there is no way to create a wiki for a unforeseen time?

In T265#4080, @Berot3 wrote:

Got the same just now. Does that mean that there is no way to create a wiki for a unforeseen time?

As @BoringPerson quite helpfully wrote in the original post -

Despite this error, the wiki appears to function properly.

As this is cosmetic, and not functional (although, an ugly cosmetic, none the less) its not at the top of our priority list for things to fix. I know @jack has invested a fair bit of time in trying to find a workaround for this already, however, we've got bigger fish to fry at the moment.

lewiscawte triaged this task as Normal priority.Jun 1 2020, 11:28 PM
lewiscawte added a project: CreateWiki.