Score:0

journalctl gets corrupted

pk flag

When I type: sudo journalctl --verify

I always get: Data object's entry array not sorted
File corruption detected at
by some of my logs.

Screenshot from terminal

How can I know what causes this in Ubuntu? I have Pop_Os! installation on my other drive with much larger log file and it never gets corrupted. I have tested my disk fdisc and it shows no errors. I have also installed Ubuntu in other partition and same corruption starts there too after a while.

ChanganAuto avatar
us flag
Pop!_OS is off-topic here.
Score:1
cn flag

It is not nice to see these corruptions in log files. In principle, the corrupt files can be rewritten, but according to a Redhat software engineer, for now, we best simply ignore these corruptions rather than clean them up. Quote:

There isn't really any point in deleting them. journalctl salvages automatically everything it can when reading them. Since the files are mostly append-only the corruptions usually only affect half-written entries at the end, and hence all earlier once should just work.

I am pretty sure we simply need to document this in more detail, and clarify that corrupted journal files are nothing to act on, and the journalctl recovers what it can on read, implicitly, with no fsck-like tool being necessary, and without requiring people to manually delete anything.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.