<div dir="ltr">Hello,<div><br></div><div>We are using Apache 2.4 on the backend and Varnish 4.1.2.</div><div><br></div><div>Randomly, users get 503 on some URL. </div><div>95% on time it's on an <span style="font-size:12.8px">URL called by AJAX in POST method.:</span></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><font color="#3366ff"></font> </div><div><pre style="white-space:pre-wrap;border:1px solid rgb(215,215,215);margin-right:1.75em;margin-left:1.75em;padding:0.25em;overflow:auto;color:rgb(51,51,51);font-size:13px;background:rgb(247,247,247)">-   BereqMethod    POST
-   BereqURL       /proxy.php?xdp_path=http%3A%2F%2Fmonsite.com%2Fcf_log.php</pre></div><div>or it could be the same without a proxy.php</div><div><div><pre style="white-space:pre-wrap;border:1px solid rgb(215,215,215);margin-right:1.75em;margin-left:1.75em;padding:0.25em;overflow:auto;color:rgb(51,51,51);font-size:13px;background:rgb(247,247,247)"><br class="">-   BereqMethod    POST
-   BereqURL       <a href="http://monsite.com/cf_log.php">monsite.com/cf_log.php</a></pre></div></div><div>With varnishlog I get this error : <br><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_signature" data-smartmail="gmail_signature"><div><pre style="border:1px solid rgb(215,215,215);margin-right:1.75em;margin-left:1.75em;padding:0.25em;overflow:auto;background-image:initial;background-color:rgb(247,247,247);background-repeat:initial"><span style="font-size:13px;white-space:pre-wrap;background-color:rgb(255,255,255)"><font color="#333333">*   << Request  >> 41189403
</font></span><span style="background-color:rgb(255,255,255)"><font color="#333333"><span style="font-size:13px;white-space:pre-wrap">-   FetchError     straight insufficient bytes

**  << BeReq    >> 41189404
</span></font></span><font color="#333333"><span style="font-size:13px;white-space:pre-wrap">--  FetchError     req.body read error: 0 (Success)
--  FetchError     backend write error: 0 (Success)

</span></font><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"> </span><font color="#333333"><span style="font-size:13px;white-space:pre-wrap">
</span></font></pre></div><div><pre style="border:1px solid rgb(215,215,215);margin-right:1.75em;margin-left:1.75em;padding:0.25em;overflow:auto;background-image:initial;background-color:rgb(247,247,247);background-repeat:initial"><span style="font-size:13px;white-space:pre-wrap;background-color:rgb(255,255,255)"><font color="#333333">*   << Request  >> 41189403
</font></span>-   FetchError     Connection reset by peer<br>-   FetchError     straight insufficient bytes
<span style="background-color:rgb(255,255,255)"><font color="#333333"><span style="font-size:13px;white-space:pre-wrap">
**  << BeReq    >> 41189404
</span></font></span>--  FetchError     req.body read error: 11 (Resource temporarily unavailable)<br>--  FetchError     backend write error: 11 (Resource temporarily unavailable)<font color="#333333"><span style="font-size:13px;white-space:pre-wrap">
</span></font><br></pre></div></div></blockquote></div><div>I ran ngrep on Varnish an each time I get the error I have something like this :<br><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div class="gmail_signature" data-smartmail="gmail_signature"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">* client => varnish<br>             header content [AP]<br>*client => varnish<br>             ..[AR]</blockquote></div></div></blockquote><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><br>and the data POST are not in the request<br><br>When all works I get something like this <br><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">* client => varnish</blockquote></div></div></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">              header content[AP]</blockquote></div></div></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">*client => varnish</blockquote></div></div></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">             header content[AF]</blockquote></div></div></div></blockquote><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><br></div><div>And the last request contains the data POST.</div><div><br></div><div>How can I avoid to get this errors which seem to be false positive ?</div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div><b><font color="#3366ff"></font></b> </div><div><b><font color="#3366ff">Nicolas Delmas</font></b></div><div><a href="mailto:colas.delmas@gmail.com" target="_blank">colas.delmas@gmail.com</a></div></div></div>
</div>