Bug#1064879: systemd: User sessions started from system scope have no journal.

Michael Biebl biebl at debian.org
Tue Feb 27 11:11:12 GMT 2024


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 --------------
A non-text attachment was scrubbed...
Name: Screenshot_debian12_2024-02-27_12:06:12.png
Type: image/png
Size: 50261 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240227/e648731f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240227/e648731f/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list