Page MenuHomePhabricator

Multiple files returns "File not found: /v1/AUTH_mw/wikipedia-commons-local-public" error instead of showing correct file
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
PMG
Apr 30 2025, 7:09 PM
Referenced Files
F59591718: image.png
Apr 30 2025, 7:09 PM
F59591620: image.png
Apr 30 2025, 7:09 PM
F59591681: image.png
Apr 30 2025, 7:09 PM
F59591671: image.png
Apr 30 2025, 7:09 PM
F59591661: image.png
Apr 30 2025, 7:09 PM
F59591654: image.png
Apr 30 2025, 7:09 PM
F59591647: image.png
Apr 30 2025, 7:09 PM
F59591637: image.png
Apr 30 2025, 7:09 PM

Description

Steps to replicate the issue (include links if applicable):

  • Go to first provided url in set
  • Check results in browser - that there is no correct file
  • Go to second provided url in set
  • Check results in browser - that there is no correct file and error is visible.
  • Return to first link and check different sizes of files.
  • check that there is reported issue with file

File 1

image.png (972×1 px, 94 KB)

image.png (643×1 px, 14 KB)

https://commons.wikimedia.org/wiki/File:Yankees_Baseball_(4)_(10561723864).jpg
https://upload.wikimedia.org/wikipedia/commons/8/8b/Yankees_Baseball_%284%29_%2810561723864%29.jpg
File not found: /v1/AUTH_mw/wikipedia-commons-local-public.8b/8/8b/Yankees_Baseball_%284%29_%2810561723864%29.jpg

File 2

image.png (753×1 px, 67 KB)

image.png (421×1 px, 13 KB)

https://commons.wikimedia.org/wiki/File:Yankees_Baseball_(1)_(10562830654).jpg
https://upload.wikimedia.org/wikipedia/commons/2/21/Yankees_Baseball_%281%29_%2810562830654%29.jpg
File not found: /v1/AUTH_mw/wikipedia-commons-local-public.21/2/21/Yankees_Baseball_%281%29_%2810562830654%29.jpg

File 3

image.png (804×1 px, 71 KB)

image.png (626×1 px, 14 KB)

https://commons.wikimedia.org/wiki/File:Yankees_Baseball_(2)_(10561961695).jpg
https://upload.wikimedia.org/wikipedia/commons/2/22/Yankees_Baseball_%282%29_%2810561961695%29.jpg
File not found: /v1/AUTH_mw/wikipedia-commons-local-public.22/2/22/Yankees_Baseball_%282%29_%2810561961695%29.jpg

File 4

image.png (856×1 px, 75 KB)

image.png (615×1 px, 15 KB)

https://commons.wikimedia.org/wiki/File:Yankees_Baseball_(3)_(10561732746).jpg
https://upload.wikimedia.org/wikipedia/commons/f/fd/Yankees_Baseball_%283%29_%2810561732746%29.jpg
File not found: /v1/AUTH_mw/wikipedia-commons-local-public.fd/f/fd/Yankees_Baseball_%283%29_%2810561732746%29.jpg

All of them are in
https://commons.wikimedia.org/wiki/Category:Baltimore_Orioles_vs._New_York_Yankees_(August_31,_2013)

Photo of category:

image.png (806×1 px, 337 KB)

All of them, when checking different sizes of thumbnails are reporting such errors:

image.png (753×1 px, 27 KB)

What happens?: Error is provided.

What should have happened instead?: File should be provided

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.): Checked on Chrome and Brave.

Event Timeline

@MatthewVernon as you described in T321869 I created separate issue for this.

So, the first isn't in either swift cluster per swift stat wikipedia-commons-local-public.8b '8/8b/Yankees_Baseball_(4)_(10561723864).jpg' The easiest thing here is probably to reupload it from the original which is still online? Looking in the backups, the eqiad backup system never had a copy, there is one in the codfw backup system. So most likely it wasn't properly uploaded to both clusters originally.

Second isn't in either swift cluster per swift stat wikipedia-commons-local-public.21 '2/21/Yankees_Baseball_(1)_(10562830654).jpg'. This is in both backup clusters, but again also still available online, so probably easiest to re-upload from the original?

The third isn't in either swift cluster per swift stat wikipedia-commons-local-public.22 '2/22/Yankees_Baseball_(2)_(10561961695).jpg'. It is again in both backup clusters, and the original is still online at flickr.

The fourth is also not in either swift cluster per swift stat wikipedia-commons-local-public.fd 'f/fd/Yankees_Baseball_(3)_(10561732746).jpg'. It is again in both backup clusters, and the original is still online at flickr.

So I think with all of these, the natural resolution would be to reupload from flickr. If this isn't possible for some reason, I can dig them out of backups and attach them to this ticket (whence an admin could upload them).

@jcrespo - I tried to reupload them in same place, but I got error message that I am trying to reupload same file by same file, and then path of uploading ends. So I dont know how to solve problem. Either I am PEBCAK or system is not allowing to "reupload same file in same place". Can someone else upload this files in this place?

@jcrespo - I tried to reupload them in same place, but I got error message that I am trying to reupload same file by same file, and then path of uploading ends. So I dont know how to solve problem. Either I am PEBCAK or system is not allowing to "reupload same file in same place". Can someone else upload this files in this place?

I will try to help here, I am assuming it is not just the normal warning, but that metadata, in addition to data (or its code workflow) and that means reupload cannot fix the issue here. :-(. I cannot promise anything but will report with what I find.

@jcrespo thank you very much. Fixing this will make my life easier because its blocking adding structured data in "sport" category. Depictor (that I am using to add structured data) is not handling well such situations, and crash.

So I did:

mwscript importImages.php --wiki=commonswiki --sleep=1 --comment="Reupload due to missing file - T393049" --user="JCrespo_(WMF)" --overwrite /tmp/T393049
Importing Files

Yankees_Baseball_(2)_(10561961695).jpg exists, overwriting...skipped. (fileexists-no-change)
Yankees_Baseball_(4)_(10561723864).jpg exists, overwriting...skipped. (fileexists-no-change)
Yankees_Baseball_(3)_(10561732746).jpg exists, overwriting...skipped. (fileexists-no-change)
Yankees_Baseball_(1)_(10562830654).jpg exists, overwriting...skipped. (fileexists-no-change)

Found: 4
Skipped: 4

Despite saying "4 skipped", it actually reuploaded them to the right place, so I won't complain (I checked swift on both dcs). Resolving, as I can now query them and they are at least on a couple of edge dcs too, unless @PMG stills sees a problem.

The right fix is to reupload them from backups and ignore the errors. I will now cleanup the upload dir and archive the test files.

jcrespo claimed this task.

Deleted the test wikipedia files, too FYI

@jcrespo thank you very much. Everything works correct. Have a great day/Wszystkiego dobrego.