<html><body bgcolor="#FFFFFF"><div><br></div><div><br>On 28 Feb 2011, at 08:12, Kevin Pettijohn <<a href="mailto:kpettijohn@dailyinsightgroup.com">kpettijohn@dailyinsightgroup.com</a>> wrote:<br><br></div><div></div>
<blockquote type="cite"><div>Hello everyone,<div><br></div><div>I'm having some issues using varnish and pressflow. I am currently running varnish-2.1.5 SVN 0843d7a with pressflow 6.17. The problem is a small corner case and I have not been having much luck figuring it out. If anyone can point me in the right direction that would be much appreciated. The issue is that when a logged in user with administrative privileges tries to view our /forum page it displays the varnish generated error page for a 503 after the 60 second first_byte_timeout. </div>
<div><br></div><div>On the other hand if the user is logged in but does not have administrative privileges the /forum page loads just fine and the same goes for logged out users. </div><div><br></div><div>I tried setting a pass in vcl but it didn't seem to help:</div>
<div><br></div><div>// Pass on forum pages</div><div><div>  if (req.url ~ "^/forum$") {</div><div>       return (pass);</div><div>  }</div></div><div><br></div><div>Here are is the varnishlog output for the failed request (logged in user with admin):</div>
<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 SessionOpen  c 75.146.54.221 53347 :80</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 ReqStart     c 75.146.54.221 53347 366998573</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxRequest    c GET</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxURL        c /forum</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxProtocol   c HTTP/1.1</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Host: <a href="http://www.example.com/"><a href="http://www.example.com">www.example.com</a></a></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Connection: keep-alive</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Referer: <a href="http://www.example.com/forum"><a href="http://www.example.com/forum">http://www.example.com/forum</a></a></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Cache-Control: max-age=0</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Accept-Encoding: gzip,deflate,sdch</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Accept-Language: en-US,en;q=0.8</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 RxHeader     c Cookie: __qca=P0-2045062115-1295000757408; PHPSESSID=hrvrdh7k9qva2544rfcrqm4u91; BCKPHPSESSID=hrvrdh7k9qva2544rfcrqm4u91; __utmz=240455574.1298425082.43.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=<a href="http://example.com/">http://example.com/</a>; SESS26a2330bc4f50e2</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 VCL_call     c recv pass</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 VCL_call     c hash hash</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 VCL_call     c pass pass</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 Backend      c 21 dh web02</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 FetchError   c http first read error: -1 11 (Resource temporarily unavailable)</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 VCL_call     c error deliver</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 VCL_call     c deliver deliver</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxProtocol   c HTTP/1.1</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxStatus     c 503</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxResponse   c Service Unavailable</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Server: Varnish</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Retry-After: 0</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Content-Type: text/html; charset=UTF-8</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Content-Length: 2385</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Date: Thu, 24 Feb 2011 23:34:12 GMT</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c X-Varnish: 366998573</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Age: 60</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Via: 1.1 varnish</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c Connection: close</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 TxHeader     c X-Cache: MISS</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 Length       c 2385</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">   25 ReqEnd       c 366998573 1298590392.349307060 1298590452.349412918 0.000030041 60.000077963 0.000027895</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; min-height: 14px; "><font class="Apple-style-span" face="Helvetica"><br></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">    0 ExpKill      - 366993383 -300</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica">    0 ExpKill      - 366993387 -300</font></div>
</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Andale Mono'; "><font class="Apple-style-span" face="Helvetica"><br></font></div>
<div><br></div><div><br></div><div>Here is the log for a successful load (logged out user):</div><div><br></div><div><br></div><div><br></div><div><div><div>   32 SessionOpen  c 75.146.54.241 61453 :80</div><div>   32 ReqStart     c 75.146.54.241 61453 367412524</div>
<div>   32 RxRequest    c GET</div><div>   32 RxURL        c /forum</div><div>   32 RxProtocol   c HTTP/1.1</div><div>   32 RxHeader     c Host: <a href="http://www.example.com/"><a href="http://www.example.com">www.example.com</a></a></div>
<div>   32 RxHeader     c Accept-Encoding: gzip, deflate</div><div>   32 RxHeader     c Accept-Language: en-us</div><div>   32 RxHeader     c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4</div>
<div>   32 RxHeader     c Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</div><div>   32 RxHeader     c Cookie: __utmc=240455574; __utma=240455574.1048652604.1298005414.1298005414.1298425351.2; __utmz=240455574.1298005414.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)</div>
<div>   32 RxHeader     c Connection: keep-alive</div><div>   32 VCL_call     c recv pass</div><div>   32 VCL_call     c hash hash</div><div>   32 VCL_call     c pass pass</div><div>   32 Backend      c 9 dh web03</div><div>
   32 TTL          c 367412524 RFC 600 1298659484 0 0 600 0</div><div>   32 VCL_call     c fetch pass</div><div>   32 ObjProtocol  c HTTP/1.1</div><div>   32 ObjStatus    c 200</div><div>   32 ObjResponse  c OK</div><div>
   32 ObjHeader    c Date: Fri, 25 Feb 2011 18:45:29 GMT</div><div>   32 ObjHeader    c Server: Apache/2.2.8 (Unix) PHP/5.2.5 mod_ssl/2.2.8 OpenSSL/0.9.7a</div><div>   32 ObjHeader    c X-Powered-By: PHP/5.2.5</div><div>   32 ObjHeader    c Cache-Control: public, max-age=600</div>
