View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Feb 14, 2018 10:11 am Post subject: systemd journalling not working |
|
|
I have just installed gentoo with systemd, however journalctl shows no journal.
Code: | localhost /run # journalctl
-- No entries -- |
dmesg shows:
[ 231.292201] systemd-journald[10642]: Failed to open runtime journal: No such file or directory
Code: |
[ebuild R ] sys-apps/systemd-236-r5:0/2::gentoo USE="kmod pam -acl* (-apparmor) -audit -build -cryptsetup -curl -elfutils -gcrypt* -gnuefi -http -idn -importd -libidn2 -lz4* -lzma -nat -policykit -qrcode -seccomp* (-selinux) -ssl* -sysv-utils* {-test} -usrmerge -vanilla -xkb" ABI_X86="(64) -32 (-x32)" 0 KiB |
I'm using the default journald.conf:
https://pastebin.com/yX7AZwNm
how can I get journalctl to work |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9690 Location: almost Mile High in the USA
|
Posted: Thu Feb 15, 2018 1:37 am Post subject: |
|
|
What does
Code: | $ ls /var/log/journal/$(hostnamectl status|grep Machine|awk '{print $3}') |
report? If an error shows up in that command, that needs to be resolved... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Feb 15, 2018 7:41 am Post subject: |
|
|
nope no error:
Code: | localhost ~ # ls /var/log/journal/$(hostnamectl status|grep Machine|awk '{print $3}')
remote |
but hostnamectl does not have machine in its output:
localhost /var/log/journal # hostnamectl status
Static hostname: n/a
Transient hostname: localhost
Icon name: computer-vm
Chassis: vm
Boot ID: ee962f637a124181b1843b86a251af42
Virtualization: kvm
Operating System: Gentoo/Linux
Kernel: Linux 4.9.76-gentoo-r1
Architecture: x86-64 |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2036 Location: United Kingdom
|
Posted: Thu Feb 15, 2018 9:54 am Post subject: Re: systemd journalling not working |
|
|
Adel Ahmed wrote: | dmesg shows:
[ 231.292201] systemd-journald[10642]: Failed to open runtime journal: No such file or directory |
Does the file /etc/machine-id exist? Its absence has been reported in the past to result in the above error message. Have you tried the following work-around to get journald working?:
Code: | # touch /etc/machine-id |
Ref. https://bugzilla.redhat.com/show_bug.cgi?id=1379800 _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Feb 15, 2018 1:03 pm Post subject: |
|
|
yes that solved everything, thank you |
|
Back to top |
|
|
|