<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Varnish folks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am having trouble getting varnish to come up cleanly after a reboot. But if I ssh into the machine, and do a /etc/init.d/varnish restart by hand, then varnish starts working correctly. Here are the details.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m running varnish 3.0.1 on a RedHat 5.5 VM. Following a reboot, I see the following:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>$ ps -eaf | grep varnish<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>root 3255 1 0 13:26 ? 00:00:00 /usr/sbin/varnishd -P /var/run/varnish.pid -a :6081 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 1,1000,120 -u varnish -g varnish -S /etc/varnish/secret -s file,/var/lib/varnish/varnish_storage.bin,1G<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal>The key thing here is that I see the manager process, but not the child. After I do an /etc/init.d/varnish restart by hand, I see both manager and child:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>$ ps -eaf | grep varnish<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>root 3525 1 0 13:31 ? 00:00:00 /usr/sbin/varnishd -P /var/run/varnish.pid -a :6081 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 1,1000,120 -u varnish -g varnish -S /etc/varnish/secret -s file,/var/lib/varnish/varnish_storage.bin,1G<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>varnish 3526 3525 0 13:31 ? 00:00:00 /usr/sbin/varnishd -P /var/run/varnish.pid -a :6081 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 1,1000,120 -u varnish -g varnish -S /etc/varnish/secret -s file,/var/lib/varnish/varnish_storage.bin,1G<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal>And sure enough, when I look in /var/log/messages following my reboot, I see this:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: child (3257) Started<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: Pushing vcls failed: dlopen(./vcl.1GLakAnf.so): ./vcl.1GLakAnf.so: cannot open shared object file: Permission denied <o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said Child starts<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said SMF.s0 mmap'ed 1073741824 bytes of 1073741824<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said Child dies<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) died<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I checked /tmp, and it has plenty of space, and permissions are 0777.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any ideas?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Jeff<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>