Bug#1064879: systemd: User sessions started from system scope have no journal.
Timon de Groot
timon.degroot at hypernode.com
Tue Feb 27 12:42:08 GMT 2024
As discussed on IRC, the user ID on my test system is 1000, but we figured out the real problem was the SplitMode=none configuration on my testing system. After disabling that setting (so leaving it to the default SplitMode=uid), the expected behavior was happening again.
Some case could be made that there's a problem/bug around SplitMode=none with user sessions, but I feel like that's not really worth investing time/effort into.
Please close this bug as we've found systemd to be working nicely. Thanks again for your time and effort.
________________________________
From: Michael Biebl <biebl at debian.org>
Sent: Tuesday, February 27, 2024 12:11:12 PM
To: 1064879 at bugs.debian.org; Timon de Groot
Subject: Re: systemd: User sessions started from system scope have no journal.
Control: tags -1 + moreinfo unreproducible
On Tue, 27 Feb 2024 09:18:02 +0100 Timon de Groot
<timon.degroot at hypernode.com> wrote:
> Package: systemd
> Version: 252.22-1~deb12u1
> Severity: normal
> X-Debbugs-Cc: timon.degroot at hypernode.com
>
> Dear Maintainer,
>
> * What led up to the situation?
> Upstream systemd bugs: #23679, #26742. Can be reproduced when enabling linger for user, rebooting and running journalctl --user.
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
> Create a bookworm VM with a normal user. Enable linger for that user
> (loginctl enable-linger myuser). Reboot the server. Login as that
> user. Run journalctl --user, no new log output from the current
> systemd user session.
> * What was the outcome of this action?
> New output after enabling lingering does seem to get logged into the
> user's journal. Either you only see the old log entries
> that exist from an older systemd user session or you get to see the
> error "No journal files were found, for journalctl"
> * What outcome did you expect instead?
> Running journalctl --user gives proper output.
I'm not able to reproduce the problem given the above instructions.
With an up-to-date test VM, I enabled linger for the user "michael",
rebooted, then logged in as "michael" and restarted a couple of user
services like systemctl --user restart dbus.service
As you can see from the screenshot, they do show up in journalctl --user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240227/ca7089f5/attachment.htm>
More information about the Pkg-systemd-maintainers
mailing list