<div>   32 ObjHeader    c Last-Modified: Fri, 25 Feb 2011 18:45:29 +0000</div><div>   32 ObjHeader    c Expires: Sun, 11 Mar 1984 12:00:00 GMT</div><div>   32 ObjHeader    c Vary: Cookie</div><div>   32 ObjHeader    c ETag: "1298659529"</div>
<div>   32 ObjHeader    c Content-Type: text/html; charset=utf-8</div><div>   32 VCL_call     c deliver deliver</div><div>   32 TxProtocol   c HTTP/1.1</div><div>   32 TxStatus     c 200</div><div>   32 TxResponse   c OK</div>
<div>   32 TxHeader     c Server: Apache/2.2.8 (Unix) PHP/5.2.5 mod_ssl/2.2.8 OpenSSL/0.9.7a</div><div>   32 TxHeader     c X-Powered-By: PHP/5.2.5</div><div>   32 TxHeader     c Cache-Control: public, max-age=600</div><div>
   32 TxHeader     c Last-Modified: Fri, 25 Feb 2011 18:45:29 +0000</div><div>   32 TxHeader     c Expires: Sun, 11 Mar 1984 12:00:00 GMT</div><div>   32 TxHeader     c Vary: Cookie</div><div>   32 TxHeader     c ETag: "1298659529"</div>
<div>   32 TxHeader     c Content-Type: text/html; charset=utf-8</div><div>   32 TxHeader     c Content-Length: 83552</div><div>   32 TxHeader     c Date: Fri, 25 Feb 2011 18:44:45 GMT</div><div>   32 TxHeader     c X-Varnish: 367412524</div>
<div>   32 TxHeader     c Age: 0</div><div>   32 TxHeader     c Via: 1.1 varnish</div><div>   32 TxHeader     c Connection: keep-alive</div><div>   32 TxHeader     c X-Cache: MISS</div><div>   32 Length       c 83552</div>
<div>   32 ReqEnd       c 367412524 1298659483.560426950 1298659485.242687941 0.000025988 1.473248959 0.209012032</div></div></div><div><br></div><div><br></div><div>If anyone can give me some insight It would be greatly appreciated</div>
<div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>
__________________<br class="Apple-interchange-newline">Kevin Pettijohn</div><div>503 927 3585</div><div>Operations & IT</div><div>The Daily Insight Group </div><div><a href="mailto:kpettijohn@tarot.com"><a href="mailto:kpettijohn@tarot.com">kpettijohn@tarot.com</a></a></div>
<div><br></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>

<br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>varnish-misc mailing list</span><br><span><a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a></span><br>
<span><a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></span></div></blockquote><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><div>
Does the forum page load for the admin user if you point your browser directly at the backend? When logged in the forum page will do lot of extra queries to <span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">determine which forums need to show new counts e.t.c.</span></div>
<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><div>
<br></div><div>It could be that the page is simply timing out</div><div><br></div><div>Stew</div><div><br>Sent from my iPhone</div></span></span></body></html>