From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#34580: Service ssh-daemon could not be started Date: Thu, 26 Sep 2019 22:48:58 +0200 Message-ID: <87o8z6kclh.fsf@gnu.org> References: <20190219212126.GA2371@jurong> <87pnjqm809.fsf@gnu.org> <6d672221-0e2f-40cd-b129-1f893fe13472@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38671) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDaiB-00041X-9G for bug-guix@gnu.org; Thu, 26 Sep 2019 16:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDaiA-0000ls-8G for bug-guix@gnu.org; Thu, 26 Sep 2019 16:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDaiA-0000lf-4c for bug-guix@gnu.org; Thu, 26 Sep 2019 16:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDaiA-0006SR-1F for bug-guix@gnu.org; Thu, 26 Sep 2019 16:50:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <6d672221-0e2f-40cd-b129-1f893fe13472@www.fastmail.com> (Brant Gardner's message of "Tue, 24 Sep 2019 07:20:10 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Brant Gardner Cc: 34580@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Brand, "Brant Gardner" skribis: > I'll cheerfully do the experiment, but I don't know how - can you direct = me for how to add strace where you need it to a booting system? You could try something like the patch below. When =E2=80=98ssh-daemon=E2= =80=99 fails to start, you=E2=80=99ll have to make sure to grab /tmp/ssh.log. I=E2=80=99ve just experienced it on a headless machine so I sympathize all = the more now=E2=80=A6 HTH! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- a/gnu/services/ssh.scm +++ b/gnu/services/ssh.scm @@ -23,6 +23,7 @@ (define-module (gnu services ssh) #:use-module (gnu packages ssh) #:use-module (gnu packages admin) + #:use-module (gnu packages linux) #:use-module (gnu services) #:use-module (gnu services shepherd) #:use-module (gnu system pam) @@ -491,7 +492,8 @@ of user-name/file-like tuples." (openssh-configuration-pid-file config)) (define openssh-command - #~(list (string-append #$(openssh-configuration-openssh config) "/sbin/sshd") + #~(list #$(file-append strace "/bin/strace") "-f" "-s" "300" "-Tt" "-o" "/tmp/ssh.log" + (string-append #$(openssh-configuration-openssh config) "/sbin/sshd") "-D" "-f" #$(openssh-config-file config))) (list (shepherd-service --=-=-=--