You are not logged in.

#21 2016-10-30 07:03:29

bra10n
Member
Registered: 2016-06-15
Posts: 22

Re: [FIXED] journalctl: cannot view old boots

johnraff wrote:

^It looks OK to me:

john@bunsen1:~$ ls -ld /var/log/journal
drwxr-sr-x 7 root systemd-journal 4096 Oct 30 10:26 /var/log/journal

Here;

bra10n@Aspire-5750:~$ ls -ld /var/log/journal
drwxr-sr-x 3 root systemd-journal 4096 Oct 29 19:01 /var/log/journal

So if I'm correct, you have permissions to rwx and cannot read journal logs, while here I have wx only and everything works. Strange.

Offline

#22 2016-10-30 16:28:34

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: [FIXED] journalctl: cannot view old boots

I did some checking on this. I was having the same issues @johnraff, which backporting systemd appears to have resolved. Once I backported systemd, setting storage to persistent and ensuring I was part of systemd-journal gave me proper handling of multiple boot logs as shown below:

tknomanzr@wtfbox:~$ journalctl --list-boots
-1 ba9e4cae0fc14425bc35698f9e6c4d34 Sun 2016-10-30 11:20:03 CDT—Sun 2016-10-30 1
 0 f841f7b622754843b852ceac1f9be2cc Sun 2016-10-30 11:23:32 CDT—Sun 2016-10-30 1
tknomanzr@wtfbox:~$ journalctl -b -1
-- Logs begin at Sun 2016-10-30 11:20:03 CDT, end at Sun 2016-10-30 11:23:47 CDT
Oct 30 11:20:03 wtfbox systemd-journald[1714]: Runtime journal (/run/log/journal
Oct 30 11:20:03 wtfbox kernel: CPU0 microcode updated early to revision 0x38, da
Oct 30 11:20:03 wtfbox kernel: Initializing cgroup subsys cpuset
Oct 30 11:20:03 wtfbox kernel: Initializing cgroup subsys cpu
Oct 30 11:20:03 wtfbox kernel: Initializing cgroup subsys cpuacct
Oct 30 11:20:03 wtfbox kernel: Linux version 3.16.0-4-amd64 (debian-kernel@lists
Oct 30 11:20:03 wtfbox kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-a
Oct 30 11:20:03 wtfbox kernel: e820: BIOS-provided physical RAM map:
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000000009e800-0x000000000009
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000f
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000039cc
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x0000000039ccf000-0x000000003a83
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003a83e000-0x000000003acb
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003acbf000-0x000000003c08
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003c090000-0x000000003c54
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003c550000-0x000000003c55
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003c551000-0x000000003c5d
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003c5d7000-0x000000003d89
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003d898000-0x000000003dff
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x000000003dff9000-0x000000003dff
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x0000000040000000-0x000000004fff
Oct 30 11:20:03 wtfbox kernel: BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1
tknomanzr@wtfbox:~$ 

Offline

#23 2016-10-31 01:42:31

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,553
Website

Re: [FIXED] journalctl: cannot view old boots

@tknomanzr thanks for that.

john@bunsen1:~$ apt-cache policy systemd
systemd:
  Installed: 215-17+deb8u5
  Candidate: 215-17+deb8u5
  Version table:
     230-7~bpo8+2 0
        100 http://ftp.riken.jp/Linux/debian/debian/ jessie-backports/main amd64 Packages
 *** 215-17+deb8u5 0
        500 http://ftp.riken.jp/Linux/debian/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

So systemd version 230 is available in the backports. smile

Probably a pile of other unpublicized bugs will have been fixed in there, but now I've got a workaround for my immediate needs I'll stay with 215 for the moment - mainly because it would be another complicating factor when helping trying to help other BL users...

But for any other people with this issue, I'd suggest taking tk's advice and upgrading systemd to 230 from jessie-backports.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB