[opensuse] what's wrong?
Hello, I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs. I get this, it seems that I have no recent journal. How to reset this to normal? thanks jdd # journalctl --list-boots -9 a1f4383d42834c499d7220225a6519aa ven. 2016-07-29 07:52:00 CEST—ven. 2016-07-29 14:03:48 CEST (...) -1 20c1ce44c7ce4b628c5cd410aeb0cb98 dim. 2016-07-31 07:25:08 CEST—dim. 2016-07-31 21:49:21 CEST 0 a382b60f8b1b4866aa5a87cbfd3e54cc lun. 2016-08-01 08:29:53 CEST—lun. 2016-08-01 10:07:04 CEST linux-w4v5:/home/jdd # date sam. nov. 26 10:30:41 CET 2016 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/11/2016 à 10:35, jdd a écrit :
I get this, it seems that I have no recent journal. How to reset this to normal?
journald.conf is only filled with comments, so all default jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
26.11.2016 12:35, jdd пишет:
Hello,
I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs.
I get this, it seems that I have no recent journal. How to reset this to normal?
Do you have /var/log/journal directory?
thanks jdd
# journalctl --list-boots -9 a1f4383d42834c499d7220225a6519aa ven. 2016-07-29 07:52:00 CEST—ven. 2016-07-29 14:03:48 CEST (...) -1 20c1ce44c7ce4b628c5cd410aeb0cb98 dim. 2016-07-31 07:25:08 CEST—dim. 2016-07-31 21:49:21 CEST 0 a382b60f8b1b4866aa5a87cbfd3e54cc lun. 2016-08-01 08:29:53 CEST—lun. 2016-08-01 10:07:04 CEST
linux-w4v5:/home/jdd # date sam. nov. 26 10:30:41 CET 2016
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/11/2016 à 10:48, Andrei Borzenkov a écrit :
26.11.2016 12:35, jdd пишет:
Hello,
I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs.
I get this, it seems that I have no recent journal. How to reset this to normal?
Do you have /var/log/journal directory?
yes # ls /var/log/journal/a0848146a8854c519ce698d28901e824/ system@000538fe1c8182ba-3c7a4a3b7bdbcf08.journal~ system@0005392d206c4194-8cab56e5031c40f9.journal~ (many lines) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/11/2016 à 11:17, jdd a écrit :
Le 26/11/2016 à 10:48, Andrei Borzenkov a écrit :
Do you have /var/log/journal directory?
yes
# ls /var/log/journal/a0848146a8854c519ce698d28901e824/ system@000538fe1c8182ba-3c7a4a3b7bdbcf08.journal~ system@0005392d206c4194-8cab56e5031c40f9.journal~ (many lines)
and even some from today :-( 00000000000444a4-00053ddb7d80bc18.journal 8196 -rw-r----- 1 root systemd-journal 8388608 26 nov. 11:42 system.journal jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 26/11/2016 à 11:17, jdd a écrit :
Le 26/11/2016 à 10:48, Andrei Borzenkov a écrit :
Do you have /var/log/journal directory?
yes
# ls /var/log/journal/a0848146a8854c519ce698d28901e824/ system@000538fe1c8182ba-3c7a4a3b7bdbcf08.journal~ system@0005392d206c4194-8cab56e5031c40f9.journal~ (many lines)
and even some from today :-(
00000000000444a4-00053ddb7d80bc18.journal 8196 -rw-r----- 1 root systemd-journal 8388608 26 nov. 11:42 system.journal
So unless your uptime is indeed some 4 months - what is the first timestamp journalctl -r reports? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
26.11.2016 13:45, jdd пишет:
Le 26/11/2016 à 11:17, jdd a écrit :
Le 26/11/2016 à 10:48, Andrei Borzenkov a écrit :
Do you have /var/log/journal directory?
yes
# ls /var/log/journal/a0848146a8854c519ce698d28901e824/ system@000538fe1c8182ba-3c7a4a3b7bdbcf08.journal~ system@0005392d206c4194-8cab56e5031c40f9.journal~ (many lines)
and even some from today :-(
00000000000444a4-00053ddb7d80bc18.journal 8196 -rw-r----- 1 root systemd-journal 8388608 26 nov. 11:42 system.journal
Do you see any recent messages using journalctl? So far you only shown --list-boots output; it may be that this particular records are corrupted for some reasons. If you do "journalctl -f" and generate some log messages (using logger or e.g. simply doing "su -" that also write logs) - do you see log entries? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/11/2016 à 18:26, Andrei Borzenkov a écrit :
If you do "journalctl -f" and generate some log messages (using logger or e.g. simply doing "su -" that also write logs) - do you see log entries?
back to this computer yes, journalctl -f gives recent messages only journalctl (without options or with boot options) stops on August first :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-11-26 10:35, jdd wrote:
Hello,
I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs.
I get this, it seems that I have no recent journal. How to reset this to normal?
Well, perhaps it crashes before it can write anything to disk. Try logging to another machine instead, directly from the kernel. What's the name...? AH! netconsole. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 26/11/2016 à 14:37, Carlos E. R. a écrit :
On 2016-11-26 10:35, jdd wrote:
Hello,
I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs.
I get this, it seems that I have no recent journal. How to reset this to normal?
Well, perhaps it crashes before it can write anything to disk.
since august? this computer is started nearly every day :-), and I see joirnal enties in the folder
Try logging to another machine instead, directly from the kernel. What's the name...? AH! netconsole.
I don't understand? I'm not on this computer right now, will see on evening thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-11-26 14:49, jdd wrote:
Le 26/11/2016 à 14:37, Carlos E. R. a écrit :
On 2016-11-26 10:35, jdd wrote:
Hello,
I experiment hard crashes (Leap 42.1) on some circumstances, so I wanted to look at the logs.
I get this, it seems that I have no recent journal. How to reset this to normal?
Well, perhaps it crashes before it can write anything to disk.
since august? this computer is started nearly every day :-), and I see joirnal enties in the folder
Try logging to another machine instead, directly from the kernel. What's the name...? AH! netconsole.
I don't understand?
I thought you said it crashed with no entries for the session in the log. I can not imagine that it was running for months. In that case, forget the journal, install a syslog. netconsole is a system to send log entries to another local machine, fast. It can be uses on crashes. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 26/11/2016 à 14:54, Carlos E. R. a écrit :
I thought you said it crashed with no entries for the session in the log.
it crashed and for that I looked at the logs and notice the normal way to look at the logs (journalctl -b -1) it showed August 1 I can not imagine that it was running for months.
no, it's stopped nearly every day
netconsole is a system to send log entries to another local machine, fast. It can be uses on crashes.
ok. As I begin to understand, logs of the very last boot are OK (journalctl -b 0), but not the boot just before, what is the goal of journalctl -b -1 I have to experiment some sort of journal cleaning thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/11/2016 à 10:35, jdd a écrit :
I get this, it seems that I have no recent journal. How to reset this to normal?
I found the solution and summarize it here: https://forums.opensuse.org/showthread.php/506886-systemd-journald-Settings-... essentially * changed /etc/systemd/journald.conf to have SystemMaxUse=100M MaxRetentionSec=3month and systemctl restart systemd-journald this set the journal with a normal way and removed the old entries thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Carlos E. R.
-
jdd
-
pit