failed to iterate through journal: bad message

ndyer asked:

I received the following error trying to view logs on an embedded ARM board running Angstrom Linux with systemd.

# journalctl -f    
Failed to iterate through journal: Bad message

I searched the systemd documentation and didn’t find any useful reference to this message or what to do to resolve it.

The filesystem is on an sdcard, so it’s possible that it’s caused by file corruption, although the system displays no other signs of this. Going in to /var/log/journal and removing all the files in there fixed the problem. This has got logging working again at the cost of losing all my previous log message.

What can be the underlying cause of this?

My answer:

It is a bug in your version of systemd that has since been fixed upstream.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.