Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

varnish won't come up cleanly after reboot

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


Jeff.Stroomer at disney

Oct 9, 2011, 2:03 PM

Post #1 of 3 (654 views)
Permalink
varnish won't come up cleanly after reboot

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


mattias at nucleus

Oct 10, 2011, 6:16 AM

Post #2 of 3 (615 views)
Permalink
RE: varnish won't come up cleanly after reboot [In reply to]

> 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 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?

Could you list all start-up programs? It may be that Varnish is trying to start too early and that is simply needs to have its startup order changed.
# ls -alh /etc/rc.d/rc3.d/

Regards,
Mattias

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


damon at huddler-inc

Oct 11, 2011, 2:36 PM

Post #3 of 3 (619 views)
Permalink
Re: varnish won't come up cleanly after reboot [In reply to]

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 <Jeff.Stroomer [at] disney>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
> varnish-misc [at] varnish-cache
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.