From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OMxsG3aFwV/wbAAA0tVLHw (envelope-from ) for ; Fri, 27 Nov 2020 23:02:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2HNCF3aFwV/abwAA1q6Kng (envelope-from ) for ; Fri, 27 Nov 2020 23:02:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DEDFC9403C9 for ; Fri, 27 Nov 2020 23:02:13 +0000 (UTC) Received: from localhost ([::1]:48026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kimkl-0007R3-Pz for larch@yhetil.org; Fri, 27 Nov 2020 18:02:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kimkc-0007QI-8V for bug-guix@gnu.org; Fri, 27 Nov 2020 18:02:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kimkc-0006NY-0S for bug-guix@gnu.org; Fri, 27 Nov 2020 18:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kimkb-0004TN-TP for bug-guix@gnu.org; Fri, 27 Nov 2020 18:02:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#37309: =?UTF-8?Q?=E2=80=98ssh-daemon=E2=80=99?= service fails to start at boot Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 27 Nov 2020 23:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37309 X-GNU-PR-Package: guix X-GNU-PR-Keywords: fixed unreproducible To: Giovanni Biscuolo X-Debbugs-Original-Cc: bug-guix@gnu.org, 37309@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160651809015856 (code B ref -1); Fri, 27 Nov 2020 23:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 23:01:30 +0000 Received: from localhost ([127.0.0.1]:46600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kimk5-00047O-QY for submit@debbugs.gnu.org; Fri, 27 Nov 2020 18:01:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:47436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kimk4-00045x-0s for submit@debbugs.gnu.org; Fri, 27 Nov 2020 18:01:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kimk2-0007Mu-SO for bug-guix@gnu.org; Fri, 27 Nov 2020 18:01:27 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:57634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kimk0-0006KE-Ps for bug-guix@gnu.org; Fri, 27 Nov 2020 18:01:26 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 934A32665A; Fri, 27 Nov 2020 18:01:20 -0500 (EST) References: <87k1da6fdb.fsf@roquette.mug.biscuolo.net> <87y315t3hw.fsf@roquette.mug.biscuolo.net> <87tvbhra2v.fsf@roquette.mug.biscuolo.net> <87imrvhhpy.fsf@cbaines.net> <874l3crjqr.fsf@roquette.mug.biscuolo.net> <87k1c6p914.fsf@roquette.mug.biscuolo.net> <20190817152031.GA3191@jurong> <87pnkuyac0.fsf_-_@gnu.org> <20190828181141.GA27765@jurong> <87ef0u2867.fsf@roquette.mug.biscuolo.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber In-reply-to: <87ef0u2867.fsf@roquette.mug.biscuolo.net> Date: Fri, 27 Nov 2020 18:00:48 -0500 Message-ID: <87tutajtgf.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c02::f03c:91ff:feae:cb51; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.2 (+) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 37309@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.77 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-TUID: sdCB9Js6/8Wq Giovanni Biscuolo writes: > Hi, > > following a recent discussion on guix-sysadmin I have to confirm the > ssh-daemon issue since it is still happening on some of the machines I > administer > > Previous possibly related bug reports are > https://issues.guix.gnu.org/issue/30993 and > https://issues.guix.gnu.org/issue/32197 > > Unfortunately this issue is *not* well reproducible, it depends on some > mysterious (to me) timing factor; AFAIU it does *not* depend on the > shepherd version, probably it depends on "something" related to IPv6 > (read below the details) This issue continues to plauge me, and has ever since I started to use GuixSD. However it is much worse now that I am running Guix on servers... I frequently have to log in via Linode's (nonfree!) web console on every server that is rebooted and kick herd to restart openssh. Once I do that it's fine. I don't think my linode machine is on "spinning rust" so I don't think this is the cause. IPv6, maybe? Dunno what. However I think that it's probably really a dependency issue somewhere; herd is starting opensshd before some other dependent service is spawned. But what? Maybe something authentication related like networking, or something. But hm, networking is required... I'm assuming others must be experiencing this still too... right? Would really like to see it fixed. It's one of the few things holding me back from recommending Guix on servers to others. Do others have any idea? I noticed the lsh daemon requires networking. Why doesn't openssh? What about the following "fix"? diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm index 1891db0487..c9bd62bab7 100644 --- a/gnu/services/ssh.scm +++ b/gnu/services/ssh.scm @@ -508,7 +508,7 @@ of user-name/file-like tuples." (list (shepherd-service (documentation "OpenSSH server.") - (requirement '(syslogd loopback)) + (requirement '(syslogd networking loopback)) (provision '(ssh-daemon ssh sshd)) (start #~(make-forkexec-constructor #$openssh-command #:pid-file #$pid-file))