Page MenuHomePhabricator

BannerExistenceException due to non-existing CentralNotice banner (after Special:LanguageStats view)
Open, Needs TriagePublic

Description

On wikitest looking in https://test.wikipedia.org/wiki/Special:LanguageStats page me a message appears in red background and does not make me see the translation table. In this moment there are mobile devices with the view to Deskop (I'm using google)
The error text:

exception
BannerExistenceException:  No banner exists where tmp_name = WikiCon. Could not load.
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.25/extensions/CentralNotice/includes/Banner.php(174): Banner->populateBasicData()
#1 /srv/mediawiki/php-1.35.0-wmf.25/extensions/CentralNotice/includes/Banner.php(890): Banner->getName()
#2 /srv/mediawiki/php-1.35.0-wmf.25/extensions/CentralNotice/includes/Banner.php(854): Banner->getMessageFieldsCacheKey(WANObjectCache)
#3 /srv/mediawiki/php-1.35.0-wmf.25/extensions/CentralNotice/includes/BannerMessageGroup.php(66): Banner->getMessageFieldsFromCache()
#4 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/messagegroups/MessageGroupOld.php(288): BannerMessageGroup->getDefinitions()
#5 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/utils/MessageGroupStats.php(543): MessageGroupOld->initCollection(string)
#6 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/utils/MessageGroupStats.php(458): MessageGroupStats::calculateGroup(BannerMessageGroup, string)
#7 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/utils/MessageGroupStats.php(357): MessageGroupStats::forItemInternal(array, BannerMessageGroup, string, integer)
#8 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/utils/MessageGroupStats.php(119): MessageGroupStats::forLanguageInternal(string, array, integer)
#9 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/specials/SpecialLanguageStats.php(204): MessageGroupStats::forLanguage(string, integer)
#10 /srv/mediawiki/php-1.35.0-wmf.25/extensions/Translate/specials/SpecialLanguageStats.php(184): SpecialLanguageStats->loadStatistics(string)
#11 /srv/mediawiki/php-1.35.0-wmf.25/includes/deferred/MWCallableUpdate.php(38): SpecialLanguageStats->{closure}()
#12 /srv/mediawiki/php-1.35.0-wmf.25/includes/deferred/DeferredUpdates.php(417): MWCallableUpdate->doUpdate()
#13 /srv/mediawiki/php-1.35.0-wmf.25/includes/deferred/DeferredUpdates.php(296): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#14 /srv/mediawiki/php-1.35.0-wmf.25/includes/deferred/DeferredUpdates.php(233): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
#15 /srv/mediawiki/php-1.35.0-wmf.25/includes/deferred/DeferredUpdates.php(150): DeferredUpdates::handleUpdateQueue(array, string, integer)
#16 /srv/mediawiki/php-1.35.0-wmf.25/includes/MediaWiki.php(1059): DeferredUpdates::doUpdates(string)
#17 /srv/mediawiki/php-1.35.0-wmf.25/includes/MediaWiki.php(839): MediaWiki->restInPeace()
#18 /srv/mediawiki/php-1.35.0-wmf.25/includes/MediaWiki.php(848): MediaWiki->{closure}()
#19 /srv/mediawiki/php-1.35.0-wmf.25/includes/MediaWiki.php(574): MediaWiki->doPostOutputShutdown()
#20 /srv/mediawiki/php-1.35.0-wmf.25/index.php(47): MediaWiki->run()
#21 /srv/mediawiki/w/index.php(3): require(string)
#22 {main}

Original from 2017
[PEwpAADkAAjFyvIMAAABG] /wiki/Special:LanguageStats BannerExistenceException from line 348 of /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php: No banner exists where tmp_name = WikiCon. Could not load.

Backtrace:

