Page MenuHomePhabricator

Cannot save on 1.34.0-wmf.13 - "Cannot access the database: Unknown error"
Closed, ResolvedPublic

Description

Error

Request URL:
Request ID: XST83QpAAEoAAF9SB9kAAADM

message
[{exception_id}] {exception_url} Wikimedia\Rdbms\DBConnectionError from line 1335 of /srv/mediawiki/php-1.34.0-wmf.13/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (10.64.32.136)
trace
#0 /srv/mediawiki/php-1.34.0-wmf.13/includes/libs/rdbms/loadbalancer/LoadBalancer.php(896): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /srv/mediawiki/php-1.34.0-wmf.13/includes/libs/rdbms/loadbalancer/LoadBalancer.php(992): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#2 /srv/mediawiki/php-1.34.0-wmf.13/extensions/AbuseFilter/includes/AbuseFilter.php(3401): Wikimedia\Rdbms\LoadBalancer->getConnectionRef(integer, array, string)
#3 /srv/mediawiki/php-1.34.0-wmf.13/extensions/AbuseFilter/includes/AbuseFilter.php(601): AbuseFilter::getCentralDB(integer)
#4 /srv/mediawiki/php-1.34.0-wmf.13/includes/libs/objectcache/WANObjectCache.php(1406): Closure$AbuseFilter::checkAllFilters(boolean, integer, array, NULL)
#5 /srv/mediawiki/php-1.34.0-wmf.13/includes/libs/objectcache/WANObjectCache.php(1266): WANObjectCache->doGetWithSetCallback(string, integer, Closure$AbuseFilter::checkAllFilters;3010, array)
#6 /srv/mediawiki/php-1.34.0-wmf.13/extensions/AbuseFilter/includes/AbuseFilter.php(620): WANObjectCache->getWithSetCallback(string, integer, Closure$AbuseFilter::checkAllFilters;3010, array)
#7 /srv/mediawiki/php-1.34.0-wmf.13/extensions/AbuseFilter/includes/AbuseFilter.php(1192): AbuseFilter::checkAllFilters(AbuseFilterVariableHolder, Title, string, string, AbuseFilterParser)
#8 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/SpamFilter/AbuseFilter.php(99): AbuseFilter::filterAction(AbuseFilterVariableHolder, Title, string, User)
#9 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/SpamFilter/Controller.php(55): Flow\SpamFilter\AbuseFilter->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
#10 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Block/Block.php(320): Flow\SpamFilter\Controller->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
#11 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Block/Topic.php(244): Flow\Block\AbstractBlock->checkSpamFilters(NULL, Flow\Model\PostRevision)
#12 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Block/Topic.php(124): Flow\Block\TopicBlock->validateReply()
#13 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Block/Block.php(213): Flow\Block\TopicBlock->validate()
#14 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/SubmissionHandler.php(120): Flow\Block\AbstractBlock->onSubmit(array)
#15 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/WorkflowLoader.php(62): Flow\SubmissionHandler->handleSubmit(Flow\Model\Workflow, DerivativeContext, array, string, array)
#16 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Api/ApiFlowBasePost.php(23): Flow\WorkflowLoader->handleSubmit(DerivativeContext, string, array)
#17 /srv/mediawiki/php-1.34.0-wmf.13/extensions/Flow/includes/Api/ApiFlow.php(98): Flow\Api\ApiFlowBasePost->execute()
#18 /srv/mediawiki/php-1.34.0-wmf.13/includes/api/ApiMain.php(1583): Flow\Api\ApiFlow->execute()
#19 /srv/mediawiki/php-1.34.0-wmf.13/includes/api/ApiMain.php(531): ApiMain->executeAction()
#20 /srv/mediawiki/php-1.34.0-wmf.13/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#21 /srv/mediawiki/php-1.34.0-wmf.13/api.php(86): ApiMain->execute()
#22 /srv/mediawiki/w/api.php(3): include(string)
#23 {main}

Impact

Cannot save an edit

Notes

Event Timeline

jeena created this task.Jul 9 2019, 8:54 PM
Restricted Application removed a project: Patch-For-Review. · View Herald TranscriptJul 9 2019, 8:54 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptJul 9 2019, 8:58 PM
thcipriani lowered the priority of this task from Unbreak Now! to Needs Triage.Jul 9 2019, 8:58 PM
thcipriani triaged this task as Unbreak Now! priority.
thcipriani updated the task description. (Show Details)
thcipriani added a subscriber: thcipriani.

didn't mean to change priority

brennen added a subscriber: brennen.Jul 9 2019, 9:01 PM
greg added a comment.Jul 9 2019, 9:01 PM

For the record, that was my request to try to save an edit on my mw.org user page. I couldn't when we were on wmf.13 (this error) and now that we're rolled back I can.

jeena renamed this task from Cannot save on 1.34.0-wmf.13 to Cannot save on 1.34.0-wmf.13 - Cannot access the database: Unknown error.Jul 9 2019, 9:23 PM
jeena renamed this task from Cannot save on 1.34.0-wmf.13 - Cannot access the database: Unknown error to Cannot save on 1.34.0-wmf.13 - "Cannot access the database: Unknown error".

AbuseFilter is the last bit of non-DB code in the stack.

Restricted Application added a subscriber: Daimona. · View Herald TranscriptJul 9 2019, 9:42 PM
Krinkle added a project: Performance-Team.
Krinkle removed a project: MediaWiki-General.

Change 521788 had a related patch set uploaded (by Aaron Schulz; owner: Aaron Schulz):
[mediawiki/extensions/AbuseFilter@master] Fix bogus DB domain parameter in AbuseFilter::getCentralDB()

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

Change 521789 had a related patch set uploaded (by Krinkle; owner: Aaron Schulz):
[mediawiki/extensions/AbuseFilter@wmf/1.34.0-wmf.13] Fix bogus DB domain parameter in AbuseFilter::getCentralDB()

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

Change 521788 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Fix bogus DB domain parameter in AbuseFilter::getCentralDB()

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

Change 521789 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@wmf/1.34.0-wmf.13] Fix bogus DB domain parameter in AbuseFilter::getCentralDB()

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

Krinkle closed this task as Resolved.Jul 9 2019, 10:54 PM
Krinkle assigned this task to aaron.
Krinkle removed a project: Patch-For-Review.

Mentioned in SAL (#wikimedia-operations) [2019-07-09T22:55:02Z] <krinkle@deploy1001> Synchronized php-1.34.0-wmf.13/extensions/AbuseFilter/includes/AbuseFilter.php: 0096dff3022 / T227613 (duration: 00m 57s)