turpentine Failed to apply the VCL to 127.0.0.1:6082: Got unexpected response code from Varnish: 106 Message from VCC-compiler: Inline-C not allowed ('input' Line 2 Pos 1) C{ ## Running VCC-compiler failed, exited with 2 VCL compilation failed
Configuration of Varnish 4 with systemd at installation is not well done. I thought this issue is only for Debian repository, but now it is also for Varnish repo too.
After installing Varnish 4.0.3 do the following steps:
1) copy /lib/systemd/system/varnish.service to /etc/systemd/system/
2) edit /etc/systemd/system/varnish.service and comment line ExecStartPre (this causes the issue related to start/restart of this service with VCC-Compiler error)
3) Add the following parameters when Varnish service starts (line which starts with ExecStart=)
-p vcc_allow_inline_c=on
-p feature=+esi_ignore_other_elements
-p cli_buffer=16384 (for "Varnish data to write over length limit by ... characters"
-p vcc_allow_inline_c=on
-p feature=+esi_ignore_other_elements
-p cli_buffer=16384 (for "Varnish data to write over length limit by ... characters"
4) execute "systemctl daemon-reload" because you change a systemd configuration file.
5) enable Varnish at boot "systemctl enable varnish.service".
6) execute "systemctl rebooot". Varnish should work normal. You can reload, restart, stop/start the service with no issues related to VCC-Compiler.