service systemd-tmpfiles-setup fails to start

Bug #1434295 reported by Matteo Croce
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Service systemd-tmpfiles-setup.service fails to start because there are two duplicate lines in /usr/lib/tmpfiles.d:

[/usr/lib/tmpfiles.d]# grep -r '^d /var/log ' *
00rsyslog.conf:d /var/log 0775 root syslog -
var.conf:d /var/log 0755 - - -

[/usr/lib/tmpfiles.d]# systemctl status systemd-tmpfiles-setup.service
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since gio 2015-03-19 22:40:05 CET; 11min ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
 Main PID: 430 (code=exited, status=1/FAILURE)

mar 19 22:40:05 raver systemd[1]: Starting Create Volatile Files and Directories...
mar 19 22:40:05 raver systemd-tmpfiles[430]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/...ring.
mar 19 22:40:05 raver systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
mar 19 22:40:05 raver systemd[1]: Failed to start Create Volatile Files and Directories.
mar 19 22:40:05 raver systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
mar 19 22:40:05 raver systemd[1]: systemd-tmpfiles-setup.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Oh, that's interesting, duplicated line is supported normally AFAIK. That's the case here, I have as well:
/usr/lib/tmpfiles.d/00rsyslog.conf:d /var/log 0775 root syslog -
/usr/lib/tmpfiles.d/var.conf:d /var/log 0755 - - -

and systemd-tmpfiles-setup didn't fail here.
You have truncated lines in your systemctl status output ("Duplicate line for path "/var/...ring."), do you mind rerunning it with -l? Thanks

Revision history for this message
Matteo Croce (teknoraver) wrote :

weird, now it's active:

# systemctl status -l systemd-tmpfiles-setup.service
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static; vendor preset: enabled)
   Active: active (exited) since lun 2015-03-23 16:20:26 CET; 17h ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 689 ExecStart=/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=0/SUCCESS)
 Main PID: 689 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/systemd-tmpfiles-setup.service

mar 23 16:20:25 matteo-adb-notebook systemd[1]: Starting Create Volatile Files and Directories...
mar 23 16:20:25 matteo-adb-notebook systemd-tmpfiles[689]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
mar 23 16:20:26 matteo-adb-notebook systemd[1]: Started Create Volatile Files and Directories.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Were you running without rebooting with an older version of systemd than 219-4ubuntu3? This one contains the upstream commit 6487ada88d63e4998113f4c57fa10b7c865f8026, which was supposed to fix that.

Putting as incomplete as long as you can't reproduce with latest version.

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

The "duplicate line" is expected and just a red herring. It shouldn't fail to start up; this smells like a duplicate of bug 1431107, can you please have a look there and give me the output of "journalctl -b -p warning"?

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.