Varnish Error 503 Service Unavailable
Alecs Henry
alecshenry at gmail.com
Tue Nov 11 13:01:46 CET 2008
Hi there!
I have the exact same problem, and it comes and goes as it pleases..
I'm testing varnish with different backends (different customers sites in
the same instance) and every once in a while it locks up at the same place
(the X-Forwarded-For header on varnishlog) for any site. Not the others
though, as they are accessible through varnish just fine. And after a while
of working the cache the site that locks up comes back to life.
This is what varnishlog shows just before the 503 error:
Request:
9 SessionOpen c MY_IP_ADDRESS 56186 VARNISH_SERVER_IP:80
9 ReqStart c MY_IP_ADDRESS 56186 444163595
9 RxRequest c GET
9 RxURL c /
9 RxProtocol c HTTP/1.1
9 RxHeader c Host: BACKEND_HOSTNAME
9 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en; rv:
1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
9 RxHeader c Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
9 RxHeader c Accept-Language: q=0.8,en-us;q=0.5,en;q=0.3
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 VCL_call c recv
9 VCL_return c lookup
9 VCL_call c hash
9 VCL_return c hash
9 VCL_call c miss
9 VCL_return c fetch
9 Backend c 17 BACKEND_NAME BACKEND_NAME
17 TxRequest - GET
17 TxURL - /
17 TxProtocol - HTTP/1.1
17 TxHeader - Host: BACKEND_HOSTNAME
17 TxHeader - User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en; rv:
1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
17 TxHeader - Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
17 TxHeader - Accept-Language: q=0.8,en-us;q=0.5,en;q=0.3
17 TxHeader - Accept-Encoding: gzip,deflate
17 TxHeader - Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
17 TxHeader - X-Varnish: 444163595
17 TxHeader - X-Forwarded-For: MY_IP_ADDRESS
===> Long waiting time (sorry, didn't really time it, but it's like 5
minutes)
Response:
17 BackendClose - BACKEND_NAME
9 VCL_call c error
9 VCL_return c deliver
9 Length c 452
9 VCL_call c deliver
9 VCL_return c 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: Tue, 11 Nov 2008 11:49:00 GMT
9 TxHeader c X-Varnish: 444163595
9 TxHeader c Age: 945
9 TxHeader c Via: 1.1 varnish
9 TxHeader c Connection: close
9 ReqEnd c 444163595 1226403195.496297359 1226404140.571825743
0.000217438 945.075489759 0.000038624
9 SessionClose c error
9 StatSess c MY_IP_ADDRESS 56186 945 1 1 0 0 0 236 452
0 StatAddr - MY_IP_ADDRESS 0 427594 323 1326 0 0 548 435744 9005255
9 SessionOpen c MY_IP_ADDRESS 44754 VARNISH_SERVER_IP:80
9 ReqStart c MY_IP_ADDRESS 44754 444163596
9 RxRequest c GET
9 RxURL c /favicon.ico
9 RxProtocol c HTTP/1.1
9 RxHeader c Host: BACKEND_HOSTNAME
9 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en; rv:
1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
9 RxHeader c Accept: image/png,image/*;q=0.8,*/*;q=0.5
9 RxHeader c Accept-Language: q=0.8,en-us;q=0.5,en;q=0.3
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 VCL_call c recv
9 VCL_return c lookup
9 VCL_call c hash
9 VCL_return c hash
9 VCL_call c miss
9 VCL_return c fetch
9 Backend c 14 BACKEND_NAME BACKEND_NAME
14 TxRequest - GET
14 TxURL - /favicon.ico
14 TxProtocol - HTTP/1.1
14 TxHeader - Host: BACKEND_HOSTNAME
14 TxHeader - User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en; rv:
1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
14 TxHeader - Accept: image/png,image/*;q=0.8,*/*;q=0.5
14 TxHeader - Accept-Language: q=0.8,en-us;q=0.5,en;q=0.3
14 TxHeader - Accept-Encoding: gzip,deflate
14 TxHeader - Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
14 TxHeader - X-Varnish: 444163596
14 TxHeader - X-Forwarded-For: MY_IP_ADDRESS
Any one else seeing this? Any one have any idea why this happens?
Cheers
Alecs
On Tue, Nov 11, 2008 at 5:42 AM, Brano <admin at opensubtitles.org> wrote:
> Hi all,
>
> recently we installed Varnish on our server. Everything works fine,
> but on download we get this error:
>
> http://www.opensubtitles.org/en/download/file/1951965961
>
> Varnish Error 503 Service Unavailable
>
> Service Unavailable
> Guru Meditation:
>
> XID: 2138997704
>
> My backend works ok:
> http://web1.opensubtitles.org/en/download/file/1951965961
> http://web2.opensubtitles.org/en/download/file/1951965961
>
> Server info:
> varnishd (varnish-2.0.1)
> OS: FreeBSD 7.1-PRERELEASE
> PHP Version 5.2.6
> httpd: Lighttpd 1.4.20
>
> Here is log:
> 276 ReqStart c 124.157.249.3 50073 2138997704
> 276 RxRequest c GET
> 276 RxURL c /en/download/file/1951965961
> 276 RxProtocol c HTTP/1.1
> 276 RxHeader c Host: www.opensubtitles.org
> 276 RxHeader c User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
> en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)
> 276 RxHeader c Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> 276 RxHeader c Accept-Language: en
> 276 RxHeader c Accept-Encoding: gzip,deflate
> 276 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> 276 RxHeader c Keep-Alive: 300
> 276 RxHeader c Connection: keep-alive
> 276 RxHeader c Referer:
> http://www.opensubtitles.org/en/subtitles/3363915/prison-break-en
> 276 RxHeader c Cookie:
> __utma=188827125.1293269160.1192786702.1226384704.1226387542.495;
> __utmz=188827125.1226166768.475.44.utmccn=(referral)|utmcsr=
> forum.opensubtitles.org|utmcct=/index.php|utmcmd=refe
> 276 RxHeader c Cache-Control: max-age=0
> 276 VCL_call c recv
> 276 VCL_return c lookup
> 276 VCL_call c hash
> 276 VCL_return c hash
> 276 VCL_call c miss
> 276 VCL_return c fetch
> 139 BackendOpen b web2 92.240.234.126 61634 92.240.234.119 80
> 276 Backend c 139 www_director web2
> 139 TxRequest b GET
> 139 TxURL b /en/download/file/1951965961
> 139 TxProtocol b HTTP/1.1
> 139 TxHeader b Host: www.opensubtitles.org
> 139 TxHeader b User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
> en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)
> 139 TxHeader b Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> 139 TxHeader b Accept-Language: en
> 139 TxHeader b Accept-Encoding: gzip,deflate
> 139 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> 139 TxHeader b Referer:
> http://www.opensubtitles.org/en/subtitles/3363915/prison-break-en
> 139 TxHeader b Cookie:
> __utma=188827125.1293269160.1192786702.1226384704.1226387542.495;
> __utmz=188827125.1226166768.475.44.utmccn=(referral)|utmcsr=
> forum.opensubtitles.org|utmcct=/index.php|utmcmd=refe
> 139 TxHeader b X-Varnish: 2138997704
> 139 TxHeader b X-Forwarded-For: 124.157.249.3
>
> If you need more info, please let me know.
>
> Any help appreciated.
>
> Thank you.
>
> /Brano
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20081111/ef54c2bc/attachment-0001.html>
More information about the varnish-misc
mailing list