Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652908 - www-servers/varnish-5.1.3 reload not working
Summary: www-servers/varnish-5.1.3 reload not working
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 13:56 UTC by marco
Modified: 2022-07-22 15:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.