Steps to replicate the issue (include links if applicable):
Tried to move https://commons.wikimedia.org/wiki/File:J_Class_World_Championship_-_Newport_Shipyard_by_D_Ramey_Logan.webm using API:
https://commons.wikimedia.org/w/api.php?action=move action "move" format "json" from "File:J+Class+World+Championship+-+Newport+Shipyard+by+D+Ramey+Logan.webm" to "File:J+Class+World+Championship+-+Newport+Shipyard+by+Don+Ramey+Logan.webm" reason "[[Special:PermanentLink/1234689896|FR1]]" movetalk "1" watchlist "nochange" tags "AJSBulkRename" assertuser "Alexis+Jazz"
Tried to move https://commons.wikimedia.org/wiki/File:Wedge_Video_D_Ramey_Logan.ogv using API:
action "move" format "json" from "File:Wedge+Video+D+Ramey+Logan.ogv" to "File:Large+waves+from+Hurricane+Marie+at+the+Wedge+Video+Don+Ramey+Logan.ogv" reason "[[Special:PermanentLink/1234689896|FR1]]" movetalk "1" watchlist "nochange" tags "AJSBulkRename" assertuser "Alexis+Jazz"
Tokens were included in the request.
What happens?:
First file: NS_BINDING_ABORTED
Second file:
HTTP 200, 16839ms
error Object { code: "internal_api_error_DBQueryError", info: "[cd5d4dd2-e43d-473a-9554-bc6d9b294ca0] Caught exception of type Wikimedia\\Rdbms\\DBQueryError", errorclass: "Wikimedia\\Rdbms\\DBQueryError" }
servedby "mw-api-ext.eqiad.main-6d8f95854d-g659g"[cd5d4dd2-e43d-473a-9554-bc6d9b294ca0]
What should have happened instead?:
Moved files
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
https://commons.wikimedia.org/wiki/User:Alexis_Jazz/AJSBulkRename but as it's an API call I can't imagine it matters.
Error
- mwversion: 1.47.0-wmf.9
- timestamp: 2026-07-04T02:22:13.659Z
- phpversion: 8.3.31
- reqId: cd5d4dd2-e43d-473a-9554-bc6d9b294ca0
- Find reqId in Logstash
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryError: Error 1205: Lock wait timeout exceeded; try restarting transaction
Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds
Query: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,