You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With recent podman experimentation involving systemd users unit, we started seeing some issues with journald, some of them can be fixed on the Flatcar side others not. This issue is for tracking and referencing purposes.
Permission issues:
Trying to display the journal with --user fails with:
core@localhost ~ $ journalctl --user
No journal files were opened due to insufficient permissions.
Can't display the logs for a given unit with --user:
When creating a user unit, you can display logs of the unit with systemctl --user status foo.service or journalctl --user-unit foo.service but not with journalctl --user --unit foo.service. The is reported upstream: systemd/systemd#26742 (see also: flatcar-archive/flatcar-docs#295)
Description
With recent
podman
experimentation involving systemd users unit, we started seeing some issues with journald, some of them can be fixed on the Flatcar side others not. This issue is for tracking and referencing purposes.Trying to display the journal with
--user
fails with:PR:
--user
:When creating a user unit, you can display logs of the unit with
systemctl --user status foo.service
orjournalctl --user-unit foo.service
but not withjournalctl --user --unit foo.service
. The is reported upstream: systemd/systemd#26742 (see also: flatcar-archive/flatcar-docs#295)That works fine by creating a user in the
systemd-journal
(doc: flatcar-archive/flatcar-docs#297)Starting from alpha-3549.0.0, the first journal logs is not persisted: if you boot 2 times, you'll get only 1 journal entry.
We need to create /sysroot/var/log/journal with correct permissions to get it persisted.
PR:
The text was updated successfully, but these errors were encountered: