You are not logged in.

#1 2014-08-27 11:45:14

Tim Butters
Member
Registered: 2014-08-27
Posts: 6

[SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

After a fresh install on a new laptop (dual boot with Windows 8.1 vie rEFInd) I notice some error messages whilst booting. systemd-journald fails to start, and I also see some errors relating to the creation of the volatile filesystem. It's hard for me to give a lot detail about this as without journaling as I'm not sure how to get the error messages.

I did see this from dmesg:

[  128.638674] systemd[1]: Starting Stop Read-Ahead Data Collection...
[  128.662550] systemd[1]: Started Stop Read-Ahead Data Collection.
[  194.545294] systemd[1]: Starting Journal Socket (/dev/log).
[  194.545391] systemd[1]: Listening on Journal Socket (/dev/log).
[  194.545471] systemd[1]: Starting Journal Socket.
[  194.545540] systemd[1]: Listening on Journal Socket.
[  194.545613] systemd[1]: Starting Journal Service...
[  194.546604] systemd[1]: Started Journal Service.
[  194.549797] systemd-journald[711]: Failed to get machine id: No such file or directory
[  194.553931] systemd[1]: systemd-journald.service has no holdoff time, scheduling restart.
[  194.554205] systemd[1]: Stopping Journal Service...
[   24.362121] systemd-tmpfiles[330]: [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
[   24.364106] systemd-tmpfiles[330]: [/usr/lib/tmpfiles.d/systemd.conf:29] Failed to replace specifiers: /var/log/journal/%m
[   24.404888] systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
[   24.409499] systemd[1]: Failed to start Create Volatile Files and Directories.
[   24.412303] systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.

And if I check the status of journald through systemctl I get:

systemd-journald.service - Journal Service
Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static)
   Active: failed (Result: start-limit) since Wed 2014-08-27 10:37:50 UTC; 1h 2min ago
    Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Process: 720 ExecStart=/usr/lib/systemd/systemd-journald (code=exited, status=1/FAILURE)
 Main PID: 720 (code=exited, status=1/FAILURE)
 Status: "Shutting down..."

I've tried reinstalling systemd, and adding systemd to HOOKS in mkinitcpio.conf, neither of these things seem to help. I also can't start the services manually.

If anybody can help it would be greatly appreciated, thanks!

Last edited by Tim Butters (2014-08-28 15:49:50)

Offline

#2 2014-08-27 15:23:14

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Hello
You seem not to have created a machine id at system installation.
Normally it is stored in the '/etc/machine-id' file.
Look at http://www.freedesktop.org/software/sys … ne-id.html for infos.
You might consider using the 'systemd-firstboot' tool to initialize it on mounted (but not booted) system images;
or the 'systemd-machine-id-setup ' tool.

Last edited by berbae (2014-08-27 15:31:45)

Offline

#3 2014-08-27 15:32:45

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

the post_install hook of systemd should have automatically called systemd-firstboot:
from systemd.install

post_install() {
  systemd-firstboot --setup-machine-id

Offline

#4 2014-08-28 09:40:21

Tim Butters
Member
Registered: 2014-08-27
Posts: 6

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Thanks berbae, is the systemd-firstboot tool included in the arch install image?
If so, can I use this from the chrooted environment if I boot from the live USB and mount the partitions as you would during the install process?
Thanks for your help.

Offline

#5 2014-08-28 15:35:26

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Normally, as Loqs said, 'systemd-firstboot --setup-machine-id' should have been run when you first installed the systemd package.
You can verify if the '/etc/machine-id' file exists:

$ ls -l /etc/machine-id
-rw-r--r-- 1 root root 33 25 mars   2009 /etc/machine-id

If you don't find one, maybe use 'systemd-machine-id-setup' instead to create one.
But have you seen error messages during the Arch installation? Because that should not be necessary.

Edit: 'systemd-firstboot' is new in systemd 216, so should not be found in the live installation disk 2014.08.

Last edited by berbae (2014-08-28 15:44:52)

Offline

#6 2014-08-28 15:48:02

Tim Butters
Member
Registered: 2014-08-27
Posts: 6

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Running the command:

 systemd-machine-id-setup 

has solved the problem. I didn't notice any errors when I installed, but I was missing the /etc/machine-id file.

Offline

#7 2014-08-30 05:26:18

altercation
Member
From: Seattle
Registered: 2011-05-15
Posts: 136
Website

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Just installing on a new machine tonight and I saw the same thing. systemd-machine-id-setup as root solved it as well.

This was a very basic test install, stock standard arch other than lvm-on-luks. Smells like a problem with the systemd first-run initialization.

This was also a dual boot win8.1/arch system with rEFInd.

Last edited by altercation (2014-08-30 05:30:03)


Ethan Schoonover
Precision Colors - http://ethanschoonover.com/solarized

Offline

#8 2014-08-30 08:21:13

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

Offline

Board footer

Powered by FluxBB