Page MenuHomePhabricator

MediaSearch: ApiUsageException: We could not complete your search due to a temporary problem. Please try again later.
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   ApiUsageException: We could not complete your search due to a temporary problem. Please try again later.
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiBase.php(1633)
#0 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiQuerySearch.php(139): ApiBase->dieStatus(MediaWiki\Status\Status)
#1 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiQuerySearch.php(64): ApiQuerySearch->run(ApiPageSet)
#2 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiPageSet.php(279): ApiQuerySearch->executeGenerator(ApiPageSet)
#3 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiPageSet.php(242): ApiPageSet->executeInternal(boolean)
#4 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiQuery.php(685): ApiPageSet->execute()
#5 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiMain.php(1948): ApiQuery->execute()
#6 /srv/mediawiki/php-1.43.0-wmf.2/includes/api/ApiMain.php(893): ApiMain->executeAction()
#7 /srv/mediawiki/php-1.43.0-wmf.2/extensions/MediaSearch/src/Special/SpecialMediaSearch.php(563): ApiMain->execute()
#8 /srv/mediawiki/php-1.43.0-wmf.2/extensions/MediaSearch/src/Special/SpecialMediaSearch.php(235): MediaWiki\Extension\MediaSearch\Special\SpecialMediaSearch->search(string, string, array, integer, string, string)
#9 /srv/mediawiki/php-1.43.0-wmf.2/includes/specialpage/SpecialPage.php(718): MediaWiki\Extension\MediaSearch\Special\SpecialMediaSearch->execute(NULL)
#10 /srv/mediawiki/php-1.43.0-wmf.2/includes/specialpage/SpecialPageFactory.php(1672): MediaWiki\SpecialPage\SpecialPage->run(NULL)
#11 /srv/mediawiki/php-1.43.0-wmf.2/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#12 /srv/mediawiki/php-1.43.0-wmf.2/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()
#13 /srv/mediawiki/php-1.43.0-wmf.2/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()
#14 /srv/mediawiki/php-1.43.0-wmf.2/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#15 /srv/mediawiki/w/index.php(3): require(string)
#16 {main}
Impact
Notes

I saw these at a low level in prior versions but they increased after 1.43.2 (T361396) reached group1 yesterday, all on commonswiki:

2024-04-25-09:19:57.png (252×526 px, 15 KB)

Feels similar: T363408: MediaSearch: ApiUsageException: Search is currently too busy. Please try again later.

Details

Request URL
https://commons.wikimedia.org/w/index.php?go=*&search=*&title=*&uselang=*

Event Timeline

I note that this started at 2024-04-24 21:35 which matches up with this entry in the SAL:

<ryankemper@puppetmaster1001>	conftool action : set/weight=10:pooled=yes; selector: name=elastic110[3-7]\.eqiad\.wmnet	[production]

Subscribing @RKemper in case these things are related.

Change #1089710 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/MediaSearch@master] SpecialMediaSearch: Add error handling for search API errors

https://gerrit.wikimedia.org/r/1089710

Change #1089710 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] SpecialMediaSearch: Add error handling for search API errors

https://gerrit.wikimedia.org/r/1089710