[Varnish] #1190: varnishd doesn't handle vcl_dir when starting

Varnish varnish-bugs at varnish-cache.org
Mon Aug 27 10:40:23 CEST 2012

#1190: varnishd doesn't handle vcl_dir when starting
 Reporter:  JonathanHuot  |       Type:  defect
   Status:  new           |   Priority:  normal
Milestone:                |  Component:  varnishd
  Version:  trunk         |   Severity:  normal
 Keywords:                |
 If severals VCL including each other are in a exotic directory, varnishd
 cannot be started. Example :

 '''Steps to reproduce'''
 * create a new directory layout /tmp/vcls
 * create a new vcl file "config.vcl" with the content below :
 include "recv.vcl"
 * launch varnishd with the args below :
 varnish-trunk $ ./varnishd -T :1234 -a :4321 -p vcl_dir=/tmp/vcls/ -f
 /tmp/vcls/config.vcl -n /tmp/vcls
 Message from VCC-compiler:
 Syntax error at
 ('input' Line 1 Pos 9)
 include 'recv.vcl'

 Running VCC-compiler failed, exit 1

 VCL compilation failed

 '''Steps to avoid the error'''
 * create a blank file or a file with fake backend "empty.vcl"
 * launch varnishd with empty.vcl
 * launch varnishadm and load the config.vcl since varnishd is running and
 has taken in account the vcl_dir parameter.

Ticket URL: <https://www.varnish-cache.org/trac/ticket/1190>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list