Re: Varnish Error 503 Service Unavailable
Brano wrote: > Brano [B], on Tuesday, November 11, 2008 at 14:42 (+0700) typed: > > B> recently we installed Varnish on our server. Everything works fine, > B> but on download we get this error: > B> http://www.opensubtitles.org/en/download/file/1951965961 > > it works now. I did not change nothing in varnish, I changed PHP code. > > This was original code: > if(isset($_SERVER["HTTP_USER_AGENT"]) and strpos($_SERVER["HTTP_USER_AGENT"], > 'MSIE')) { >ini_set('zlib.output_compression', 'Off'); > } > > I replaced it with: > ini_set('zlib.output_compression', 'Off'); > > Now it works OK. Just to let you know, I am not sure, if it is bug, > or... > > VCL: http://www.pastebin.sk/en/9031/ > Do you also set vary headers? If not, this might be a cause of the problem - varnish could be serving up compressed content to clients that are not expecting it. You need to vary on "accept-encoding" in order to get varnish to store both representations, and be able to serve up the right one. Miles ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Varnish Error 503 Service Unavailable
Brano [B], on Tuesday, November 11, 2008 at 14:42 (+0700) typed: B> recently we installed Varnish on our server. Everything works fine, B> but on download we get this error: B> http://www.opensubtitles.org/en/download/file/1951965961 it works now. I did not change nothing in varnish, I changed PHP code. This was original code: if(isset($_SERVER["HTTP_USER_AGENT"]) and strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE')) { ini_set('zlib.output_compression', 'Off'); } I replaced it with: ini_set('zlib.output_compression', 'Off'); Now it works OK. Just to let you know, I am not sure, if it is bug, or... VCL: http://www.pastebin.sk/en/9031/ -- ...m8s, cu l8r, Brano. [My name? said the old man sadly, is Slartibartfast.] ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Varnish Error 503 Service Unavailable
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 RxRequestc GET 9 RxURLc / 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.38624 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 RxRequestc GET 9 RxURLc /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 <[EMAIL PROTECTED]> 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/fil
Varnish Error 503 Service Unavailable
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 RxRequestc GET 276 RxURLc /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 TxRequestb GET 139 TxURLb /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@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc