I uploaded https://en.wikipedia.org/wiki/File:Testing_protection_level_reset_on_delete_and_restore.png as a test of upload protection settings after deletion and restoration, but now I can't delete it. Here's what I did:
- Saved https://en.wikipedia.org/wiki/File:Smiley.png to my hard disk.
- Uploaded that file under the new title https://en.wikipedia.org/wiki/File:Testing_protection_level_reset_on_delete_and_restore.png. I uploaded it via https://en.wikipedia.org/wiki/Special:Upload, with the "Ignore any warnings" checkbox checked.
- Protected Testing_protection_level_reset_on_delete_and_restore.png with upload protection (upload=administrator).
- Deleted it. This first deletion was successful.
- Restored it.
- Tried to delete it again. This and subsequent attempts to delete it failed with the following error message:
Error deleting file: Testing protection level reset on delete and restore.png Error deleting file: The file "mwstore://local-multiwrite/local-deleted/b/p/n/bpnxe0zwcv22gjzydvc2jimlr70ixzi.png" is in an inconsistent state within the internal storage backends
Attempting to delete it via Special:ApiSandbox got me this message:
{ "servedby": "mw1204", "error": { "code": "internal_api_error_LocalFileLockError", "info": "[V4HgmApAAM8AAFt93eoAAAAK] Exception Caught: Could not acquire lock for \"mwstore://local-multiwrite/local-public/0/00/Testing_protection_level_reset_on_delete_and_restore.png\"." } }
If someone could delete the page, that would be great. I think it would also be worth checking if this is due to a bug in the software, and fix it if necessary.