Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd journalling not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Wed Feb 14, 2018 10:11 am    Post subject: systemd journalling not working Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9690
Location: almost Mile High in the USA

PostPosted: Thu Feb 15, 2018 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Thu Feb 15, 2018 7:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2036
Location: United Kingdom

PostPosted: Thu Feb 15, 2018 9:54 am    Post subject: Re: systemd journalling not working Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Thu Feb 15, 2018 1:03 pm    Post subject: Reply with quote

yes that solved everything, thank you :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum