You are not logged in.

#1 2012-04-14 00:18:59

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

newbie systemd - several services failed to start

Followed the setup on the systemd wiki page and installed systemd and systemd-arch-units.  Upon rebooting and querying the running services, I noticed several failed to start for reasons that are unknown to me.

List of just those that failed:

$ systemctl list-units
UNIT                                      LOAD   ACTIVE SUB       JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount         loaded failed failed        Arbitrary Executable File Formats File Sys
systemd-modules-load.service              loaded failed failed        Load Kernel Modules
smbd.service                              loaded failed failed        Samba SMB/CIFS server

Not sure what would be helpful in diagnosing this; contrary to the wiki, I have no journalctl... perhaps it resides in an optional package?

$ pkgfile -s journalctl

Some info:

$ systemctl status proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
	  Loaded: loaded (/usr/lib/systemd/system/proc-sys-fs-binfmt_misc.automount; static)
	  Active: failed (Result: resources)
	   Where: /proc/sys/fs/binfmt_misc
$ status systemd-modules-load
systemd-modules-load.service - Load Kernel Modules
	  Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
	  Active: failed (Result: exit-code) since Sat, 14 Apr 2012 06:59:07 -0400; 2min 49s ago
	 Process: 117 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/systemd-modules-load.service
$ status smbd
smbd.service - Samba SMB/CIFS server
	  Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
	  Active: failed (Result: exit-code) since Sat, 14 Apr 2012 06:43:06 -0400; 14s ago
	 Process: 2434 ExecStart=/usr/sbin/smbd -F (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/smbd.service

Last edited by graysky (2012-04-14 17:55:45)

Offline

#2 2012-04-14 01:20:24

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: newbie systemd - several services failed to start

"smdb.service" is a typo...

systemd-44 will have systemd-journalctl. it would seem the wiki is ahead of the curve and following systemd-git to some extent...

Offline

#3 2012-04-14 10:46:59

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

Re: newbie systemd - several services failed to start

@falconindy - you're right about the typo.  I edited the original post to fix it.  Do you have any thoughts regarding the failures?  Thanks!

Last edited by graysky (2012-04-14 11:04:31)

Offline

#4 2012-04-14 12:54:55

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: newbie systemd - several services failed to start

The issue with samba is probably due to FS#26239. The solution is in the first comment. (Maybe someone should move this bugreport to the samba package).

Can't help you with the other issues, though.

Offline

#5 2012-04-14 17:49:11

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

Re: newbie systemd - several services failed to start

Nice, thanks guelfi.

Last edited by graysky (2012-04-14 17:57:59)

Offline

#6 2012-04-14 18:40:27

bzt
Member
From: Germany
Registered: 2010-04-11
Posts: 39

Re: newbie systemd - several services failed to start

Most of the time it can be useful to run the command that is specified in the ExecStart line to get some useful output why starting the service failed, e.g. in your case:

# /usr/lib/systemd/systemd-modules-load

Offline

#7 2012-04-20 09:35:26

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: newbie systemd - several services failed to start

guelfi wrote:

The issue with samba is probably due to FS#26239. The solution is in the first comment. (Maybe someone should move this bugreport to the samba package).

Can't help you with the other issues, though.

Hi

I was also seeing the smbd.service failure. As a result of being a complete noob I guess !! (I don't have /var mounted on a temporary drive).

Perhaps someone could explain how systemd units interact with these /var/run/.. folders? Why does the smbd.service need a /var/run/samba folder?

Still finding my feet with SystemD... big_smile

Thanks
Bob

Offline

#8 2012-04-20 12:55:21

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: newbie systemd - several services failed to start

bobwya wrote:
guelfi wrote:

The issue with samba is probably due to FS#26239. The solution is in the first comment. (Maybe someone should move this bugreport to the samba package).

Can't help you with the other issues, though.

Hi

I was also seeing the smbd.service failure. As a result of being a complete noob I guess !! (I don't have /var mounted on a temporary drive).

Why shoukld you? /var should not be on a tmpfs; several applications (including pacman) save their databases etc. there.

bobwya wrote:

Perhaps someone could explain how systemd units interact with these /var/run/.. folders? Why does the smbd.service need a /var/run/samba folder?

Samba tries to create a PIDfile (a file that just contains the PID of some process) in /var/run/samba. As /var/run is on a tmpfs and systemd doesn't automatically create this folder (in contrast to the original initscripts), you have to instruct systemd to create /var/run/samba on every reboot.

bobwya wrote:

Still finding my feet with SystemD... big_smile

www.freedesktop.org/wiki/Software/systemd/ wrote:

Yes, it is written systemd, not system D or System D, or even SystemD. And it isn't system d either. Why? Because it's a system daemon, and under Unix/Linux those are in lower case, and get suffixed with a lower case d. And since systemd manages the system, it's called systemd. It's that simple. But then again, if all that appears too simple to you, call it (but never spell it!) System Five Hundred since D is the roman numeral for 500 (this also clarifies the relation to System V, right?). The only situation where we find it OK to use an uppercase letter in the name (but don't like it either) is if you start a sentence with systemd. On high holidays you may also spell it sÿstëmd. But then again, Système D is not an acceptable spelling and something completely different (though kinda fitting).

Offline

#9 2012-04-20 18:56:58

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: newbie systemd - several services failed to start

guelfi wrote:

Samba tries to create a PIDfile (a file that just contains the PID of some process) in /var/run/samba. As /var/run is on a tmpfs and systemd doesn't automatically create this folder (in contrast to the original initscripts), you have to instruct systemd to create /var/run/samba on every reboot.

Yeh I thought it was PID storage. I see now that /run is in my mount-points as tmpfs. So Samba isn't going to autostart without some extra help I guess...

I was getting confused about the emphasis on systemd - so thanks!! So are other people I see...

$ pacman -Ss systemd
...
community/systemd-arch-units 20120410-1 [installed: 20120401-1]
    Arch specific Systemd unit files
community-testing/systemd-arch-units 20120412-1 [installed: 20120401-1]
    Arch specific Systemd unit files

Thanks
Bob

Offline

#10 2012-04-20 19:35:23

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

Re: newbie systemd - several services failed to start

Offline

#11 2012-04-20 20:02:55

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: newbie systemd - several services failed to start

Duh... "read" that before but I see the light now... tongue

Thanks
Bob

Offline

Board footer

Powered by FluxBB