Your message dated Thu, 28 Jan 2016 20:42:47 +0100
with message-id <[email protected]>
and subject line varnish logrotate fixed
has caused the Debian Bug report #789658,
regarding varnish: varnishlog/varnishncsa killed by logrotate under systemd
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
789658: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789658
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: varnish
Version: 4.0.2-1
Severity: important
X-Debbugs-CC: [email protected]
User: [email protected]
Usertags: needed-by-DSA-Team

Since lw07.d.o and sibelius.d.o (snapshot.d.o frontends) were upgraded
to jessie, we have been getting the below errors from the logrotate
cron job on a daily basis. The issue seems to be something to do with
the VSM file being deleted but varnish holding the file open, something
writes a new one and then varnishlog thinks varnishd has abandoned the
file, varnishlog exits and reloads fail after that.

/etc/cron.daily/logrotate:
Job for varnishlog.service failed. See 'systemctl status varnishlog.service' 
and 'journalctl -xn' for details.
invoke-rc.d: initscript varnishlog, action "reload" failed.
error: error running non-shared postrotate script for 
/var/log/varnish/varnish.log of '/var/log/varnish/varnish.log '
Job for varnishncsa.service failed. See 'systemctl status varnishncsa.service' 
and 'journalctl -xn' for details.
invoke-rc.d: initscript varnishncsa, action "reload" failed.
error: error running non-shared postrotate script for 
/var/log/varnish/varnishncsa.log of '/var/log/varnish/varnishncsa.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

pabs@lw07:~$ sudo systemctl status varnishlog
● varnishlog.service - Varnish HTTP accelerator log daemon
   Loaded: loaded (/lib/systemd/system/varnishlog.service; enabled)
   Active: failed (Result: exit-code) since Sun 2015-06-07 11:14:57 UTC; 2 
weeks 1 days ago
 Main PID: 1642 (code=exited, status=1/FAILURE)

Jun 14 06:25:11 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 15 06:25:07 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 16 06:25:07 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 17 06:25:07 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 18 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 19 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 20 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 21 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 22 06:25:09 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 23 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.

pabs@lw07:~$ sudo journalctl -u varnish -u varnishlog -u varnishncsa
-- Logs begin at Sun 2015-06-07 11:14:37 UTC, end at Tue 2015-06-23 07:10:44 
UTC. --
...
Jun 07 11:14:57 lw07 varnishlog[1642]: Can't open VSM file (Abandoned VSM file 
(Varnish not running?) /var/lib/varnish/lw07/_.vsm
Jun 07 11:14:57 lw07 varnishlog[1642]: )
Jun 07 11:14:57 lw07 systemd[1]: varnishlog.service: main process exited, 
code=exited, status=1/FAILURE
Jun 07 11:14:57 lw07 varnishncsa[1643]: Can't open VSM file (Abandoned VSM file 
(Varnish not running?) /var/lib/varnish/lw07/_.vsm
Jun 07 11:14:57 lw07 varnishncsa[1643]: )
Jun 07 11:14:57 lw07 systemd[1]: Unit varnishlog.service entered failed state.
Jun 07 11:14:57 lw07 systemd[1]: varnishncsa.service: main process exited, 
code=exited, status=1/FAILURE
Jun 07 11:14:57 lw07 systemd[1]: Unit varnishncsa.service entered failed state.
Jun 08 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 08 06:25:07 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.
Jun 09 06:25:07 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 09 06:25:07 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.
Jun 10 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 10 06:25:06 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.
Jun 11 06:25:08 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 11 06:25:08 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.
Jun 12 06:25:06 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 12 06:25:06 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.
Jun 13 06:25:05 lw07 systemd[1]: Unit varnishlog.service cannot be reloaded 
because it is inactive.
Jun 13 06:25:05 lw07 systemd[1]: Unit varnishncsa.service cannot be reloaded 
because it is inactive.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Version: 4.1.0-1

This was fixed with commit b1f88d7c8bd52bc64c1084f6cc8d6bab159f930e in
the packaging repository, first released in Varnish 4.1.0-1 for Debian.

-- 
Stig Sandbeck Mathisen

--- End Message ---

Reply via email to