journalctl command terminates abnormally when there is some empty journal file

Solution Verified - Updated -

Issue

When there is some empty journal file, journalctl command terminates abnormally while outputting the following error message:

Error was encountered while opening journal files: Input/output error

where journalctl command outputs no journal log message even if there are still other healthy journal files that remain.

Environment

  • Red Hat Enterprise Linux 7
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content