Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652908

Summary: www-servers/varnish-5.1.3 reload not working
Product: Gentoo Linux Reporter: marco
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED OBSOLETE    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=807538
Whiteboard:
Package list:
Runtime testing required: ---

Description marco 2018-04-10 13:56:33 UTC
/etc/init.d/varnishd reload is no working anymore


Executing
/etc/init.d/varnishd reload
 * Reloading varnish ...
 * varnishd cannot load configuration

in the error log this message appeared:
CLI telnet 127.0.0.1 54586 127.0.0.1 46003 Rd vcl.load reload_2018-04-10T15:50:42 /etc/varnish/default.vcl
CLI telnet 127.0.0.1 54586 127.0.0.1 46003 Wr 106 Illegal character in VCL name (':')
varnishd cannot load configuration

The problem is due to this line
new_config="reload_$(date +%FT%H:%M:%S)"
in reload function cause, i think, vcl.load now do not want anymore files with : character.

a patch like this fixed the reload function:

--- varnishd.orig       2018-04-10 15:04:11.000000000 +0200
+++ varnishd    2018-04-10 15:51:24.000000000 +0200
@@ -58,7 +58,7 @@
                return 1
        fi
 
-       new_config="reload_$(date +%FT%H:%M:%S)"
+       new_config="reload_$(date +%FT%H%M%S)"
        $VARNISHADM vcl.load $new_config $CONFIGFILE >/dev/null 2>&1
        ret=$?
        if [ $ret -ne 0 ]; then



Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2022-07-22 15:24:30 UTC
we're past varnish 5.  i haven't seen in 6 and above.  If its still a problem please reopen this bug.