You are not logged in.

#1 2012-07-04 02:19:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,612
Website

Several systemd services failed [SOLVED]

Not sure why these guys are suddenly failing:

$ sudo systemctl --failed
UNIT                           LOAD   ACTIVE SUB    JOB DESCRIPTION
systemd-tmpfiles-clean.service loaded failed failed     Cleanup of Temporary Directories
systemd-tmpfiles-setup.service loaded failed failed     Recreate Volatile Files and Directories

Some debuging info:

$ sudo systemctl status systemd-tmpfiles-clean.service
systemd-tmpfiles-clean.service - Cleanup of Temporary Directories
	  Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static)
	  Active: failed (Result: exit-code) since Tue, 03 Jul 2012 22:15:12 -0400; 2min 42s ago
	    Docs: man:tmpfiles.d(5)
	 Process: 13787 ExecStart=/usr/bin/systemd-tmpfiles --clean (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/systemd-tmpfiles-clean.service

Jul 03 22:15:12 simplicity systemd-tmpfiles[13787]: [/usr/lib/tmpfiles.d/mpd.conf:1] Unknown user 'mpd'.
Jul 03 22:15:12 simplicity systemd-tmpfiles[13787]: stat(/run/user/facade/gvfs) failed: Permission denied

I deleted the mpd.conf but am not sure what's up with the gvfs thing.

$ sudo systemctl status systemd-tmpfiles-setup.service
systemd-tmpfiles-setup.service - Recreate Volatile Files and Directories
	  Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static)
	  Active: failed (Result: exit-code) since Tue, 03 Jul 2012 19:27:47 -0400; 2h 51min ago
	    Docs: man:tmpfiles.d(5)
	 Process: 4070 ExecStart=/usr/bin/systemd-tmpfiles --create --remove (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/systemd-tmpfiles-setup.service

Here is the output from journalctl if it helps:  http://pastebin.com/bBdDJhYJ

Last edited by graysky (2012-07-04 06:59:56)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-07-04 04:24:55

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Several systemd services failed [SOLVED]

Did you see this in your log;

Jul 03 19:27:43 simplicity systemd-tmpfiles[4022]: [/usr/lib/tmpfiles.d/mpd.c...

? You get more with journalctl -a . I think you already looked at this thread; https://bbs.archlinux.org/viewtopic.php?id=143778

Offline

#3 2012-07-04 06:59:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,612
Website

Re: Several systemd services failed [SOLVED]

Very odd... upon a reboot this morning, I have no errors at all.  This was after removing the mpd.conf as stated in my first post.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-07-04 11:40:35

LoBo3268715
Member
From: WI, USA
Registered: 2012-02-23
Posts: 34

Re: Several systemd services failed [SOLVED]

I am also experiencing this issue with mpd. I deleted the mpd.conf and everything was ok until mpd was upgraded.


"Linux. A big, bad, scary computer operating system known only by people with neck beards."

Offline

#5 2012-07-04 13:24:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,612
Website

Re: Several systemd services failed [SOLVED]

Open a bug report against mpd:

$ pacman -Qo /usr/lib/tmpfiles.d/mpd.conf 
/usr/lib/tmpfiles.d/mpd.conf is owned by mpd 0.17-1

This file assumes that the user wants to configure it to use the user mpd which the package does not create.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2012-11-07 08:59:48

sudokode
Member
Registered: 2010-06-27
Posts: 5

Re: Several systemd services failed [SOLVED]

I'm guessing you're running the mpd system service as your user. You have two choices:

1. Copy the tmpfile to /etc/tmpfiles.d/ and in the file change mpd to $USER.
2. Create a systemd user service and place it in /etc/systemd/user/.

I ship a systemd user service file with mpd-git. Maybe a request needs to be filed that it be included with the official mpd package as many people run mpd as their user.

Offline

Board footer

Powered by FluxBB