GNU bug report logs - #34580
'ssh-daemon' fails to start

Previous Next

Package: guix;

Reported by: Andreas Enge <andreas <at> enge.fr>

Date: Tue, 19 Feb 2019 21:22:02 UTC

Severity: important

Tags: fixed, unreproducible

Merged with 30993, 33299, 37309

Done: maxim.cournoyer <at> gmail.com

Bug is archived. No further changes may be made.

Full log


Message #55 received at 34580 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "Brant Gardner" <mail <at> lnklnx.com>
Cc: 34580 <at> debbugs.gnu.org
Subject: Re: bug#34580: Service ssh-daemon could not be started
Date: Thu, 26 Sep 2019 22:48:58 +0200
[Message part 1 (text/plain, inline)]
Hi Brand,

"Brant Gardner" <mail <at> lnklnx.com> 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 ‘ssh-daemon’ fails
to start, you’ll have to make sure to grab /tmp/ssh.log.

I’ve just experienced it on a headless machine so I sympathize all the
more now…

HTH!

Ludo’.

[Message part 2 (text/x-patch, 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

This bug report was last modified 4 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.