Every 24h we see [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. in the syslog

Bug #1635423 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Triaged
Low
Unassigned
rsyslog (Ubuntu)
Fix Released
Low
Unassigned
systemd (Ubuntu)
Invalid
Low
Skipper Bug Screeners

Bug Description

Summary
=======
zEC12 System LPAR
Linux r35lp50 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:12:40 UTC 2016 s390x s390x s390x GNU/Linux

Details
=======
Every 24h systemd-tmpfiles is logging a message similar to this:
Oct 18 15:18:41 sysname systemd-tmpfiles[34404]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.

We have seen varying times on different Ubuntu system instances.

Additional information
===================
Pasting the contents of the '/usr/lib/tmpfiles.d/var.conf' file below:

# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

# See tmpfiles.d(5) for details

q /var 0755 - - -

L /var/run - - - - ../run

d /var/log 0755 - - -
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0600 root utmp -

d /var/cache 0755 - - -

d /var/lib 0755 - - -

d /var/spool 0755 - - -

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-147749 severity-medium targetmilestone-inin1604
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → systemd (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :

Mostly a duplicate of bug 1484027. rsyslog ships /usr/lib/tmpfiles.d/00rsyslog.conf which overrides the default var.conf. This is just an informational message.

Changed in systemd (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in rsyslog (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Triaged
importance: Undecided → Low
bugproxy (bugproxy)
tags: added: targetmilestone-inin16041
removed: targetmilestone-inin1604
Changed in systemd (Ubuntu):
status: Triaged → Invalid
Changed in rsyslog (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-12-16 04:30 EDT-------
(In reply to comment #5)
> Mostly a duplicate of bug 1484027. rsyslog ships
> /usr/lib/tmpfiles.d/00rsyslog.conf which overrides the default var.conf.
> This is just an informational message.

My point and the issue the problem in fact should address is that - given the tmpfiles.d behaviour as follows in man -S5 tmpfiles.d:
...
Files in /etc/tmpfiles.d override files with the same name in /usr/lib/tmpfiles.
and /run/tmpfiles.d. Files in /run/tmpfiles.d override files with the same name in
/usr/lib/tmpfiles.d. Packages should install their configuration files in
/usr/lib/tmpfiles.d. Files in /etc/tmpfiles.d are reserved for the local administrator,
who may use this logic to override the configuration files installed by vendor
packages. All configuration files are sorted by their filename in lexicographic order,
regardless of which of the directories they reside in. If multiple files specify the same
path, the entry in the file with the lexicographically earliest name will be applied. All
other conflicting entries will be logged as errors.
...

Considering this, the /usr/lib/tmpfiles.d/00rsyslog.conf file in line 6 (delivered by rsyslog 8.16.0-1ubuntu3 package) to my perception is derived as effective line for /var/log, the /usr/lib/tmpfiles.d/var.conf file line 14 delivered by systemd
in the 229-4ubuntu10 package will cause the logging. I think since that is an out-of-the-box setting to us, I would hereby request a discussion of the topic with decision to be taken among systemd and rsyslogd that ONE of the two parties is delivering a tmpfiles config only.

Thanks.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-05-10 05:41 EDT-------
IBM bugzilla status closed -> fixed by duplicate LP1484027

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.