Re: 503 Errors on POST
]] Torrance | I've pasted the logs of two failed requests below. As you can see, | they're both in response to POST requests, though I was overstating the | frequency at which these errors are occurring: they're occurring about | 10% of the time. From looking at this, it might be that your backend is too slow. We have a default backend connection timeout of just 0.4 seconds. Try increasing that somewhat? It's a bit surprising that should just hit POST requests, though. Alternatively, try with 2.0.6 since it'll have a «FetchError» log entry when if fails. | To be honest, I don't entirely understand the logs or their format, but | I hope I've captured the important details. (Session IDs have been | deleted, btw). You have and the session entries are not important. -- Tollef Fog Heen Redpill Linpro -- Changing the game! t: +47 21 54 41 73 ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: 503 Errors on POST
Torrance, Can you upload a full tcpdump packet trace both between client and varnish, and varnish and backend, together with the varnish logs and varnish config, and I'll take a look. Rob Torrance wrote: > I've no response to this on list, and the problem is ongoing. Should I > file this as a bug? > > Torrance > > > > On 30/01/10 12:32 PM, Torrance wrote: > >> Hi Tollef, >> >> I've pasted the logs of two failed requests below. As you can see, >> they're both in response to POST requests, though I was overstating the >> frequency at which these errors are occurring: they're occurring about >> 10% of the time. >> >> To be honest, I don't entirely understand the logs or their format, but >> I hope I've captured the important details. (Session IDs have been >> deleted, btw). >> >> Many thanks, >> Torrance >> >> >>15 ReqStart c 125.236.128.219 51361 561006524 >>15 RxRequestc POST >>15 RxURLc /node/78063/edit >>15 RxProtocol c HTTP/1.1 >>15 RxHeader c Host: indymedia.org.nz >>15 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS >> X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >>15 RxHeader c Accept: >> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >>15 RxHeader c Accept-Language: en-gb,en;q=0.5 >>15 RxHeader c Accept-Encoding: gzip,deflate >>15 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >>15 RxHeader c Keep-Alive: 115 >>15 RxHeader c Connection: keep-alive >>15 RxHeader c Referer: http://indymedia.org.nz/node/78063/edit >>15 RxHeader c Cookie: comment_info_name=Tester; >> SESSx=x; >> SESSx=x; has_js=1 >>15 RxHeader c Content-Type: multipart/form-data; >> boundary=---1850078892860212931738819713 >>15 RxHeader c Content-Length: 16978 >>15 VCL_call c recv >>15 VCL_return c pass >>15 VCL_call c pass >>15 VCL_return c pass >>15 Backend c 10 default default >>10 TxRequestb POST >>10 TxURLb /node/78063/edit >>10 TxProtocol b HTTP/1.1 >>10 TxHeader b Host: indymedia.org.nz >>10 TxHeader b User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS >> X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >>10 TxHeader b Accept: >> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >>10 TxHeader b Accept-Language: en-gb,en;q=0.5 >>10 TxHeader b Accept-Encoding: gzip,deflate >>10 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >>10 TxHeader b Referer: http://indymedia.org.nz/node/78063/edit >>10 TxHeader b Cookie: comment_info_name=Tester; >> SESSx=x; >> SESSx=x; has_js=1 >>10 TxHeader b Content-Type: multipart/form-data; >> boundary=---1850078892860212931738819713 >>10 TxHeader b Content-Length: 16978 >>10 TxHeader b X-Forwarded-For: 125.236.128.219 >>10 TxHeader b X-Varnish: 561006524 >>10 TxHeader b X-Forwarded-For: 125.236.128.219 >>10 BackendClose b default >>15 VCL_call c error >>15 VCL_return c deliver >>15 Length c 465 >>15 VCL_call c deliver >>15 VCL_return c deliver >>15 TxProtocol c HTTP/1.1 >>15 TxStatus c 503 >>15 TxResponse c Service Unavailable >>15 TxHeader c Server: Varnish >>15 TxHeader c Retry-After: 0 >>15 TxHeader c Content-Type: text/html; charset=utf-8 >>15 TxHeader c Content-Length: 465 >>15 TxHeader c Date: Fri, 29 Jan 2010 23:00:42 GMT >>15 TxHeader c X-Varnish: 561006524 >>15 TxHeader c Age: 1 >>15 TxHeader c Via: 1.1 varnish >>15 TxHeader c Connection: close >>15 ReqEnd c 561006524 1264806040.957435846 1264806042.241542339 >> 4.125935793 1.284075260 0.31233 >>15 SessionClose c error >>15 StatSess c 125.236.128.219 51361 14 1 3 0 3 2 1410 49426 >> 0 StatAddr - 125.236.128.219 0 1102 34 74 0 32 42 38287 1054700 >> >> >>21 ReqStart c 125.236.128.219 53669 561007510 >>21 RxRequestc POST >>21 RxURLc /node/78063/edit >>21 RxProtocol c HTTP/1.1 >>21 RxHeader c Host: indymedia.org.nz >>21 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS >> X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >>21 RxHeader c Accept: >> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >>21 RxHeader c Accept-Language: en-gb,en;q=0.5 >>21 RxHeader c Accept-Encoding: gzip,deflate >>21 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >>21 RxHeader c Keep-Alive: 115 >>21 RxHeader c Connection: keep-
Re: 503 Errors on POST
I've no response to this on list, and the problem is ongoing. Should I file this as a bug? Torrance On 30/01/10 12:32 PM, Torrance wrote: > Hi Tollef, > > I've pasted the logs of two failed requests below. As you can see, > they're both in response to POST requests, though I was overstating the > frequency at which these errors are occurring: they're occurring about > 10% of the time. > > To be honest, I don't entirely understand the logs or their format, but > I hope I've captured the important details. (Session IDs have been > deleted, btw). > > Many thanks, > Torrance > > >15 ReqStart c 125.236.128.219 51361 561006524 >15 RxRequestc POST >15 RxURLc /node/78063/edit >15 RxProtocol c HTTP/1.1 >15 RxHeader c Host: indymedia.org.nz >15 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS > X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >15 RxHeader c Accept: > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >15 RxHeader c Accept-Language: en-gb,en;q=0.5 >15 RxHeader c Accept-Encoding: gzip,deflate >15 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >15 RxHeader c Keep-Alive: 115 >15 RxHeader c Connection: keep-alive >15 RxHeader c Referer: http://indymedia.org.nz/node/78063/edit >15 RxHeader c Cookie: comment_info_name=Tester; > SESSx=x; > SESSx=x; has_js=1 >15 RxHeader c Content-Type: multipart/form-data; > boundary=---1850078892860212931738819713 >15 RxHeader c Content-Length: 16978 >15 VCL_call c recv >15 VCL_return c pass >15 VCL_call c pass >15 VCL_return c pass >15 Backend c 10 default default >10 TxRequestb POST >10 TxURLb /node/78063/edit >10 TxProtocol b HTTP/1.1 >10 TxHeader b Host: indymedia.org.nz >10 TxHeader b User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS > X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >10 TxHeader b Accept: > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >10 TxHeader b Accept-Language: en-gb,en;q=0.5 >10 TxHeader b Accept-Encoding: gzip,deflate >10 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >10 TxHeader b Referer: http://indymedia.org.nz/node/78063/edit >10 TxHeader b Cookie: comment_info_name=Tester; > SESSx=x; > SESSx=x; has_js=1 >10 TxHeader b Content-Type: multipart/form-data; > boundary=---1850078892860212931738819713 >10 TxHeader b Content-Length: 16978 >10 TxHeader b X-Forwarded-For: 125.236.128.219 >10 TxHeader b X-Varnish: 561006524 >10 TxHeader b X-Forwarded-For: 125.236.128.219 >10 BackendClose b default >15 VCL_call c error >15 VCL_return c deliver >15 Length c 465 >15 VCL_call c deliver >15 VCL_return c deliver >15 TxProtocol c HTTP/1.1 >15 TxStatus c 503 >15 TxResponse c Service Unavailable >15 TxHeader c Server: Varnish >15 TxHeader c Retry-After: 0 >15 TxHeader c Content-Type: text/html; charset=utf-8 >15 TxHeader c Content-Length: 465 >15 TxHeader c Date: Fri, 29 Jan 2010 23:00:42 GMT >15 TxHeader c X-Varnish: 561006524 >15 TxHeader c Age: 1 >15 TxHeader c Via: 1.1 varnish >15 TxHeader c Connection: close >15 ReqEnd c 561006524 1264806040.957435846 1264806042.241542339 > 4.125935793 1.284075260 0.31233 >15 SessionClose c error >15 StatSess c 125.236.128.219 51361 14 1 3 0 3 2 1410 49426 > 0 StatAddr - 125.236.128.219 0 1102 34 74 0 32 42 38287 1054700 > > >21 ReqStart c 125.236.128.219 53669 561007510 >21 RxRequestc POST >21 RxURLc /node/78063/edit >21 RxProtocol c HTTP/1.1 >21 RxHeader c Host: indymedia.org.nz >21 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS > X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 >21 RxHeader c Accept: > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >21 RxHeader c Accept-Language: en-gb,en;q=0.5 >21 RxHeader c Accept-Encoding: gzip,deflate >21 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >21 RxHeader c Keep-Alive: 115 >21 RxHeader c Connection: keep-alive >21 RxHeader c Referer: http://indymedia.org.nz/node/78063/edit >21 RxHeader c Cookie: comment_info_name=Tester; > SESSx=x; > SESSx=x; has_js=1 >21 RxHeader c Content-Type: multipart/for
Re: 503 Errors on POST
Hi Tollef, I've pasted the logs of two failed requests below. As you can see, they're both in response to POST requests, though I was overstating the frequency at which these errors are occurring: they're occurring about 10% of the time. To be honest, I don't entirely understand the logs or their format, but I hope I've captured the important details. (Session IDs have been deleted, btw). Many thanks, Torrance 15 ReqStart c 125.236.128.219 51361 561006524 15 RxRequestc POST 15 RxURLc /node/78063/edit 15 RxProtocol c HTTP/1.1 15 RxHeader c Host: indymedia.org.nz 15 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 15 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 15 RxHeader c Accept-Language: en-gb,en;q=0.5 15 RxHeader c Accept-Encoding: gzip,deflate 15 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 15 RxHeader c Keep-Alive: 115 15 RxHeader c Connection: keep-alive 15 RxHeader c Referer: http://indymedia.org.nz/node/78063/edit 15 RxHeader c Cookie: comment_info_name=Tester; SESSx=x; SESSx=x; has_js=1 15 RxHeader c Content-Type: multipart/form-data; boundary=---1850078892860212931738819713 15 RxHeader c Content-Length: 16978 15 VCL_call c recv 15 VCL_return c pass 15 VCL_call c pass 15 VCL_return c pass 15 Backend c 10 default default 10 TxRequestb POST 10 TxURLb /node/78063/edit 10 TxProtocol b HTTP/1.1 10 TxHeader b Host: indymedia.org.nz 10 TxHeader b User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 10 TxHeader b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 10 TxHeader b Accept-Language: en-gb,en;q=0.5 10 TxHeader b Accept-Encoding: gzip,deflate 10 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 10 TxHeader b Referer: http://indymedia.org.nz/node/78063/edit 10 TxHeader b Cookie: comment_info_name=Tester; SESSx=x; SESSx=x; has_js=1 10 TxHeader b Content-Type: multipart/form-data; boundary=---1850078892860212931738819713 10 TxHeader b Content-Length: 16978 10 TxHeader b X-Forwarded-For: 125.236.128.219 10 TxHeader b X-Varnish: 561006524 10 TxHeader b X-Forwarded-For: 125.236.128.219 10 BackendClose b default 15 VCL_call c error 15 VCL_return c deliver 15 Length c 465 15 VCL_call c deliver 15 VCL_return c deliver 15 TxProtocol c HTTP/1.1 15 TxStatus c 503 15 TxResponse c Service Unavailable 15 TxHeader c Server: Varnish 15 TxHeader c Retry-After: 0 15 TxHeader c Content-Type: text/html; charset=utf-8 15 TxHeader c Content-Length: 465 15 TxHeader c Date: Fri, 29 Jan 2010 23:00:42 GMT 15 TxHeader c X-Varnish: 561006524 15 TxHeader c Age: 1 15 TxHeader c Via: 1.1 varnish 15 TxHeader c Connection: close 15 ReqEnd c 561006524 1264806040.957435846 1264806042.241542339 4.125935793 1.284075260 0.31233 15 SessionClose c error 15 StatSess c 125.236.128.219 51361 14 1 3 0 3 2 1410 49426 0 StatAddr - 125.236.128.219 0 1102 34 74 0 32 42 38287 1054700 21 ReqStart c 125.236.128.219 53669 561007510 21 RxRequestc POST 21 RxURLc /node/78063/edit 21 RxProtocol c HTTP/1.1 21 RxHeader c Host: indymedia.org.nz 21 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 21 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 21 RxHeader c Accept-Language: en-gb,en;q=0.5 21 RxHeader c Accept-Encoding: gzip,deflate 21 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 21 RxHeader c Keep-Alive: 115 21 RxHeader c Connection: keep-alive 21 RxHeader c Referer: http://indymedia.org.nz/node/78063/edit 21 RxHeader c Cookie: comment_info_name=Tester; SESSx=x; SESSx=x; has_js=1 21 RxHeader c Content-Type: multipart/form-data; boundary=---84863282515329900481602423677 21 RxHeader c Content-Length: 17019 21 VCL_call c recv 21 VCL_return c pass 21 VCL_call c pass 21 VCL_return c pass 21 Backend c 15 default default 15 TxRequestb POST 15 TxURLb /node/78063/edit 15 TxProtocol b H
Re: 503 Errors on POST
]] Torrance | I am running a drupal site behind Varnish and when posts or comments are | submitted there's about a 50/50 chance the user will get one of | Varnish's 503 error pages. These errors aren't after waiting a little | while or even a few seconds - they are returned with no delay | whatsoever. I can only presume that this is somehow linked to the fact | that these are POST requests, as the errors do not come up at any other | time. If you can capture a varnishlog from a good and a failing request, that might shed some light on what's going on. -- Tollef Fog Heen Redpill Linpro -- Changing the game! t: +47 21 54 41 73 ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc