<div dir="ltr">Varnish is not running. When it doesn't start you can check syslog. It will probably say something like "can't bind to port".<div><br></div><div>The reason is obvious (for me at least :-).</div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">tcp 0 0 </span><a href="http://0.0.0.0/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">0.0.0.0:80</a><span style="font-family:arial,sans-serif;font-size:13px"> 0.0.0.0:* LISTEN 7866/httpd </span><br style="font-family:arial,sans-serif;font-size:13px">
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">You have apache running on port 80 so Varnish can't bind to the port.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 1:19 PM, Joao Rios <span dir="ltr"><<a href="mailto:jprr773@gmail.com" target="_blank">jprr773@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">Well, if I : # ps -ef | grep varnishd , <br><br>I get this:<br><br>root 13560 13314 0 14:18 pts/3 00:00:00 grep varnishd<div>
<div class="h5"><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 22, 2014 at 12:10 PM, Joao Rios <span dir="ltr"><<a href="mailto:jprr773@gmail.com" target="_blank">jprr773@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi James,<br></div>Thank you so much for the reply.<br></div><div>I don't think Varnish is running on port 80.<br>
</div><div></div><br></div>When I execute this: <code>netstat -tulpn , I get:</code><br>
<br>Active Internet connections (only servers)<br>Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name <br>tcp 0 0 <a href="http://0.0.0.0:3306" target="_blank">0.0.0.0:3306</a> 0.0.0.0:* LISTEN 30222/mysqld <br>
tcp 0 0 <a href="http://0.0.0.0:587" target="_blank">0.0.0.0:587</a> 0.0.0.0:* LISTEN 18407/exim <br>tcp 0 0 <a href="http://0.0.0.0:110" target="_blank">0.0.0.0:110</a> 0.0.0.0:* LISTEN 18340/dovecot <br>
tcp 0 0 <a href="http://127.0.0.1:783" target="_blank">127.0.0.1:783</a> 0.0.0.0:* LISTEN 18599/spamd.pid --m <br>tcp 0 0 <a href="http://0.0.0.0:143" target="_blank">0.0.0.0:143</a> 0.0.0.0:* LISTEN 18340/dovecot <br>
tcp 0 0 <a href="http://0.0.0.0:2095" target="_blank">0.0.0.0:2095</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>tcp 0 0 <a href="http://0.0.0.0:80" target="_blank">0.0.0.0:80</a> 0.0.0.0:* LISTEN 7866/httpd <br>
tcp 0 0 <a href="http://0.0.0.0:2096" target="_blank">0.0.0.0:2096</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>tcp 0 0 <a href="http://0.0.0.0:465" target="_blank">0.0.0.0:465</a> 0.0.0.0:* LISTEN 18407/exim <br>
tcp 0 0 <a href="http://37.61.236.139:49619" target="_blank">37.61.236.139:49619</a> 0.0.0.0:* LISTEN 13118/pure-ftpd (ID <br>tcp 0 0 <a href="http://37.61.235.212:53" target="_blank">37.61.235.212:53</a> 0.0.0.0:* LISTEN 13054/named <br>
tcp 0 0 <a href="http://37.61.236.139:53" target="_blank">37.61.236.139:53</a> 0.0.0.0:* LISTEN 13054/named <br>tcp 0 0 <a href="http://127.0.0.1:53" target="_blank">127.0.0.1:53</a> 0.0.0.0:* LISTEN 13054/named <br>
tcp 0 0 <a href="http://0.0.0.0:21" target="_blank">0.0.0.0:21</a> 0.0.0.0:* LISTEN 13118/pure-ftpd (ID <br>tcp 0 0 <a href="http://0.0.0.0:47926" target="_blank">0.0.0.0:47926</a> 0.0.0.0:* LISTEN 4224/sshd <br>
tcp 0 0 <a href="http://127.0.0.1:953" target="_blank">127.0.0.1:953</a> 0.0.0.0:* LISTEN 13054/named <br>tcp 0 0 <a href="http://0.0.0.0:25" target="_blank">0.0.0.0:25</a> 0.0.0.0:* LISTEN 18407/exim <br>
tcp 0 0 <a href="http://0.0.0.0:443" target="_blank">0.0.0.0:443</a> 0.0.0.0:* LISTEN 7866/httpd <br>tcp 0 0 <a href="http://0.0.0.0:2077" target="_blank">0.0.0.0:2077</a> 0.0.0.0:* LISTEN 25872/cpdavd - acce <br>
tcp 0 0 <a href="http://0.0.0.0:2078" target="_blank">0.0.0.0:2078</a> 0.0.0.0:* LISTEN 25872/cpdavd - acce <br>tcp 0 0 <a href="http://0.0.0.0:993" target="_blank">0.0.0.0:993</a> 0.0.0.0:* LISTEN 18340/dovecot <br>
tcp 0 0 <a href="http://0.0.0.0:2082" target="_blank">0.0.0.0:2082</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>tcp 0 0 <a href="http://0.0.0.0:995" target="_blank">0.0.0.0:995</a> 0.0.0.0:* LISTEN 18340/dovecot <br>
tcp 0 0 <a href="http://0.0.0.0:2083" target="_blank">0.0.0.0:2083</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>tcp 0 0 <a href="http://0.0.0.0:2086" target="_blank">0.0.0.0:2086</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>
tcp 0 0 <a href="http://127.0.0.1:199" target="_blank">127.0.0.1:199</a> 0.0.0.0:* LISTEN 4360/snmpd <br>tcp 0 0 <a href="http://0.0.0.0:2087" target="_blank">0.0.0.0:2087</a> 0.0.0.0:* LISTEN 1463/cpsrvd (SSL) - <br>
tcp 0 0 :::587 :::* LISTEN 18407/exim <br>tcp 0 0 :::80 :::* LISTEN 7866/httpd <br>
tcp 0 0 :::465 :::* LISTEN 18407/exim <br>tcp 0 0 :::21 :::* LISTEN 13118/pure-ftpd (ID <br>
tcp 0 0 :::47926 :::* LISTEN 4224/sshd <br>tcp 0 0 :::25 :::* LISTEN 18407/exim <br>
tcp 0 0 :::443 :::* LISTEN 7866/httpd <br>udp 0 0 <a href="http://0.0.0.0:161" target="_blank">0.0.0.0:161</a> 0.0.0.0:* 4360/snmpd <br>
udp 0 0 <a href="http://37.61.235.212:53" target="_blank">37.61.235.212:53</a> 0.0.0.0:* 13054/named <br>udp 0 0 <a href="http://37.61.236.139:53" target="_blank">37.61.236.139:53</a> 0.0.0.0:* 13054/named <br>
udp 0 0 <a href="http://127.0.0.1:53" target="_blank">127.0.0.1:53</a> 0.0.0.0:* 13054/named <br>udp 0 0 <a href="http://37.61.235.212:123" target="_blank">37.61.235.212:123</a> 0.0.0.0:* 1130/ntpd <br>
udp 0 0 <a href="http://37.61.236.139:123" target="_blank">37.61.236.139:123</a> 0.0.0.0:* 1130/ntpd <br>udp 0 0 <a href="http://127.0.0.1:123" target="_blank">127.0.0.1:123</a> 0.0.0.0:* 1130/ntpd <br>
udp 0 0 <a href="http://0.0.0.0:123" target="_blank">0.0.0.0:123</a> 0.0.0.0:* 1130/ntpd <br>udp 0 0 fe80::216:3eff:fead:d8c:123 :::* 1130/ntpd <br>
udp 0 0 ::1:123 :::* 1130/ntpd <br>udp 0 0 :::123 :::* 1130/ntpd <br><div>
<div>
<div><div><div><br><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Excerpts from Joao Rios's message of 2014-05-21 11:11:17 -0700:<br>
> I am trying to run Varnish 3.0.5 on Centos 6.5 with no sucess.<br>
> After installing the rpm and follow the installation procedures,<br>
> it seems the service fails to start:<br>
><br>
> # service varnish restart<br>
> Stopping Varnish Cache: [FAILED]<br>
> Starting Varnish Cache: [ OK ]<br>
<br>
No, that indicates that it didn't stop Varnish (probably because it wasn't<br>
running), but it *started* it successfully.<br>
<br>
Have you verified that it is indeed not running (via ps, lsof, etc.)?<br>
- P<br></blockquote></div><br></div></div></div></div></div></div></div>
</blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div dir="ltr"><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CTO | Varnish Software<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Global Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">
<img src="https://www.varnish-software.com/sites/default/files/redherring_2013_winner_sml.jpg"></p><span style="font-weight:bold"><br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
</div></div>
</div>