Unexplainable 503 error

Karl Bernard karl at vomba.com
Sun Dec 14 20:35:35 CET 2008


Hello All,

I have been trying to upgrade my production instance of Varnish 1.1.2. 
to 2.01, but I have a problem that I can't figure out in the new version.

When loading a web page with a lot of images, some of the images do not 
get displayed and instead I get a 503 Service Unavailable. When looking 
at my lighty logs, I don't see those requests at all. When looking at 
varnishlog, I can see "vcl_call error deliver". I'm not sure what to do 
to identify why those 503 are happening, they seem to be random, but 
only when I have a miss. I am not having this problem with 1.1.2.

Does anyone have an idea what could be happening?

Here's an excerpt from varnishlog:

    9 ReqStart     c 70.83.84.29 4747 406814454
    9 RxRequest    c GET
    9 RxURL        c /starpreviews/118x118/0/0/974.jpg
    9 RxProtocol   c HTTP/1.1
    9 RxHeader     c Host: img1.sxx.com
    9 RxHeader     c User-Agent: Mozilla/5.0 (Windows; U; Windows NT 
5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
    9 RxHeader     c Accept: image/png,image/*;q=0.8,*/*;q=0.5
    9 RxHeader     c Accept-Language: en-us,en;q=0.5
    9 RxHeader     c Accept-Encoding: gzip,deflate
    9 RxHeader     c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    9 RxHeader     c Keep-Alive: 300
    9 RxHeader     c Connection: keep-alive
    9 RxHeader     c Referer: 
http://www.sxx.com/stars/index/sex/female/list/E.html
    9 RxHeader     c Cookie: 
__utma=57286504.1072416550.1198780078.1229275966.1229278040.29; 
__utmz=57286504.1221787148.9.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
__utmb=57286504.5.10.1229278040; __utmc=57286504
    9 VCL_call     c recv lookup
    9 VCL_call     c hash hash
    9 VCL_call     c miss fetch
    9 Backend      c 32 default default
*    9 VCL_call     c error deliver*
    9 Length       c 452
    9 VCL_call     c deliver deliver
    9 TxProtocol   c HTTP/1.1
    9 TxStatus     c 503
    9 TxResponse   c Service Unavailable
    9 TxHeader     c Server: Varnish
    9 TxHeader     c Retry-After: 0
    9 TxHeader     c Content-Type: text/html; charset=utf-8
    9 TxHeader     c Content-Length: 452
    9 TxHeader     c Date: Sun, 14 Dec 2008 18:15:22 GMT
    9 TxHeader     c X-Varnish: 406814454
    9 TxHeader     c Age: 2
    9 TxHeader     c Via: 1.1 varnish
    9 TxHeader     c Connection: close
    9 ReqEnd       c 406814454 1229278520.274427891 1229278522.459613085 
0.000026941 2.185151100 0.000034094

    9 SessionClose c error
    9 StatSess     c 70.83.84.29 4747 9 1 4 0 0 3 1251 15914


My configuration:

backend default {
  .host = "66.152.93.60";
  .port = "8082";
}

sub vcl_recv {
    #We change the url:
    if (req.http.host ~ "^(img0|img1|img2|img3|img).") {
      set req.http.host = "imgtest.sxx.com";
    }
    # remove useless headers
    unset req.http.Cookie;
    unset req.http.Authenticate;
    unset req.http.Accept;
    unset req.http.Accept-Language;
    unset req.http.Accept-Encoding;
    unset req.http.Accept-Charset;
    unset req.http.Referer;
}

My varnishstat:
  http://pastebin.com/f6e5d3b97

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20081214/7b1b9b89/attachment-0002.html>


More information about the varnish-misc mailing list