journalctl Failed to open files: Protocol not supported

After upgrading systemd from V219 to v247, journalctl stops working:

journalctl -u v2ray

Journal file /var/log/journal/xxxx/user-1000.journal uses an unsupported feature, ignoring file.
Use SYSTEMD_LOG_LEVEL=debug journalctl –file=/var/log/journal/xxxx/user-1000.journal to see the details.

SYSTEMD_LOG_LEVEL=debug journalctl –file=/var/log/journal/xxxx/user-1000.journal

Journal effective settings seal=no keyed_hash=yes compress=no compress_threshold_bytes=8B
Journal file /var/log/journal/xxxx/user-1000.journal uses incompatible flag xz-compressed disabled at compilation time.
Failed to open journal file /var/log/journal/xxxx/user-1000.journal: Protocol not supported
mmap cache statistics: 0 hit, 1 miss
Failed to open files: Protocol not supported

journalctl –version

systemd 247 (247)

systemctl restart systemd-journald
Warning: The unit file, source configuration file or drop-ins of systemd-journald.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.

systemctl daemon-reload

Now, journalctl -u v2ray works well.

Posted in tips of hosting