Page MenuHomePhabricator

LocalFileLockError: Could not acquire lock for "mwstore: …" (via ApiUpload.php)
Closed, DeclinedPublicPRODUCTION ERROR


LocalFileLockError:  Could not acquire lock for "mwstore: …"
from /srv/mediawiki/php-1.36.0-wmf.30/includes/filerepo/file/LocalFile.php(2344)
#0 /srv/mediawiki/php-1.36.0-wmf.30/includes/filerepo/file/LocalFile.php(1414): LocalFile->lock()
#1 /srv/mediawiki/php-1.36.0-wmf.30/includes/upload/UploadBase.php(953): LocalFile->upload(string, string, string, integer, array, boolean, User, NULL)
#2 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiUpload.php(886): UploadBase->performUpload(string, string, boolean, User, NULL, NULL)
#3 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiUpload.php(144): ApiUpload->performUpload(array)
#4 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiUpload.php(101): ApiUpload->getContextResult()
#5 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiMain.php(1612): ApiUpload->execute()
#6 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiMain.php(592): ApiMain->executeAction()
#7 /srv/mediawiki/php-1.36.0-wmf.30/includes/api/ApiMain.php(563): ApiMain->executeActionWithErrorHandling()
#8 /srv/mediawiki/php-1.36.0-wmf.30/api.php(90): ApiMain->execute()
#9 /srv/mediawiki/php-1.36.0-wmf.30/api.php(45): wfApiMain()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}

TBD. Likely loss of uploads from a user, given fatal error, might not have a helpful or localised error message.


Might be related to:
T274589: No atomic section is open (got LocalFile::lockingTransaction)
T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock"

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Given that this is from February and we don't have any other detailed logs available, I don't think this ticket is actionable. It should either be declined or duped to one of the issues with file locking.

@Krinkle: Do you agree to decline this? :-/

Closing as there are no matches for message:"Could not acquire lock" AND exception.trace:ApiUpload in the past 30 days on the mediawiki-errors dashboard in Logstash.