Page MenuHomePhabricator

"Could not acquire 'messages:de-formal:status' lock" opening page with page name >256 chars; memcache too slow
Closed, InvalidPublic

Description

Author: simon.bachenberg

Description:
Hi,
I cant open this page:

http://sofis.gesis.org/sofiswiki/Auswirkungen_existenzieller_%C3%84ngste_von_Soldaten_und_Familienangeh%C3%B6rigen_im_Kontext_von_Auslandseins%C3%A4tzen_der_Bundeswehr_auf_die_Beziehungsqualit%C3%A4t_und_ihre_Bedeutung_f%C3%BCr_die_%22gelingende_Partnerschaft%22_sowie_die_Ehe-_und_Familienpastoral:_%22Resilienzf

Because of this:

Could not acquire 'wiki_prod:messages:de-formal:status' lock.

Backtrace:

#0 /var/www/w/includes/cache/MessageCache.php(711): MessageCache->load('de-formal')
#1 /var/www/w/includes/cache/MessageCache.php(651): MessageCache->getMsgFromNamespace('Pagetitle', 'de-formal')
#2 /var/www/w/includes/Message.php(720): MessageCache->get('pagetitle', true, Object(Language))
#3 /var/www/w/includes/Message.php(464): Message->fetchMessage()
#4 /var/www/w/includes/Message.php(553): Message->toString()
#5 /var/www/w/includes/OutputPage.php(835): Message->text()
#6 /var/www/w/includes/OutputPage.php(878): OutputPage->setHTMLTitle(Object(Message))
#7 /var/www/w/includes/Article.php(554): OutputPage->setPageTitle('Auswirkungen ex...')
#8 /var/www/w/includes/actions/ViewAction.php(44): Article->view()
#9 /var/www/w/includes/Wiki.php(439): ViewAction->show()
#10 /var/www/w/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#11 /var/www/w/includes/Wiki.php(565): MediaWiki->performRequest()
#12 /var/www/w/includes/Wiki.php(458): MediaWiki->main()
#13 /var/www/w/index.php(59): MediaWiki->run()
#14 {main}

This is similar to Bug 43516


Version: 1.21.x
Severity: normal
OS: Linux

Details

Reference
bz52781

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:10 AM
bzimport set Reference to bz52781.
bzimport added a subscriber: Unknown Object (MLST).

I'm not convinced it's the length of the filename. :)

Are there other pages with a colon (:) in the title that have the same problem? If you can try, does the problem still happen after replacing the colon by a dash or such?

Confirming the problem, though the backtrace that I get is slightly different:

#0 /var/www/w/includes/cache/MessageCache.php(711): MessageCache->load('de-formal')
#1 /var/www/w/includes/cache/MessageCache.php(651): MessageCache->getMsgFromNamespace('Gadgets-definit...', 'de-formal')
#2 /var/www/w/includes/Message.php(720): MessageCache->get('gadgets-definit...', true, Object(Language))
#3 /var/www/w/includes/Message.php(593): Message->fetchMessage()
#4 /var/www/w/extensions/Gadgets/Gadgets_body.php(588): Message->exists()
#5 /var/www/w/extensions/Gadgets/Gadgets_body.php(38): Gadget::loadStructuredList()
#6 [internal function]: GadgetHooks::userGetDefaultOptions(Array)
#7 /var/www/w/includes/Hooks.php(255): call_user_func_array('GadgetHooks::us...', Array)
#8 /var/www/w/includes/GlobalFunctions.php(3883): Hooks::run('UserGetDefaultO...', Array)
#9 /var/www/w/includes/User.php(1246): wfRunHooks('UserGetDefaultO...', Array)
#10 /var/www/w/includes/User.php(4334): User::getDefaultOptions()
#11 /var/www/w/includes/User.php(2227): User->loadOptions()
#12 /var/www/w/includes/context/RequestContext.php(296): User->getOption('language')
#13 /var/www/w/includes/Message.php(360): RequestContext->getLanguage()
#14 /var/www/w/includes/context/RequestContext.php(377): Message->setContext(Object(RequestContext))
#15 [internal function]: RequestContext->msg('pagetitle')
#16 /var/www/w/includes/context/ContextSource.php(165): call_user_func_array(Array, Array)
#17 /var/www/w/includes/OutputPage.php(878): ContextSource->msg('pagetitle')
#18 /var/www/w/includes/Article.php(554): OutputPage->setPageTitle('Auswirkungen ex...')
#19 /var/www/w/includes/actions/ViewAction.php(44): Article->view()
#20 /var/www/w/includes/Wiki.php(439): ViewAction->show()
#21 /var/www/w/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#22 /var/www/w/includes/Wiki.php(565): MediaWiki->performRequest()
#23 /var/www/w/includes/Wiki.php(458): MediaWiki->main()
#24 /var/www/w/index.php(59): MediaWiki->run()
#25 {main}

simon.bachenberg wrote:

(In reply to comment #1)

I had disabled all Extensions, to check if the Problem is really a Mediawiki bug. That only changes the Stacktrace, but not the error, as you can see.

Normally we dont have problems with pagenames containing :"'! or any other symbols.

No idea yet what exactly is going wrong here, sorry.
I recommend to also post to https://www.mediawiki.org/wiki/Project:Support_desk to get more input by people with potential ideas.

(In reply to comment #2)

Normally we dont have problems with pagenames containing :"'! or any other
symbols.

Is there an example of a page with a colon that works?

simon.bachenberg wrote:

(In reply to comment #5)

(In reply to comment #2)

Normally we dont have problems with pagenames containing :"'! or any other
symbols.

Is there an example of a page with a colon that works?

This one works:
http://sofis.gesis.org/sofiswiki/Test!test

simon.bachenberg wrote:

Sorry sometimes i dont read well :-)

so this one here works http://sofis.gesis.org/sofiswiki/Test!,.;:%27%60%C2%B4%5E%22test

Note that the URL length is the URI-decoded portion. Replacing ü with u still shows the problem.

simon.bachenberg wrote:

Hi,
i found a workaround for this problem. If I disable the memcache everything works fine. The Error Occurs if the memcache is too slow. The real Error occurs in MessageCache.php line 339:

$success = $this->mMemc->add( $statusKey, 'loading', MSG_LOAD_TIMEOUT );

aaron subscribed.

Closing, per " The Error Occurs if the memcache is too slow".