システムがユーザープロセスを終了できないのはなぜですか? 「制御グループを終了できません」「無視:操作は許可されていません」

システムがユーザープロセスを終了できないのはなぜですか? 「制御グループを終了できません」「無視:操作は許可されていません」

qemuユーザースコープジョブから始めます。sytemd-run --user qemu-system... -pidfile pidfile

終了時にsystemdはこれを終了できないと主張し(試行しない)、SIGKILLqemuを正しく終了せずにpidfileを保存するものを送信します。

$ journalctl --user -b -1
...
systemd[884]: run-r0d56e38ca97d4493a5f496a19d18f6ae.scope: Failed to kill control group /user.slice/user-1000.slice/[email protected]/app.slice/run-r0d56e38ca97d4493a5f496a19d18f6ae.scope, ignoring: Operation not permitted
systemd[884]: run-r0d56e38ca97d4493a5f496a19d18f6ae.scope: Killing process 23775 (qemu-system-x86) with signal SIGKILL.
systemd[884]: run-r0d56e38ca97d4493a5f496a19d18f6ae.scope: Killing process 23778 (kvm-nx-lpage-recovery-23775) with signal SIGKILL.
systemd[884]: run-r0d56e38ca97d4493a5f496a19d18f6ae.scope: Failed to kill control group /user.slice/user-1000.slice/[email protected]/app.slice/run-r0d56e38ca97d4493a5f496a19d18f6ae.scope, ignoring: Operation not permitted
systemd[884]: Stopped /usr/bin/qemu-system-x86_64 -pidfile pidfile ...
systemd[884]: run-r0d56e38ca97d4493a5f496a19d18f6ae.scope: Consumed 30.007s CPU time, 774.1M memory peak, 0B memory swap peak.

私は失敗した文字列を検索してみましたが、"Failed to kill control group" "ignoring: Operation not permitted"どこでも結果はゼロでした。

プロセスはユーザーまたはルートによって簡単に終了できます。簡単なSIGTERMプロセスは1msで終了します。だからタイムアウトにもなりません。ところで、上記のすべてのログ行は同じ秒以内に発生します。

「仕事が許されない」の原因は何ですか?

ベストアンサー1

おすすめ記事