LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-13-2019, 02:00 AM   #1
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
raspbian - systemd - no persistent journal was found


I've got Raspbian GNU/Linux 9.6 (stretch) and would like to debug some freequent systemd failures. Mostly it boots fine, but at intervals which I cannot predict, the machine fails to boot.

I've let it wait many tens of minutes in some cases but only power cycling helps, sometimes twice in a row is needed. I was hoping that the logs would contain something but when running journalctl I get the error:
"Specifying boot ID has no effect, no persistent journal was found"

How can I enable persistent logging in systemd so that I may check the logs from previous attempts at booting when this happens again?
 
Old 02-13-2019, 02:08 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
"man journald.conf"
 
Old 02-13-2019, 02:27 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295

Original Poster
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Thanks.

Code:
$ diff -u /etc/systemd/journald.conf.orig  /etc/systemd/journald.conf
--- /etc/systemd/journald.conf.orig     2019-02-13 10:21:31.429086408 +0200
+++ /etc/systemd/journald.conf  2019-02-13 10:17:02.580540911 +0200
@@ -12,6 +12,7 @@
 # See journald.conf(5) for details.

 [Journal]
+Storage=persistent
 #Storage=auto
 #Compress=yes
 #Seal=yes
With that it failed to boot (again) until power cycled but at least there was a partial log. I know it's not the hardware because it happens with multiple Raspberry Pis on multiple networks with multiple SD cards. I haven't seen it happen with other distros than Raspbian.

The only thing that looked off is "dhcpcd[324]: timed out" A guess is that networking or else dhcpcd itself failed somehow, but there is no warning about connectivitiy otherwise. What should I look for to see what caused that upstream?

Last edited by Turbocapitalist; 02-13-2019 at 02:28 AM.
 
Old 02-14-2019, 08:04 AM   #4
millwood
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
Alternately leave it auto and sudo mkdir /var/log/journal
 
  


Reply

Tags
journalctl, raspbian, systemd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep only one Systemd Journal log in /run/log/journal jegadezz Linux - Software 3 07-27-2016 06:24 AM
How to keep only one Systemd Journal log in /run/log/journal jegadezz Linux - Kernel 1 07-25-2016 01:00 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration