Page MenuHomePhabricator

Images not rendered correctly
Closed, ResolvedPublic

Description

At the moment it seems that thumbnails of images are not always rendered correctly. I saw some complaints popping up on nl-wikipedia so looked a bit around. For example in this article:

https://nl.wikipedia.org/wiki/%C4%BDubom%C3%ADr_Ft%C3%A1%C4%8Dnik

The image, https://commons.wikimedia.org/wiki/File:Ftacnik_lubomir_20081025_berlin_bundesliga.jpg, is not displayed. nl-wikipedia generated thumbnails in infoboxes with a default of 264px. When looking on commons, the 263px and the 265px were decently generated, but the 264px one doesn't display, not even after a purge.

The second one I saw was the map on this article:

https://nl.wikipedia.org/wiki/Xiongnu

the image being: https://commons.wikimedia.org/wiki/File:Hsiung-nu-Empire.png

Can this been looked into, it seems some caching is broken, and some broken image files are in the way or something alike.


Version: unspecified
Severity: major

Details

Reference
bz34718

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:15 AM
bzimport set Reference to bz34718.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

The second one I saw was the map on this article:

https://nl.wikipedia.org/wiki/Xiongnu

the image being: https://commons.wikimedia.org/wiki/File:Hsiung-nu-Empire.png

This one seems to be a template problem as there is no reference to this file (that I can see) in the html for thd article.

saibotrash wrote:

(In reply to comment #4)
correct myself...

Grrr... you have only replied to the second case... Yes, there does not seem to be a file reference inside the article...

bhartshorne wrote:

I think this one is an issue with the purging code, though we'll look into it more after the weekend.

I looked in both swift and ms5 (the previous and still sort-of active store for thumbnails). Here is the list of all thumbnails there:

Swift:
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/200px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/220px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/266px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/268px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/450px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/576px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/720px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg

ms5:
-rw-r--r-- 1 48 48 15447 2012-02-26 00:54 200px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 18027 2012-02-25 21:51 220px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 24875 2012-02-26 02:16 266px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 25002 2012-02-26 00:27 268px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 63989 2012-02-25 21:50 450px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 97843 2012-02-25 22:13 576px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg
-rw-r--r-- 1 48 48 151047 2012-02-25 22:44 720px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg

The interesting part is that there is no 264 or 265px version of this image stored there, and yet loading the URL https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/264px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg or https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/265px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg yield an error[1] and an image respectively.

[1] The image “https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Ftacnik_lubomir_20081025_berlin_bundesliga.jpg/264px-Ftacnik_lubomir_20081025_berlin_bundesliga.jpg” cannot be displayed because it contains errors.

Ok, looked a bit better into the second case (I only deeply looked into the first, and the second one seems indeed something else. The first one however remains. Thanks for investigating so far.

bhartshorne wrote:

using curl -v to fetch the image and show the headers, I see:

< Server: nginx/0.7.65
< Date: Sun, 26 Feb 2012 17:09:17 GMT
< Content-Type: image/jpeg
< Connection: keep-alive
< Content-Length: 0
< Last-Modified: Sat, 25 Feb 2012 18:15:28 GMT
< Accept-Ranges: bytes
< Age: 31021
< X-Cache: HIT from sq53.wikimedia.org
< X-Cache-Lookup: HIT from sq53.wikimedia.org:3128
< X-Cache: MISS from sq50.wikimedia.org
< X-Cache-Lookup: MISS from sq50.wikimedia.org:80
< Via: 1.1 sq53.wikimedia.org:3128 (squid/2.7.STABLE9), 1.0 sq50.wikimedia.org:80 (squid/2.7.STABLE9)

showing that it is in squid, despite not being in swift or ms5, and that it's a 0-length file that's cached there.

This specific case has closed itself, as it doesn't look structural, closing ticket now.