systemd journal

The place to post if you need help or advice

Moderators: ChriThor, LXF moderators

systemd journal

Postby i.couchman » Wed Nov 30, 2016 2:53 pm

I'm having a problem with a new install of Debian Jessie on a new laptop.
After installing bumblebee-nvidia, the system freezes when I boot ( keyboard is dead, can't ssh in).
Ah! I thought. Look at the logs. So I booted to another version of Debian on the same machine & looked at /var/log on the iffy system.
There were no entries in any files I could see with a date stamp corresponding with the attempted boot. I know how to look at the journal for the currently running system, but how do I view the journal from another system? Where is the file?
Ian
i.couchman
LXF regular
 
Posts: 229
Joined: Thu Jul 13, 2006 10:43 am

Re: systemd journal

Postby nelz » Wed Nov 30, 2016 8:36 pm

Code: Select all
journalctl --directory /mnt/othersystem/var/log/journal
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9041
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Re: systemd journal

Postby i.couchman » Thu Dec 01, 2016 5:29 pm

I tried that. I get no such file. Looking in /var/log, there's no file or directory called journal :cry:
i.couchman
LXF regular
 
Posts: 229
Joined: Thu Jul 13, 2006 10:43 am

Re: systemd journal

Postby nelz » Thu Dec 01, 2016 7:49 pm

Have you tried using the --root option instead?
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9041
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Re: systemd journal

Postby i.couchman » Fri Dec 02, 2016 6:25 pm

Found it. The journal's hiding under /run/log , not /var/log.
Now to find the original problem...

thanks for the help.
Ian
i.couchman
LXF regular
 
Posts: 229
Joined: Thu Jul 13, 2006 10:43 am

Re: systemd journal

Postby nelz » Fri Dec 02, 2016 9:55 pm

That means journald is not set to save persistent logs (/run disappears when you reboot or shutdown). You can change this in /etc/systemd/journald.conf by setting Storage=persistent. Or you can leave it set to auto and create /var/log/journal. Whed Storage is set to auto, journald only saves the logs to disk if the directory already exists.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9041
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Re: systemd journal

Postby i.couchman » Sat Dec 03, 2016 3:12 pm

OK. I can see the log now. Back to investigating the bumble bee!
thanks again
Ian
i.couchman
LXF regular
 
Posts: 229
Joined: Thu Jul 13, 2006 10:43 am


Return to Help!

Who is online

Users browsing this forum: No registered users and 6 guests