Ssh

systemd:未能使我們成為子收割者:參數無效。SSH

  • January 7, 2016

自從升級到引入 systemd 的 Debian 8 (Jessie) 後,我的系統日誌錯誤中出現了這篇文章的標題。

遠端 ssh 登錄開始

10:33:51 pap1 systemd[1]: Starting user-0.slice.
10:33:51 pap1 systemd[1]: Created slice user-0.slice.
10:33:51 pap1 systemd[1]: Starting User Manager for UID 0...
10:33:51 pap1 systemd[1]: Starting Session 23 of user root.
10:33:51 pap1 systemd[1]: Started Session 23 of user root.
10:33:51 pap1 systemd[12228]: Failed to make us a subreaper: Invalid argument
10:33:51 pap1 systemd[12228]: Perhaps the kernel version is too old (< 3.4?)
10:33:51 pap1 systemd[12228]: Starting Paths.
10:33:51 pap1 systemd[12228]: Reached target Paths.
10:33:51 pap1 systemd[12228]: Starting Timers.
10:33:51 pap1 systemd[12228]: Reached target Timers.
10:33:51 pap1 systemd[12228]: Starting Sockets.
10:33:51 pap1 systemd[12228]: Reached target Sockets.
10:33:51 pap1 systemd[12228]: Starting Basic System.
10:33:51 pap1 systemd[12228]: Reached target Basic System.
10:33:51 pap1 systemd[12228]: Starting Default.
10:33:51 pap1 systemd[12228]: Reached target Default.
10:33:51 pap1 systemd[12228]: Startup finished in 19ms.
10:33:51 pap1 systemd[1]: Started User Manager for UID 0.

客戶端正常連接,客戶端沒有錯誤。

現在退出遠端 ssh 客戶端后…

10:33:55 pap1 systemd[1]: Stopping User Manager for UID 0...
10:33:55 pap1 systemd[12228]: Stopping Default.
10:33:55 pap1 systemd[12228]: Stopped target Default.
10:33:55 pap1 systemd[12228]: Stopping Basic System.
10:33:55 pap1 systemd[12228]: Stopped target Basic System.
10:33:55 pap1 systemd[12228]: Stopping Paths.
10:33:55 pap1 systemd[12228]: Stopped target Paths.
10:33:55 pap1 systemd[12228]: Stopping Timers.
10:33:55 pap1 systemd[12228]: Stopped target Timers.
10:33:55 pap1 systemd[12228]: Stopping Sockets.
10:33:55 pap1 systemd[12228]: Stopped target Sockets.
10:33:55 pap1 systemd[12228]: Starting Shutdown.
10:33:55 pap1 systemd[12228]: Reached target Shutdown.
10:33:55 pap1 systemd[12228]: Starting Exit the Session...
10:33:55 pap1 systemd[12228]: Received SIGRTMIN+24 from PID 12248 (kill).
10:33:55 pap1 systemd[1]: Stopped User Manager for UID 0.
10:33:55 pap1 systemd[1]: Stopping user-0.slice.
10:33:55 pap1 systemd[1]: Removed slice user-0.slice.

系統詳情

我正在執行的核心是目前的 Debian 核心,3.16.0-4-686-pae(即 >3.4)。

任何想法這個問題是什麼,是否嚴重,我能阻止它嗎?

答案在日誌輸出的下一行:

10:33:51 pap1 systemd[12228]: Failed to make us a subreaper: Invalid argument 10:33:51 pap1 systemd[12228]: Perhaps the kernel version is too old (< 3.4?)

你的核心太舊了。

引用自:https://serverfault.com/questions/747070