[Varnish] #340: Silent failure on config error when starting as a daemon in CentOS5.2

Varnish varnish-bugs at projects.linpro.no
Mon Sep 29 23:29:21 CEST 2008


#340: Silent failure on config error when starting as a daemon in CentOS5.2
---------------------+------------------------------------------------------
 Reporter:  marlier  |        Type:  defect   
   Status:  new      |    Priority:  normal   
Milestone:           |   Component:  packaging
  Version:  2.0      |    Severity:  normal   
 Keywords:  beta2    |  
---------------------+------------------------------------------------------
 I built an RPM of varnish-2.0-beta2, and attempted to start it using a
 default.vcl that had worked with prior versions.  It failed silently,
 showing simply the CentOS standard "[FAILED]" message.

 Upon manually tracing the steps in the startup file, I found the following
 error:

 [root at domU-12-31-38-01-C1-71:~] daemon --pidfile $pidfile  $exec -P
 $pidfile "$DAEMON_OPTS"
 storage_file: filename: /var/lib/varnish/varnish_storage.bin size 1024 MB.
 Unknown variable 'obj.valid'
 At: (/etc/varnish/default.vcl Line 98 Pos 14)
         if (!obj.valid) {
 -------------#########---

 VCL compilation failed
 [root at domU-12-31-38-01-C1-71:~]

 It would be very nice if this could be output in some way.

 I'm not sure whether the possible startup errors have distinct return
 codes, but if so, a switch on the retcode (which is captured) would be one
 possible way to do this -- even if it doesn't specify the error, it would
 at least make it clear that the problem was a config problem.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/340>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list