[Varnish] #149: Can't Purge

Varnish varnish-bugs at projects.linpro.no
Mon Aug 13 09:38:57 CEST 2007

#149: Can't Purge
 Reporter:  greenad   |       Owner:  phk          
     Type:  defect    |      Status:  new          
 Priority:  high      |   Milestone:  Varnish 1.0.4
Component:  varnishd  |     Version:  1.0.4        
 Severity:  major     |    Keywords:               

 this is how I start varnishd:

 -a -f /etc/varnish/default.net.vcl -t 120s -s

 The caching works but I cant purge any files (VCL config is attached).

 .... - - [13/Aug/2007:09:34:20 +0200] "GET
 http://localhost:8080/users/7238558.jpg HTTP/1.0" 200 1657 "-"

 telnet localhost 8080
 Connected to localhost.
 Escape character is '^]'.
 PURGE http://localhost:8080/users/7238558.jpg HTTP/1.0
 HTTP/1.1 404 Not Found
 Date: Mon, 13 Aug 2007 07:35:08 GMT
 Server: Varnish
 Connection: close
 Content-Type: text/html; charset=iso-8859-1

     <TITLE>404 Not Found</TITLE>
     <H1>Error 404 Not Found</H1>
     <P>Not in cache.</P>
     <H3>Guru Meditation:</H3>
     <P>XID: 385643636</P>
     <I><A href="http://www.varnish-cache.org/">Varnish</A></I>
 Connection closed by foreign host.
 root at ubuntu60664m:/tmp#

 however the file is cached

  wget  --server-response http://localhost:8080/users/7238558.jpg
 --09:35:00--  http://localhost:8080/users/7238558.jpg
            => `7238558.jpg.8'
 Resolving localhost...
 Connecting to localhost||:8080... connected.
 HTTP request sent, awaiting response...
   HTTP/1.1 200 OK
   Expires: Thu, 16 Aug 2007 07:33:17 GMT
   Content-Type: image/jpeg
   Date: Mon, 13 Aug 2007 07:33:17 GMT
   Server: image_server
   Content-Length: 1657
   X-Varnish: 385643448 385641021
   Age: 103
   Via: 1.1 varnish
 Length: 1,657 (1.6K) [image/jpeg]

 1,657         --.--K/s

  varnishd -V
 varnishd (varnish-1.0.4)
 Copyright (c) 2006 Linpro AS / Verdens Gang AS

 I cant use 1.1 since for some reason I never get a cache_miss ... it
 always return he same file (the first file it served after the varnishd

Ticket URL: <http://varnish.projects.linpro.no/ticket/149>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list