Make sure that varnishd has access to read and write to the working dir (usually /var/lib/varnish or the directory you specify at the command line with -n).
Damon On Sun, Oct 9, 2011 at 2:03 PM, Stroomer, Jeff <[email protected]>wrote: > Varnish folks,**** > > ** ** > > 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.**** > > ** ** > > I’m running varnish 3.0.1 on a RedHat 5.5 VM. Following a reboot, I see > the following:**** > > ** ** > > $ ps -eaf | grep varnish**** > > 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**** > > ** ** > > 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:**** > > ** ** > > $ ps -eaf | grep varnish**** > > 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**** > > 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**** > > ** ** > > And sure enough, when I look in /var/log/messages following my reboot, I > see this:**** > > ** ** > > Oct 9 20:26:09 duckster varnishd[3255]: child (3257) Started**** > > 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 **** > > Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said Child starts*** > * > > Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said SMF.s0 mmap'ed > 1073741824 bytes of 1073741824**** > > Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) said Child dies**** > > Oct 9 20:26:09 duckster varnishd[3255]: Child (3257) died**** > > ** ** > > I checked /tmp, and it has plenty of space, and permissions are 0777.**** > > ** ** > > Any ideas?**** > > ** ** > > Jeff**** > > ** ** > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