#0 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(176): Banner->populateBasicData()
#1 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(827): Banner->getName()
#2 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(814): Banner->getMessageFieldsCacheKey()
#3 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/BannerMessageGroup.php(69): Banner->getMessageFieldsFromCache()
#4 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/messagegroups/MessageGroupOld.php(282): BannerMessageGroup->getDefinitions()
#5 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(401): MessageGroupOld->initCollection(string)
#6 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(362): MessageGroupStats::calculateGroup(BannerMessageGroup, string)
#7 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(250): MessageGroupStats::forItemInternal(array, BannerMessageGroup, string)
#8 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(107): MessageGroupStats::forLanguageInternal(string)
#9 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/specials/SpecialLanguageStats.php(369): MessageGroupStats::forLanguage(string)
#10 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/specials/SpecialLanguageStats.php(156): SpecialLanguageStats->getTable()
#11 /srv/mediawiki/php-1.29.0-wmf.11/includes/specialpage/SpecialPage.php(522): SpecialLanguageStats->execute(NULL)
#12 /srv/mediawiki/php-1.29.0-wmf.11/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#13 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#14 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(860): MediaWiki->performRequest()
#15 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(521): MediaWiki->main()
#16 /srv/mediawiki/php-1.29.0-wmf.11/index.php(43): MediaWiki->run()
#17 /srv/mediawiki/w/index.php(3): include(string)
#18 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2017, 7:57 PM
Aklapper renamed this task from Bug on testwiki (Special:LanguageStats to "Internal error" on testwiki's Special:LanguageStats due to non-existing CentralNotice banner.Feb 13 2017, 8:01 PM

Thanks!!! Do you know which production wiki(s) Special:LanguageStats is enabled on?

Samuele2002 added a comment.EditedFeb 13 2017, 8:23 PM

Special: LanguageStats is enabled for those regards proof wiki of test.wikipedia and test.wikidata, wiki for the other instead is enabled on Meta-Wiki Wikispecies Wikidata MediaWiki Incubator WikimaniaYEAR Test.wikipedia then I do not know if it is in other

Same problem happened to me while trying to rebuild the translation memories index for testwiki.

Could it be that the new version of MediaWiki is incompatible with the extension?

Samuele2002 added a comment.EditedFeb 22 2017, 1:38 PM

I made tests and found out that the problem is not only on that page but there is also an error that prevents the translation of the pages that is when translate does not save you and shows this error:

Error saving the translation: This namespace is reserved for content page translations. The page you are trying to edit does not Seem to Correspond any page marked for translation.

The problem is only the translation of the messages because it allows me to point out the pages for translation without problems.

Ex: https://test.wikipedia.org/wiki/Wikipedia:Test_translation and https://test.wikipedia.org/wiki/User:Samuele2002/sandbox

This problem is more serious than you think. First you should see if the errors are caused by an incompatibility issue with the new version, and if you find and fix errors, or if the cause is the same extension (but in other wiki works perfectly in all aspects even those reserved administrators of the translations) still have to find the problem because if you were to also report in the wiki main (all except metalinguistice wiki beta.wikiversity [am cerdando to convince the other users of the wiki to install it] can translate the extension )would be big trouble that would send haywire all over the pages of the translation process.

This problem is more serious than you think. First you should see if the errors are caused by an incompatibility issue with the new version, and if you find and fix errors, or if the cause is the same extension (but in other wiki works perfectly in all aspects even those reserved administrators of the translations) still have to find the problem because if you were to also report in the wiki main (all except metalinguistice wiki beta.wikiversity [am cerdando to convince the other users of the wiki to install it] can translate the extension )would be big trouble that would send haywire all over the pages of the translation process.

CentralNotice is responsible for registering the available banners for translation. So unless this is a stale cache in Translate, I don't think I would easily know how to fix this.

ggellerman triaged this task as Low priority.Feb 28 2017, 10:21 PM

@Samuele2002 are you still seeing this? Can this be reproduced on a production wiki?

Krinkle added a subscriber: Krinkle.

@DStrine Still seen by opening url https://test.wikipedia.org/wiki/Special:LanguageStats, from the task description. However, not on mediawiki.org, commons.wikimedia.org, or meta.wikimedia.org. As such, triaging as meta/low-impact.

Krinkle removed a subscriber: Krinkle.May 6 2019, 11:33 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:10 PM

But I am seeing it when trying to rebuild the message index manually:

mwscript extensions/Translate/scripts/createMessageIndex.php --wiki=testwiki
BannerExistenceException from line 346 of /srv/mediawiki/php-1.35.0-wmf.24/extensions/CentralNotice/includes/Banner.php: No banner exists where tmp_name = WikiCon. Could not load.
#0 /srv/mediawiki/php-1.35.0-wmf.24/extensions/CentralNotice/includes/Banner.php(174): Banner->populateBasicData()
#1 /srv/mediawiki/php-1.35.0-wmf.24/extensions/CentralNotice/includes/Banner.php(890): Banner->getName()
#2 /srv/mediawiki/php-1.35.0-wmf.24/extensions/CentralNotice/includes/Banner.php(854): Banner->getMessageFieldsCacheKey(Object(WANObjectCache))
#3 /srv/mediawiki/php-1.35.0-wmf.24/extensions/CentralNotice/includes/BannerMessageGroup.php(40): Banner->getMessageFieldsFromCache()
#4 /srv/mediawiki/php-1.35.0-wmf.24/extensions/Translate/utils/MessageIndex.php(301): BannerMessageGroup->getKeys()
#5 /srv/mediawiki/php-1.35.0-wmf.24/extensions/Translate/utils/MessageIndex.php(187): MessageIndex->checkAndAdd(Array, Object(BannerMessageGroup))
#6 /srv/mediawiki/php-1.35.0-wmf.24/extensions/Translate/scripts/createMessageIndex.php(30): MessageIndex->rebuild()
#7 /srv/mediawiki/php-1.35.0-wmf.24/maintenance/doMaintenance.php(99): CreateMessageIndex->execute()
#8 /srv/mediawiki/php-1.35.0-wmf.24/extensions/Translate/scripts/createMessageIndex.php(35): require_once('/srv/mediawiki/...')
#9 /srv/mediawiki/multiversion/MWScript.php(101): require_once('/srv/mediawiki/...')
#10 {main}
Krinkle renamed this task from "Internal error" on testwiki's Special:LanguageStats due to non-existing CentralNotice banner to BannerExistenceException due to non-existing CentralNotice banner (throws on job queue after Special:LanguageStats view).Mar 24 2020, 8:59 PM
Krinkle updated the task description. (Show Details)
Krinkle moved this task from Debug-only to Found longer ago on the Wikimedia-production-error board.

Still seen.

Krinkle renamed this task from BannerExistenceException due to non-existing CentralNotice banner (throws on job queue after Special:LanguageStats view) to BannerExistenceException due to non-existing CentralNotice banner (after Special:LanguageStats view).Mar 24 2020, 9:04 PM
Krinkle updated the task description. (Show Details)
Krinkle updated the task description. (Show Details)
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptMay 25 2020, 11:14 AM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptMay 25 2020, 11:15 AM
Nikerabbit reopened this task as Open.May 25 2020, 11:16 AM
Nikerabbit raised the priority of this task from Low to Needs Triage.

Whoops, I wanted to keep this open and the other one as duplicate. Resetting priority because this keeps coming up and prevents testing Translate on testwiki.

I note that this seems to have happend a couple of times again, today.

~~~

	#0 /srv/mediawiki/php-1.36.0-wmf.2/extensions/CentralNotice/includes/Banner.php(178): Banner->populateBasicData()

#1 /srv/mediawiki/php-1.36.0-wmf.2/extensions/CentralNotice/includes/Banner.php(927): Banner->getName()
#2 /srv/mediawiki/php-1.36.0-wmf.2/extensions/CentralNotice/includes/Banner.php(890): Banner->getMessageFieldsCacheKey(WANObjectCache)
#3 /srv/mediawiki/php-1.36.0-wmf.2/extensions/CentralNotice/includes/BannerMessageGroup.php(66): Banner->getMessageFieldsFromCache()
#4 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/messagegroups/MessageGroupOld.php(295): BannerMessageGroup->getDefinitions()
#5 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/utils/MessageGroupStats.php(545): MessageGroupOld->initCollection(string)
#6 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/utils/MessageGroupStats.php(460): MessageGroupStats::calculateGroup(BannerMessageGroup, string)
#7 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/utils/MessageGroupStats.php(359): MessageGroupStats::forItemInternal(array, BannerMessageGroup, string, integer)
#8 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/utils/MessageGroupStats.php(121): MessageGroupStats::forLanguageInternal(string, array, integer)
#9 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/api/ApiQueryLanguageStats.php(35): MessageGroupStats::forLanguage(string, integer)
#10 /srv/mediawiki/php-1.36.0-wmf.2/extensions/Translate/api/ApiStatsQuery.php(65): ApiQueryLanguageStats->loadStatistics(string)
#11 /srv/mediawiki/php-1.36.0-wmf.2/includes/deferred/MWCallableUpdate.php(38): ApiStatsQuery->{closure}()
#12 /srv/mediawiki/php-1.36.0-wmf.2/includes/deferred/DeferredUpdates.php(467): MWCallableUpdate->doUpdate()
#13 /srv/mediawiki/php-1.36.0-wmf.2/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#14 /srv/mediawiki/php-1.36.0-wmf.2/includes/deferred/DeferredUpdates.php(278): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
#15 /srv/mediawiki/php-1.36.0-wmf.2/includes/deferred/DeferredUpdates.php(194): DeferredUpdates::handleUpdateQueue(array, string, integer)
#16 /srv/mediawiki/php-1.36.0-wmf.2/includes/MediaWiki.php(1113): DeferredUpdates::doUpdates(string)
#17 /srv/mediawiki/php-1.36.0-wmf.2/includes/MediaWiki.php(849): MediaWiki->restInPeace()
#18 /srv/mediawiki/php-1.36.0-wmf.2/includes/MediaWiki.php(861): MediaWiki->{closure}()
#19 /srv/mediawiki/php-1.36.0-wmf.2/api.php(125): MediaWiki->doPostOutputShutdown()
#20 /srv/mediawiki/php-1.36.0-wmf.2/api.php(45): wfApiMain()
#21 /srv/mediawiki/w/api.php(3): require(string)
#22 {main}
~~~

Not enough to be a problem for this week's train, at this rate.

However, on the principle that every extra error message in the logs makes the train harder to do, I'm reporting.