You are not logged in.

#1 2012-06-22 08:25:29

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

[SOLVED]Systemd Tmpfile Setup Service Fails

I'm not sure what version this began but I'm using systemd 185-1 and systemd-arch-units 20120606-4. Service just fails to start. Is this fixable?

└╼ $ 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 Fri, 22 Jun 2012 04:22:15 -0400; 36s ago
            Docs: man:tmpfiles.d(5)
         Process: 931 ExecStart=/usr/bin/systemd-tmpfiles --create --remove (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/systemd-tmpfiles-setup.service

Last edited by Hspasta (2012-06-23 04:31:05)

Offline

#2 2012-06-22 08:38:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

At a guess, one or more of your /etc/tmpfile.d/*.conf files is malformed. Do you have anything in there?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-06-22 19:27:21

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

It's empty.

Offline

#4 2012-06-22 19:32:27

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

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

Check fstab and comment out the tmp there.

Offline

#5 2012-06-22 20:55:17

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

Do you have any aur/custom-made packages that put *.conf files in /usr/lib/tmpfiles.d or /usr/local/lib/tmpfiles.d?

Does the system journal have any more information about the failure?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2012-06-22 21:32:53

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

swanson wrote:

Check fstab and comment out the tmp there.

Did and didn't help. sad

WorMzy wrote:

Do you have any aur/custom-made packages that put *.conf files in /usr/lib/tmpfiles.d or /usr/local/lib/tmpfiles.d?

Does the system journal have any more information about the failure?

Hm...I have a lot of stuff in /usr/lib/tmpfiles.d/

└╼ $ ls /usr/lib/tmpfiles.d/
total 44K
-rw-r--r-- 1 root root  30 Jun  4 16:12 console.conf
-rw-r--r-- 1 root root  29 May 27 00:29 consolekit.conf
-rw-r--r-- 1 root root  74 Jun  6 19:02 initscripts.conf
-rw-r--r-- 1 root root 719 Jun  4 16:12 legacy.conf
-rw-r--r-- 1 root root  61 Jun 16 01:28 lvm2.conf
-rw-r--r-- 1 root root  24 Jun  1 00:04 mpd.conf
-rw-r--r-- 1 root root  27 Jun  9 03:29 nscd.conf
-rw-r--r-- 1 root root  30 Jun  9 01:41 openssh.conf
-rw-r--r-- 1 root root 729 Jun  4 16:12 systemd.conf
-rw-r--r-- 1 root root 449 Jun  4 16:12 tmp.conf
-rw-r--r-- 1 root root 622 Jun  4 16:12 x11.conf

I feel like something in my system is broken...

Offline

#7 2012-06-23 00:14:15

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

If you run "systemctl status ..." as root you will get some more output. You can also have a look at "journalctl" and grep for "tmpfiles".

Offline

#8 2012-06-23 04:30:42

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

systemctl status as root showed one error with the mpd.conf which was the cause of all this. I find this bug really silly because I enabled the mpd.service for a very short amount of time and I guess the tmpfile for mpd never got deleted. It was complaining about the fact that I don't have a user named 'mpd'.

Thanks for all the help.

Offline

#9 2012-06-23 11:16:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED]Systemd Tmpfile Setup Service Fails

I guess you need to add yourself to the adm group to be able to see journal output when querying services with systemctl as your normal user.

Regarding your problem; I think you must either 1) not have an up to date system, 2) have manually removed the mpd user, while leaving the mpd package installed, or 3) have manually created mpd.conf in /usr/lib/tmpfiles.d/ at some point, then forgotten to remove it.

The mpd package provides both the tmpfile conf and the mpd user, so it shouldn't be possible to have one and not the other without manual intervention.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB