I tried using a local server and using a vcl rather than command line parameters to define the backend. I still only get 503s. Is there a way to better debug Varnish so that I can determine why it can't make a backend connection?<div>
<br></div><div>Thanks,</div><div>Jacques<br><br><div class="gmail_quote">On Sat, Jul 10, 2010 at 12:47 AM, Jorge Díaz <span dir="ltr"><<a href="mailto:jdzstz@gmail.com">jdzstz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><font color="#000000" face="Arial" size="2">It seems for some reason
Varnish cannot connect to backend.</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="Arial" size="2">I have never used parameter " <font face="Times New Roman" size="3">-b </font><a href="http://87.238.47.204/" target="_blank"><font face="Times New Roman" size="3">87.238.47.204:80</font></a> "
for backend configuration. <br><br>You sould try creating a little VCL configuration
file. </font></div>
<div dir="ltr"> <font face="Arial" size="2">Modify default.vcl adding the backend in
it, and start varnish with parameter -f </font></div>
<div dir="ltr"><pre><font face="Arial" size="2"><font size="3">-f /opt/extra/etc/varnish/default.vcl</font><br></font></pre></div>
<div dir="ltr"><pre><font face="Arial" size="2">Inside VCL, configure the backed with:</font></pre></div>
<div dir="ltr"><pre>backend default {<font face="Arial"><font face="Arial" size="2"><br> .host = "87.238.47.204";<br> .port = "80";<br>}</font><br><br>If the problem persist, a good idea is to install a Apache webserver in localhost and try It as backend, for example in 127.0.0.1 port 8000<br>
in order to see if the problem is varnish connecting to a remote IP or is varnish that not connect to nobody.<br><br>My varnish installation is in same host of Apache webserver and works OK.<br></font></pre></div><br>Regards.<br>
<br><br><div class="gmail_quote">2010/7/9 Jacques <span dir="ltr"><<a href="mailto:whshub@gmail.com" target="_blank">whshub@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
I'm not currently using a vcl, just configuring via the command line for simplicity. Adding the connect_timeout parameter below had no impact on the 503s. Nor did adding all the parameters listed at <a href="http://letsdugg.com" target="_blank">letsdugg.com</a>.<div>
<br></div><div>Communication with the external server works perfectly. (Telnet and via lynx.) It's actually the <a href="http://varnish-cache.org" target="_blank">varnish-cache.org</a> site just to introduce a minimum number of variables.</div>
<div><br></div><div>The only thing that I see in the varnish log is the FetchError, no backend connection.</div><div><br></div><div>Here is a startup, request, shutdown cycle of varnish log:</div><div><br></div><div><div>
# /opt/extra/bin/varnishlog</div><div> 0 WorkThread - fffffd7ff9dc0d20 start</div><div> 0 CLI - Rd vcl.load "boot" ./<a href="http://vcl.ORk8t3RP.so" target="_blank">vcl.ORk8t3RP.so</a></div><div>
0 CLI - Wr 200 Loaded "./<a href="http://vcl.ORk8t3RP.so" target="_blank">vcl.ORk8t3RP.so</a>" as "boot"</div>
<div> 0 CLI - Rd vcl.use "boot"</div><div> 0 CLI - Wr 200</div><div> 0 CLI - Rd start</div><div> 0 Debug - "Acceptor poll space increased to 512"</div><div>
0 Debug - "Acceptor is poll"</div><div> 0 CLI - Wr 200</div><div> 0 WorkThread - fffffd7ff93c5d20 start</div><div> 0 WorkThread - fffffd7ff91c6d20 start</div><div> 0 WorkThread - fffffd7ff8fc7d20 start</div>
<div> 0 WorkThread - fffffd7ff8dc8d20 start</div><div> 0 WorkThread - fffffd7ff8bc9d20 start</div><div> 0 WorkThread - fffffd7ff89cad20 start</div><div> 0 WorkThread - fffffd7ff87cbd20 start</div><div>
0 WorkThread - fffffd7ff85ccd20 start</div><div> 0 WorkThread - fffffd7ff83cdd20 start</div><div> 0 CLI - Rd ping</div><div> 0 CLI - Wr 200 PONG 1278687217 1.0</div><div> 0 CLI - Rd ping</div>
<div> 0 CLI - Wr 200 PONG 1278687220 1.0</div><div> 9 SessionOpen c 10.100.200.1 64024 :80</div><div> 9 ReqStart c 10.100.200.1 64024 1455837036</div><div> 9 RxRequest c GET</div><div> 9 RxURL c /</div>
<div> 9 RxProtocol c HTTP/1.0</div><div> 9 RxHeader c Host: 10.100.200.2</div><div> 9 RxHeader c Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01</div><div> 9 RxHeader c Accept-Encoding: gzip, compress, bzip2</div>
<div> 9 RxHeader c Accept-Language: en</div><div> 9 RxHeader c User-Agent: Lynx/2.8.6rel.5 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.8l</div><div> 9 VCL_call c recv</div><div> 9 VCL_return c lookup</div>
<div> 9 VCL_call c hash</div><div> 9 VCL_return c hash</div><div> 9 VCL_call c miss</div><div> 9 VCL_return c fetch</div><div> 9 FetchError c no backend connection</div><div> 9 VCL_call c error</div>
<div> 9 VCL_return c deliver</div><div> 9 Length c 488</div><div> 9 VCL_call c deliver</div><div> 9 VCL_return c deliver</div><div> 9 TxProtocol c HTTP/1.1</div><div> 9 TxStatus c 503</div>
<div> 9 TxResponse c Service Unavailable</div><div> 9 TxHeader c Server: Varnish</div><div> 9 TxHeader c Retry-After: 0</div><div> 9 TxHeader c Content-Type: text/html; charset=utf-8</div><div> 9 TxHeader c Content-Length: 488</div>
<div> 9 TxHeader c Date: Fri, 09 Jul 2010 14:53:42 GMT</div><div> 9 TxHeader c X-Varnish: 1455837036</div><div> 9 TxHeader c Age: 0</div><div> 9 TxHeader c Via: 1.1 varnish</div><div> 9 TxHeader c Connection: close</div>
<div> 9 ReqEnd c 1455837036 1278687222.201183081 1278687222.201552391 0.000498056 0.000254393 0.000114918</div><div> 9 SessionClose c error</div><div> 9 StatSess c 10.100.200.1 64024 0 1 1 0 0 0 235 488</div>
<div> 0 CLI - Rd ping</div><div> 0 CLI - Wr 200 PONG 1278687223 1.0</div><div> 0 CLI - Rd ping</div><div> 0 CLI - Wr 200 PONG 1278687226 1.0</div><div> 0 CLI - Rd ping</div>
<div> 0 CLI - Wr 200 PONG 1278687229 1.0</div></div><div><div></div><div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Jul 9, 2010 at 12:58 AM, Jorge Díaz <span dir="ltr"><<a href="mailto:jdzstz@gmail.com" target="_blank">jdzstz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">¿There is communication between Varnish host and 87.238.47.204 machine??<br><br>Try first making " telnet 87.238.47.204 80 " in order testing there is no firewall or a rule configured in webserver.<br>
<br>If comunication is fine, the problem must be in VCL configuration. Try executing varnishlog while you are testing and look for errors in output.<br>
<br>In Solaris is also important to run Varnish with proper parameter that are listen in:<br><ul><li><a href="http://letsgetdugg.com/2009/12/04/varnish-on-solaris/" target="_blank">http://letsgetdugg.com/2009/12/04/varnish-on-solaris/</a></li>
</ul><br>I had a lot of comunication problems without parameter:<br><pre> <font size="4"><b> -p connect_timeout=0s # Important bug work around for Solaris</b><br></font></pre><br><br><br><br><div class="gmail_quote">
2010/7/9 Bedis 9 <span dir="ltr"><<a href="mailto:bedis9@gmail.com" target="_blank">bedis9@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hey,<br><br>Can you share your VCL conf?<br><br>cheers<br><br><div class="gmail_quote"><div><div></div><div>On Fri, Jul 9, 2010 at 7:08 AM, Jacques <span dir="ltr"><<a href="mailto:whshub@gmail.com" target="_blank">whshub@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>I am trying to use Varnish on OpenSolaris. Due the help of others, I have versions compiling and not crashing that are based on three different versions of Varnish.<div>
<br></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">I'm using 4516, 2.1.2 with the 649 patch, and trunk. I've also tried compiling with gcc 4.3.3 in addition to the OpenSolaris standard of 3.4.3. That changed nothing.</span></div>
<div> </div><div>All compiled copies of varnish seem to start just fine. I can use varnishlog and see my requests arriving at Varnish. </div><div><br></div><div>However, responses are always 503 with " FetchError: no backend connection". Using tcpdump, I see no calls to the backend server from Varnish, ever.</div>
<div><br></div><div>For simplicity, I'm using the basic start of:</div><div><br></div><div>varnishd -a :80 -b <a href="http://87.238.47.204:80" target="_blank">87.238.47.204:80</a></div><div><br></div><div>What are right steps to determine what is wrong? I see nothing in syslogs. Varnish doesn't complain. Using all the same steps on ubuntu, I get exactly what I expect, a cached version of the backend server.</div>
<div><br></div><div>Any pointers about how I should figure out what is failing would be helpful.</div><div><br></div><div>Thanks,<br>Jacques</div><div><br></div><div>I've also noticed that the cache is starting at 500GB. Changing the cache size to 512MB didn't have any impact on the 503s.</div>
<br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br></blockquote></div><br>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br></blockquote></div></div></div><br>
</blockquote></div><br></div>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br></div>