Last modified: 2013-12-12 11:40:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46269, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44269 - 2000px thumbnail not deleted from (swift?) on action=purge
2000px thumbnail not deleted from (swift?) on action=purge
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
PC Windows 7
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-23 03:32 UTC by Rrius
Modified: 2013-12-12 11:40 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rrius 2013-01-23 03:32:39 UTC
When uploading a new version of a file, the new version should displace the old one. However, the software is not behaving itself at Commons:File:41st_Can_Senate.svg. After four days and dozens of purges and hard reloads, as well as using different browsers and having others on En and Commons check, the old version of the image is still the one that displays on the file page, displays at articles where the image is used, and downloads when clicking the download button (and right click > save image as). Oddly, the thumbs updated correctly and the image will display correctly when adding a question mark and any text after the name of the file (e.g., http://upload.wikimedia.org/wikipedia/commons/4/41/41st_Can_Senate.svg is the old version, but http://upload.wikimedia.org/wikipedia/commons/4/41/41st_Can_Senate.svg?blah is the new).

See http://commons.wikimedia.org/wiki/Commons:Village_pump#Trouble_with_uploading_new_versions
Comment 1 Bawolff (Brian Wolff) 2013-01-23 04:49:16 UTC
This is a dupe of something. Not sure which bug is most appropriate.

*** This bug has been marked as a duplicate of bug 41130 ***
Comment 2 Andre Klapper 2013-01-28 16:32:47 UTC
For the *original file* (not: thumbnail), https://commons.wikimedia.org/wiki/File:41st_Can_Senate.svg seems to list the correct version from Jan25?

While the main picture is correct, the 2000px thumbnail at http://upload.wikimedia.org/wikipedia/commons/thumb/4/41/41st_Can_Senate.svg/2000px-41st_Can_Senate.svg.png still shows the old version for me. This is covered in bug 41130.
Comment 3 Rrius 2013-01-28 21:31:20 UTC
The main image is also correct for me, but you are right: something is wrong with the thumb you linked to. It is actually showing the version uploaded on 20 July 2012, 10 uploads ago.
Comment 4 Bawolff (Brian Wolff) 2013-01-28 22:31:39 UTC
The main image was bug 41130 and got fixed by in the brief period when that bug was "fixed" (in my opinion anyhow)

However the 2000px image is something else. It is not being cached by varnish so the bad thumb is coming directly out of swift (as far as I can tell. Not that familiar with swift). It does not appear to be deleted on action=purge of the image desc page. (Unduping to bug 41130)

Accessing via north america:
 HTTP/1.1 200 OK 
 Server: nginx/1.1.19
 Date: Mon, 28 Jan 2013 22:26:12 GMT
 Content-Type: image/png
 Content-Length: 12706
 Connection: keep-alive
 X-Object-Meta-Sha1base36: 6qmddcqcdyix5etlu1xrronvkhttqak
 Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
 Etag: dfbb5fab4a113944065657576e5e0c72
 X-Timestamp: 1342898418.63822
 Access-Control-Allow-Origin: *
 X-Varnish: 3501037883, 1089133490
 Via: 1.1 varnish, 1.1 varnish
 Accept-Ranges: bytes
 Age: 0
 X-Cache: cp1021 miss (0), cp1030 frontend miss (0)

Of particular interest, always seems to be a cache miss. These headers are from the third time in a row that I accessed the image
Comment 5 Nemo 2013-01-29 07:49:35 UTC
(In reply to comment #4)
> Of particular interest, always seems to be a cache miss. These headers are
> from
> the third time in a row that I accessed the image

Not always, from Europe, but result doesn't change.

$ wget -S https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/41st_Can_Senate.svg/2000px-41st_Can_Senate.svg.png
[...]
  HTTP/1.1 200 OK
  Server: nginx/1.1.19
  Date: Mon, 28 Jan 2013 21:45:01 GMT
  Content-Type: image/png
  Content-Length: 12706
  Connection: keep-alive
  X-Object-Meta-Sha1base36: 6qmddcqcdyix5etlu1xrronvkhttqak
  Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
  Etag: dfbb5fab4a113944065657576e5e0c72
  X-Timestamp: 1342898418.63822
  Access-Control-Allow-Origin: *
  X-Varnish: 3497201383, 1468200824 1468081154, 1275272057
  Via: 1.1 varnish, 1.1 varnish, 1.1 varnish
  Accept-Ranges: bytes
  Age: 67
  X-Cache: cp1021 miss (0), cp3009 hit (1), cp3010 frontend miss (0)
Lunghezza: 12706 (12K) [image/png]

[...]

$ wget -S "http://commons.wikimedia.org/w/thumb.php?f=41st_Can_Senate.svg&w=2000"
[...]
  HTTP/1.0 200 OK
  Date: Mon, 28 Jan 2013 22:02:27 GMT
  Server: Apache
  X-Content-Type-Options: nosniff
  Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
  Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
  Content-Disposition: inline;filename*=UTF-8''41st_Can_Senate.svg.png
  Content-Length: 12706
  Content-Type: image/png
  X-Cache: MISS from sq76.wikimedia.org
  X-Cache-Lookup: MISS from sq76.wikimedia.org:3128
  X-Cache: MISS from amssq35.esams.wikimedia.org
  X-Cache-Lookup: MISS from amssq35.esams.wikimedia.org:3128
  X-Cache: MISS from amssq42.esams.wikimedia.org
  X-Cache-Lookup: MISS from amssq42.esams.wikimedia.org:80
  Connection: keep-alive
Lunghezza: 12706 (12K) [image/png]
Comment 6 Bawolff (Brian Wolff) 2013-01-29 17:55:04 UTC
Interesting, maybe(In reply to comment #5)
> (In reply to comment #4)
> > Of particular interest, always seems to be a cache miss. These headers are
> > from
> > the third time in a row that I accessed the image
> 
> Not always, from Europe, but result doesn't change.
> 
> $ wget -S
> https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/41st_Can_Senate.
> svg/2000px-41st_Can_Senate.svg.png
> [...]
>   HTTP/1.1 200 OK
>   Server: nginx/1.1.19
>   Date: Mon, 28 Jan 2013 21:45:01 GMT
>   Content-Type: image/png
>   Content-Length: 12706
>   Connection: keep-alive
>   X-Object-Meta-Sha1base36: 6qmddcqcdyix5etlu1xrronvkhttqak
>   Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
>   Etag: dfbb5fab4a113944065657576e5e0c72
>   X-Timestamp: 1342898418.63822
>   Access-Control-Allow-Origin: *
>   X-Varnish: 3497201383, 1468200824 1468081154, 1275272057
>   Via: 1.1 varnish, 1.1 varnish, 1.1 varnish
>   Accept-Ranges: bytes
>   Age: 67
>   X-Cache: cp1021 miss (0), cp3009 hit (1), cp3010 frontend miss (0)
> Lunghezza: 12706 (12K) [image/png]
> 
> [...]
> 
> $ wget -S
> "http://commons.wikimedia.org/w/thumb.php?f=41st_Can_Senate.svg&w=2000"
> [...]
>   HTTP/1.0 200 OK
>   Date: Mon, 28 Jan 2013 22:02:27 GMT
>   Server: Apache
>   X-Content-Type-Options: nosniff
>   Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
>   Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
>   Content-Disposition: inline;filename*=UTF-8''41st_Can_Senate.svg.png
>   Content-Length: 12706
>   Content-Type: image/png
>   X-Cache: MISS from sq76.wikimedia.org
>   X-Cache-Lookup: MISS from sq76.wikimedia.org:3128
>   X-Cache: MISS from amssq35.esams.wikimedia.org
>   X-Cache-Lookup: MISS from amssq35.esams.wikimedia.org:3128
>   X-Cache: MISS from amssq42.esams.wikimedia.org
>   X-Cache-Lookup: MISS from amssq42.esams.wikimedia.org:80
>   Connection: keep-alive
> Lunghezza: 12706 (12K) [image/png]


Hmm, the age header for me is much longer when I visit via europe (and get a squid)

wolff@bluenose:~/mw$ wget -S --header 'Host: upload.wikimedia.org' -U bawolff  http://upload-lb.esams.wikimedia.org/wikipedia/commons/thumb/4/41/41st_Can_Senate.svg/2000px-41st_Can_Senate.svg.png
--2013-01-29 13:43:32--  http://upload-lb.esams.wikimedia.org/wikipedia/commons/thumb/4/41/41st_Can_Senate.svg/2000px-41st_Can_Senate.svg.png
Resolving upload-lb.esams.wikimedia.org... 91.198.174.234, 2620:0:862:ed1a::b
Connecting to upload-lb.esams.wikimedia.org|91.198.174.234|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.0 200 OK
  X-Object-Meta-Sha1base36: 6qmddcqcdyix5etlu1xrronvkhttqak
  Last-Modified: Sat, 21 Jul 2012 19:20:18 GMT
  ETag: dfbb5fab4a113944065657576e5e0c72
  X-Timestamp: 1342898418.63822
  Accept-Ranges: bytes
  Content-Length: 12706
  Content-Type: image/png
  Access-Control-Allow-Origin: *
  Date: Mon, 28 Jan 2013 16:11:11 GMT
  X-Cache: MISS from sq86.wikimedia.org
  X-Cache-Lookup: MISS from sq86.wikimedia.org:3128
  Age: 91941
  X-Cache: HIT from amssq58.esams.wikimedia.org
  X-Cache-Lookup: HIT from amssq58.esams.wikimedia.org:3128
  X-Cache: MISS from knsq20.knams.wikimedia.org
  X-Cache-Lookup: MISS from knsq20.knams.wikimedia.org:80
  Connection: keep-alive
Length: 12706 (12K) [image/png]
Saving to: `2000px-41st_Can_Senate.svg.png.24'

100%[======================================>] 12,706      --.-K/s   in 0.1s    

2013-01-29 13:43:32 (114 KB/s) - `2000px-41st_Can_Senate.svg.png.24' saved [12706/12706]

In any case, when the varnishes do cache (I was now able to get a couple of cached versions when accessing from N. America) they always seem to have a really short age header.

Doing ?action=purge doesn't seem to have any affect on clearing things, I don't know what that means. I think the real issue is at the MW/Swift layer though.
Comment 8 Andre Klapper 2013-07-12 13:19:27 UTC
CC'ing Ariel, Faidon and Aaron as this is a thumbnail purging issue (see comment 7). Could any of you take a look at this?
Comment 9 Andre Klapper 2013-12-12 11:40:45 UTC
The 2000px version of https://commons.wikimedia.org/wiki/File:41st_Can_Senate.svg shows correctly now (but it had been changed several times since this report was created).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links