[Varnish] #398: logging off phpbb always causes "Error 503 Service Unavailable"

Varnish varnish-bugs at projects.linpro.no
Sun Nov 30 07:20:24 CET 2008


#398: logging off phpbb always causes "Error 503 Service Unavailable"
----------------------+-----------------------------------------------------
 Reporter:  mmpower   |       Owner:  phk                          
     Type:  defect    |      Status:  new                          
 Priority:  normal    |   Milestone:                               
Component:  varnishd  |     Version:  2.0                          
 Severity:  normal    |    Keywords:  Error 503 Service Unavailable
----------------------+-----------------------------------------------------
 I have the backend running phpbb (www.phpbb.com) forum software. everytime
 user logs out from phpbb the browser shows this kind of error message:

 "Error 503 Service Unavailable

 Service Unavailable
 Guru Meditation:

 XID: 1569421074
 Varnish"


 there is no problem logging in to phpbb. no problme to login/off to other
 web apps on the same host via varnishd...

 Varnish version is 2.02.
 OS: linux (Fedora 6), 32 bit
 amount of ram : 6GB


 varnishlog trace info for the failing request:

 14 SessionOpen  c 72.83.129.191 54449 *:80
    14 ReqStart     c 72.83.129.191 54449 1569432969
    14 RxRequest    c GET
    14 RxURL        c
 /forum/login.php?logout=true&sid=cab5706b5795a7586969328f9df81f8c
    14 RxProtocol   c HTTP/1.1
    14 RxHeader     c Host: www.haiguinet.com
    14 RxHeader     c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10.4; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
    14 RxHeader     c Accept:
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    14 RxHeader     c Accept-Language: en-us,en;q=0.5
    14 RxHeader     c Accept-Encoding: gzip,deflate
    14 RxHeader     c Accept-Charset: UTF-8,*
    14 RxHeader     c Keep-Alive: 300
    14 RxHeader     c Connection: keep-alive
    14 RxHeader     c Referer:
 http://www.haiguinet.com/forum/index.php?sid=cab5706b5795a7586969328f9df81f8c
    14 RxHeader     c Cookie: setframeview=0;
 userstatusserver=http%3A//211.100.30.224%3A8080/flashIM/wdkstatus;
 flashservers=rtmp%3A//211.100.30.224%3A80/flashIM%2Crtmp%3A//wdkchat1.vicp.net%3A80/freechat%2Chttp%3A//211.100.30.224%3A8080/flashgo%2Chttp%3A//wdkchat1.vicp.net%3
    14 VCL_call     c recv pass
    14 VCL_call     c pass pass
    14 Backend      c 10 default default
    14 VCL_call     c error deliver
    14 Length       c 453
    14 VCL_call     c deliver deliver
    14 TxProtocol   c HTTP/1.1
    14 TxStatus     c 503
    14 TxResponse   c Service Unavailable
    14 TxHeader     c Server: Varnish
    14 TxHeader     c Retry-After: 0
    14 TxHeader     c Content-Type: text/html; charset=utf-8
    14 TxHeader     c Content-Length: 453
    14 TxHeader     c Date: Sun, 30 Nov 2008 06:16:44 GMT
    14 TxHeader     c X-Varnish: 1569432969
    14 TxHeader     c Age: 0
    14 TxHeader     c Via: 1.1 varnish
    14 TxHeader     c Connection: close
    14 ReqEnd       c 1569432969 1228025804.806035519 1228025804.817787170
 0.329633474 0.011698008 0.000053644



 my VCL file:

 backend default {
   .host = "127.0.0.1";
   .port = "81";
 }
 sub vcl_recv {
   remove req.http.X-Forwarded-For;
   set    req.http.X-Forwarded-For = client.ip;

   if (req.request == "GET" && req.url ~
 "\.(jpg|jpeg|gif|ico|html|htm|css|js|pdf|xls|vsd|doc|ppt|iso)$") {
     lookup;
   }
   if (req.request == "GET" && (req.url ~ "www.haiguinet.com/$" || req.url
 ~ "www.haiguinet.com$" || req.url ~ "get_data.php\?"))  {
     lookup;
   }
   if (req.http.Expect) {
     pipe;
   }
   if (req.http.Cache-Control ~ "no-cache") {
      pass;
   }

 }

 sub vcl_fetch {

   if (obj.http.Pragma ~ "no-cache"
     || obj.http.Cache-Control ~ "no-cache"
     || obj.http.Cache-Control ~ "private") {
     pass;
   }
   if (req.url ~ "\.(png|gif|jpg|swf|css)$") {
     unset obj.http.set-cookie;
   }

 }

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


More information about the varnish-bugs mailing list