From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4HjfOl/YhWTURwAASxT56A (envelope-from ) for ; Sun, 11 Jun 2023 16:21:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CBCjOl/YhWQmLAAA9RJhRA (envelope-from ) for ; Sun, 11 Jun 2023 16:21:19 +0200 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 7FED730A35 for ; Sun, 11 Jun 2023 16:21:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8LwF-00009e-LT; Sun, 11 Jun 2023 10:21:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8LwE-00009M-7H for bug-guix@gnu.org; Sun, 11 Jun 2023 10:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8LwD-0008OF-UV for bug-guix@gnu.org; Sun, 11 Jun 2023 10:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8LwD-0004l5-PS for bug-guix@gnu.org; Sun, 11 Jun 2023 10:21:01 -0400 Subject: bug#58485: [shepherd] EADDRINUSE while restarting ssh-daemon Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sun, 11 Jun 2023 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58485 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars-Dominik Braun Cc: Lars-Dominik Braun , 58485-done@debbugs.gnu.org Mail-Followup-To: 58485@debbugs.gnu.org, ludo@gnu.org, lars@6xq.net Received: via spool by 58485-done@debbugs.gnu.org id=D58485.168649323218222 (code D ref 58485); Sun, 11 Jun 2023 14:21:01 +0000 Received: (at 58485-done) by debbugs.gnu.org; 11 Jun 2023 14:20:32 +0000 Received: from localhost ([127.0.0.1]:37569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8Lvk-0004jq-AU for submit@debbugs.gnu.org; Sun, 11 Jun 2023 10:20:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8Lvj-0004je-3X for 58485-done@debbugs.gnu.org; Sun, 11 Jun 2023 10:20:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8Lvc-0008Ie-VV; Sun, 11 Jun 2023 10:20:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=uNrRBkwoRheaNjF69hwjT1BUm4qn7N6JRKLdq4Ih0mA=; b=PKt9Y/+psC+A3zTBKSkg 8gFVU/Bho3t7A6eGsV+rrVrh+x+pogudp+DeOwW+Kq5KiP6lZWNnitsLrkv/mjevYQ3wf24VQJ4Hn jLe/vb9AjUU5Qv1w2QAI1JrGoBVhu2qEanobo/CuWmjOyzJXWBTWJV75uJd6UB/hN2HJRW8QMrBV/ NdIJSRkQA+cotPGMG0k0GfOPqChph6xKjGRnaPDsVoLRyXkWXIAYnozzpSPFRG2/b4iyPs9Q55vo6 18umUDLV1A+sim2KdN/gl9ujr+TGNtomc+Mva+yxKumkPfjXy7eojkuHs+je6UhDlDsHI28QWF3pk gnpp9YWkUjC4OQ==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8Lvb-0005BA-3k; Sun, 11 Jun 2023 10:20:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875yfekmze.fsf@gnu.org> <878rgsljtx.fsf@gnu.org> <87pm7puihd.fsf@gnu.org> <87h6t0up9t.fsf_-_@gnu.org> Date: Sun, 11 Jun 2023 16:20:21 +0200 In-Reply-To: <87h6t0up9t.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 28 Apr 2023 15:09:34 +0200") Message-ID: <87ttveqdwa.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686493279; a=rsa-sha256; cv=none; b=ZNDxE87CNfKUEixjlM7nptccgF2/K989ikfd/F78VhSgF+prodqsWZgGk3iF7pWiACnV1+ PPWjHGuluvrCxrblSqjSonWGnbafPNda/0KZjQ8LhGeaqcLJOTp70z1G1XdlDrf4PJBqav WAYY0gUo/ug/JRgYau9Y+HElC6vwEvCq8TRV3nfvrZSIDWNCIBF53jkLs14WUr8uPTILDV f2D3UEMcEVAw5Sk0GMY2vnnwcnkKvw3/n93bSyfeEozRo1mnRi3017XYt0ql3/+nKWarn6 yV2Dus7SDQBN/SQ/0+3FLWcsVatyTs2E/wi2a4bIDB5Cuaf1Xz/mf4VSqz6NqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="PKt9Y/+p"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686493279; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uNrRBkwoRheaNjF69hwjT1BUm4qn7N6JRKLdq4Ih0mA=; b=WUvz2DepAVkVvjltUImXkBARrQTsPrr6NRCMetY4Mot/KFmZs3IzwOxwjL5PHXrxK5YAJd MYWBQPpGjXdo5rC6HGzrzVJB5NcmrMkc0stM1pO3pwp9+EcCZOncUwLbB4KsQ7MClzgvjL a3Be2lvnkmBjLir1VFpzanw78G1wRRl6y8gUKt5hevzO0nyEEO6BivXoZq33PrjPhit0lC 6yhgaA0OV3yzglswOHUwkDc5oSr8PPK0gJKTgirHMDBrgTs9DL8p5NnOaYxjYgS1sSe2Wy QFZZgMnxwK9NtL2oiWYSOOGh21BQIhHwDtnF4B0hXN1BeNtzo4zuWfEn0oni4w== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="PKt9Y/+p"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.42 X-Spam-Score: -4.42 X-Migadu-Queue-Id: 7FED730A35 X-TUID: GI9tPUrfowjo Hi Lars, Ludovic Court=C3=A8s skribis: > Ludovic Court=C3=A8s skribis: > >>> 1 14:12:15.117035 read(21, "(shepherd-command (version 0) (action r= estart) (service ssh-daemon) (arguments ()) (directory \"/root\"))", 1024) = =3D 103 >>> 1 14:12:15.117254 close(27) =3D 0 >>> 1 14:12:15.117283 close(30) =3D 0 >>> 1 14:12:15.117416 newfstatat(AT_FDCWD, "/etc/localtime", {st_dev=3D= makedev(0x8, 0x2), st_ino=3D110100491, st_mode=3DS_IFREG|0444, st_nlink=3D1= , st_uid=3D0, st_gid=3D0, st_blksize=3D4096, st_blocks=3D8, s >>> t_size=3D2298, st_atime=3D1676898665 /* 2023-02-20T14:11:05.338746772+0= 100 */, st_atime_nsec=3D338746772, st_mtime=3D1676898664 /* 2023-02-20T14:1= 1:04.874743456+0100 */, st_mtime_nsec=3D874743456, st_c >>> time=3D1676898664 /* 2023-02-20T14:11:04.874743456+0100 */, st_ctime_ns= ec=3D874743456}, 0) =3D 0 >>> 1 14:12:15.117475 write(17, "shepherd[1]: Service ssh-daemon has be= en stopped.\n", 50) =3D 50 >>> 1 14:12:15.117524 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NON= BLOCK, IPPROTO_IP) =3D 26 >>> 1 14:12:15.117561 setsockopt(26, SOL_SOCKET, SO_REUSEADDR, [1], 4) = =3D 0 >>> 1 14:12:15.117598 bind(26, {sa_family=3DAF_INET, sin_port=3Dhtons(2= 222), sin_addr=3Dinet_addr("0.0.0.0")}, 16) =3D -1 EADDRINUSE (Address alre= ady in use) >>> 1 14:12:15.117724 write(21, "(reply (version 0) (result #f) (error = (error (version 0) action-exception start ssh-daemon system-error (\"bind\"= \"~A\" (\"Address already in use\") (98)))) (messages (\"Service ssh-daemo= n has been stopped.\")))", 204) =3D 204 >>> 1 14:12:15.117754 close(21) =3D 0 > > [...] > >> Maybe we should just have shepherd retry upon EADDRINUSE (like nginx >> does, as you wrote), though I=E2=80=99d like to understand under what co= nditions >> we can get EADDRINUSE in the first place. > > Done: > > https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3D41789ee8d0e= 164967f9ca196db4e9601400a462e I=E2=80=99m assuming that this is fixed in Shepherd 0.10.x. Please reopen = if you stumble upon this issue again. Ludo=E2=80=99.