Page MenuHomePhabricator

If PURGE command to Squid gets 404-cache miss, MW sends multiple retries
Closed, ResolvedPublic

Description

Author: carlb613

Description:
I'm seeing this sort of entry in the Squid access.log's:

1182909903.482 0 64.86.165.249 TCP_MISS/404 109 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -
1182909930.511 0 64.86.165.249 TCP_MISS/404 109 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -
1182909947.181 0 64.86.165.249 TCP_MISS/404 109 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -
1182909964.933 0 64.86.165.249 TCP_MISS/404 109 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -
1182909982.592 0 64.86.165.249 TCP_MISS/404 109 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -

This was in response to a user's ?action=purge request on a page that happened to include that particular thumbnail.

1182910159.810 5 64.86.165.249 TCP_MISS/404 110 PURGE http://images.uncyc.org/commons/thumb/1/1a/Singe_savant_du_mois.png/479px-Singe_savant_du_mois.png - NONE/- -
1182910160.066 256 64.86.165.249 TCP_MISS/404 110 PURGE http://images.uncyc.org/commons/thumb/1/1a/Singe_savant_du_mois.png/70px-Singe_savant_du_mois.png - NONE/- -
1182910160.124 7 64.86.165.249 TCP_MISS/404 110 PURGE http://images.uncyc.org/commons/1/1a/Singe_savant_du_mois.png - NONE/- -
1182910160.325 0 64.86.165.249 TCP_MISS/404 110 PURGE http://commons.uncyclomedia.org/wiki/Image:Singe_savant_du_mois.png - NONE/- -
1182910160.422 7 64.86.165.249 TCP_MISS/404 110 PURGE http://commons.uncyclomedia.org/index.php? - NONE/- -
1182910162.664 0 64.86.165.249 TCP_MISS/404 110 PURGE http://images.uncyc.org/commons/thumb/1/1a/Singe_savant_du_mois.png/479px-Singe_savant_du_mois.png - NONE/- -
1182910227.110 0 64.86.165.249 TCP_MISS/404 110 PURGE http://images.uncyc.org/commons/thumb/d/df/Creative-commies.gif/30px-Creative-commies.gif - NONE/- -

Again, a PURGE attempt gets a 404 response and is retried for some reason.

SquidUpdate.php on this server was checked out from SVN (MW 1.11alpha) on May 11th, 2007. Squid itself is version Version 2.6.STABLE13 as packaged with an RH distribution.

I presume that SquidUpdate.php should not be retrying these PURGE requests to the Squid servers if they come back as 404?


Version: 1.11.x
Severity: minor
OS: Linux
Platform: PC
URL: http://commons.uncyclomedia.org

Details

Reference
bz10383

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:52 PM
bzimport set Reference to bz10383.
bzimport added a subscriber: Unknown Object (MLST).

Hello, It seems that I have quite the same issue at http://www.wikilivres.info/

This happens with version 1.12.0, not with 1.10.1. Squid is 2.6.5-6etch1 (Debian stable).

My config http://www.mediawiki.org/wiki/Squid_Reverse_Proxy

1218573257.533 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573258.581 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573259.618 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573260.642 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573261.659 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573262.663 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -
1218573263.676 0 67.205.96.134 TCP_MISS/404 109 PURGE http://www.wikilivres.info/w/images/thumb/6/64/100%25.png/9px-100%25.png - NONE/- -

ayg wrote:

Why is it you think this is problematic or abnormal? Is it causing any problems?

It inscrease quite substantially the load on Squid.

The problem has disappeared with MW version 1.13.2.