Page MenuHomePhabricator

$wgCampaignEventsProgramsAndEventsDashboardAPISecret no longer set in PrivateSettings.php
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
message
[a31883a4-1fe9-4937-a3a1-bb4071916375] /wiki/Special:EventDetails/107 RuntimeException: "CampaignEventsProgramsAndEventsDashboardAPISecret" must be configured in order to use the P&E Dashboard.
trace
from /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/TrackingTool/TrackingToolRegistry.php(96)
#0 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/TrackingTool/TrackingToolRegistry.php(72): MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolRegistry->getConfiguredPEDashboardData()
#1 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/TrackingTool/TrackingToolRegistry.php(216): MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolRegistry->getRegistry()
#2 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/FrontendModules/EventDetailsModule.php(396): MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolRegistry->getUserInfo(integer, string)
#3 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/FrontendModules/EventDetailsModule.php(226): MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsModule->getTrackingToolsSection()
#4 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/FrontendModules/EventDetailsModule.php(119): MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsModule->getInfoColumn(User, OutputPage, boolean, boolean, integer)
#5 /srv/mediawiki/php-1.41.0-wmf.18/extensions/CampaignEvents/src/Special/SpecialEventDetails.php(176): MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsModule->createContent(User, boolean, boolean, OutputPage)
#6 /srv/mediawiki/php-1.41.0-wmf.18/includes/specialpage/SpecialPage.php(701): MediaWiki\Extension\CampaignEvents\Special\SpecialEventDetails->execute(string)
#7 /srv/mediawiki/php-1.41.0-wmf.18/includes/specialpage/SpecialPageFactory.php(1563): SpecialPage->run(string)
#8 /srv/mediawiki/php-1.41.0-wmf.18/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#9 /srv/mediawiki/php-1.41.0-wmf.18/includes/MediaWiki.php(948): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.41.0-wmf.18/includes/MediaWiki.php(597): MediaWiki->main()
#11 /srv/mediawiki/php-1.41.0-wmf.18/index.php(50): MediaWiki->run()
#12 /srv/mediawiki/php-1.41.0-wmf.18/index.php(46): wfIndexMain()
#13 /srv/mediawiki/w/index.php(3): require(string)
#14 {main}
Impact

Can't use several features provided by the CampaignEvents extension.

Notes

A few days ago, a change was pushed to PrivateSettings.php with the secret API key in question (see T320260). However, this seems to no longer be set, because this exception is only thrown when the API key is null.

Note that for some reason, the exception message and trace can be seen directly on-wiki; maybe because it's testwiki?

Details

Request URL
https://test.wikipedia.org/wiki/Special:EventDetails/107

Event Timeline

Daimona triaged this task as Unbreak Now! priority.Jul 20 2023, 11:28 PM
Daimona created this task.

Mentioned in SAL (#wikimedia-operations) [2023-07-21T07:57:41Z] <zabe@deploy1002> Finished scap: T342405 (duration: 07m 03s)

Zabe claimed this task.
Zabe subscribed.

Redeployed the value from P49569. Btw somehow there was no trace of it ever being deployed before.

Redeployed the value from P49569. Btw somehow there was no trace of it ever being deployed before.

Thanks! This definitely used to work after it was deployed, so I have no idea of what happened...

How odd. Did someone restore PS from backup?