FS#72701 - [systemd] systemd-run --scope --user fails in systemd 249.6

Attached to Project: Arch Linux
Opened by Jonas Witschel (diabonas) - Wednesday, 10 November 2021, 20:00 GMT
Last edited by Christian Hesse (eworm) - Thursday, 11 November 2021, 15:31 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Running something like "systemd-run --scope --user sleep 100" fails in systemd 249.6 with the following error, while it worked as expected in systemd <= 249.5:

Job failed. See "journalctl -xe" for details.

I reported this issue upstream as https://github.com/systemd/systemd/issues/21297

This affects users who have enabled the (non-default) KillUserProcesses=yes option in /etc/systemd/logind.conf and therefore have to use "systemd-run --scope --user" to run terminal multiplexers, cf. https://wiki.archlinux.org/title/Systemd/User#Kill_user_processes_on_logout Therefore I suggest keeping systemd 249.6 in [testing] until this issue is fixed upstream.

Additional info:
* systemd 249.6-1
* https://github.com/systemd/systemd/issues/21297

Steps to reproduce:
1. Upgrade to systemd 249.6-1, currently in [testing].
1. Run "systemd-run --scope --user sleep 100".
2. Observe an error message "Job failed. See "journalctl -xe" for details." instead of the job being executed in a scope unit, like systemd 249.5-3 did ("Running scope as unit: run-rf06cf365f1ed444fa9313bf2c24da800.scope").
This task depends upon

Closed by  Christian Hesse (eworm)
Thursday, 11 November 2021, 15:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  systemd 249.6-3
Comment by Jonas Witschel (diabonas) - Wednesday, 10 November 2021, 21:00 GMT Comment by Christian Hesse (eworm) - Wednesday, 10 November 2021, 21:58 GMT
Thanks for the reports, marked as bad on the signoff page.
You should open a pull request for your supposed fix...
Comment by Jonas Witschel (diabonas) - Wednesday, 10 November 2021, 22:07 GMT
Sure, done: https://github.com/systemd/systemd/pull/21298 There is a slight drawback with the suggested fix though described in the commit message/PR description, let's see what upstream will say.

Loading...