From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YMlZOwl182NRFAEAbAwnHQ (envelope-from ) for ; Mon, 20 Feb 2023 14:26:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eBo9Ogl182OoHwEAG6o9tA (envelope-from ) for ; Mon, 20 Feb 2023 14:26:33 +0100 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 9EE0D21439 for ; Mon, 20 Feb 2023 14:26:33 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=leibniz-psychology-org.20210112.gappssmtp.com header.s=20210112 header.b="Rxq/q663"; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676899593; a=rsa-sha256; cv=none; b=AZ6TfL4l5nT0kdGSwq90WXl210tuwzs1OHeh5tzJJSVU3FZPRIY03v7Nt3OA/lNcJwjf6y DkbwXPX5bstYjLsYGaBYVa82m2VJCLlxEgY7K6qMMoOyea/UbJJPbXMvCyZ82Otr9lMUch PgPhwz9iCk9OdEu593pBAepM++mwSvBT76mLYvUCw+j9ld04YBkzSAU2r+0wY9DvMkax8s k1le8xsFFJzTlDJwph44T9jmZoI+yksTILyPJw6iGSSxnD8lId/CH/gECf2QvbCjGrkLRw WwJBAUoE2XeYifYa2hQO2pMu5MAkgrr0+K7fmAsxcVECbw0rHDCerOgaK3pRSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=leibniz-psychology-org.20210112.gappssmtp.com header.s=20210112 header.b="Rxq/q663"; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676899593; 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:resent-cc: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=rqVAWa+gNcTyC25GemznIJ9BDGDawMGUXlHtClDjOfg=; b=XeAFJhxor3fG8Wb4uR7mU+0DNDSxISDZv7eWWkRe/EMhOBp7nAW8wuRBf+8oCum0+we2MX 6yMTRJvJXD6eo041TfXUDDw48OcEQAkSTKmoHx93+rCM0roYTI2RZo39R+4VPzETwqo5Gx H1L6o+AhA3FTTcmihOb3vpCcRW5tQZ+76MBMoMKh7XbYeesPQExbAQMDRlUTIkhYJjIPEj 6MoQw3wX5E1sFF09hxR51VfbhlGGhZDmX1kSz9jq1WFVvY96lVVCjB3rvUvrpSLhQyuRyX nIvk28B8p7K1gTg/kYAqjl3sw4n3BY7n4Rw614UcQ4cKQUWdxfeleg5lSBWKTQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU6BK-0007io-6N; Mon, 20 Feb 2023 08:26:14 -0500 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 1pU6B9-0007iS-FA for bug-guix@gnu.org; Mon, 20 Feb 2023 08:26:04 -0500 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 1pU6B8-0000Tv-CA for bug-guix@gnu.org; Mon, 20 Feb 2023 08:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pU6B8-0002h8-0R for bug-guix@gnu.org; Mon, 20 Feb 2023 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58485: [shepherd] Restarting guix-publish fails Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 20 Feb 2023 13:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58485 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58485@debbugs.gnu.org, Lars-Dominik Braun Received: via spool by 58485-submit@debbugs.gnu.org id=B58485.167689953210321 (code B ref 58485); Mon, 20 Feb 2023 13:26:01 +0000 Received: (at 58485) by debbugs.gnu.org; 20 Feb 2023 13:25:32 +0000 Received: from localhost ([127.0.0.1]:51001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU6Ae-0002gP-BR for submit@debbugs.gnu.org; Mon, 20 Feb 2023 08:25:32 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:55855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU6Ab-0002gA-EM for 58485@debbugs.gnu.org; Mon, 20 Feb 2023 08:25:31 -0500 Received: by mail-wm1-f42.google.com with SMTP id m23so903581wms.5 for <58485@debbugs.gnu.org>; Mon, 20 Feb 2023 05:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leibniz-psychology-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rqVAWa+gNcTyC25GemznIJ9BDGDawMGUXlHtClDjOfg=; b=Rxq/q663KL9KSxFpnyQ36HgyydgPGDJQvW2KvRrxhCzCT5Ste6UrfjXFMVfTTND5MN fxScRqXXZGd9tg2YqvGxsCHYPwmC4QrBe9by63j/qaJv1rzjvLLaieofFHEPOoLtvkv9 +3QVO+QhdR+/ejY/UnxWALb6/vdbtg8KogVWbsmPL5itVOn46xfgvoOKa5ERUAYudrs7 2GEk8ctBGZ+roVPVRckVIp03SczJUS7rMTEi01dVtZ5Vc4ZasVWCR9Rza/sxcoEoNBJR eIx+UTCeJgDBHxkXwx8NPgBnsEP9ThTVsq5UrRPOi7vCRP0Z5fd/5A6sJ7+h6icfxaGn 1YYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rqVAWa+gNcTyC25GemznIJ9BDGDawMGUXlHtClDjOfg=; b=bGepy7VSO/J/HG11iNitqoS+6WUZ6tgB+nilhv5BMUCs9gaAfpN6nIZv3AAVrKcJbw rSpja1GFsfHxP2yhCUf2DjrJEOEJ0Brp9ZRad/HTMdUrdwfyZMCGdBomQoj1P0s+uJqK /daR5lSkFGf2krRKHjOGqJoOerXPl9H92RTZCVgVNcQ2ZKECDyD5hqVuR3oxywE0kNNd ELMlacfk8dnRmaB50O2AyOWypiJTdRKg8UEr8oOXguJ+Oje04/vt0nTMEbBReb7tFgWX 0iA8mCa3m1fCf5BIn0WDDFqtALjni4ukB3HA58Xy16VyyvEqjARgYPT6UbscJV/i2Kif 4RvQ== X-Gm-Message-State: AO0yUKVQfclZuW3xlXl6MTs+VENi7LG3Cvo2sO+SkntnW+sThZ4s6xXv PVMpRct2K7UOjlJL7ERRDOCN+ZTiN4UX/UxMNdJ/1Kz3EhG0QxznQZ0I1+Oa2/4kppHhXdBRWSQ KkZ2koIqSGjv5tqKHZxOLrtPuWQDD/yToIj2g8LTI/ItDZjoBVaqiS6afo8zk8MmNm+PT+WKpR6 V/3Xg= X-Google-Smtp-Source: AK7set8vU2l5HfBRmQ/MT/e7wvQ6J38DwpZ31nXAFVOgnNlIOFVu9ZVqBjHbPuX9EyEoy0SfBJ+hEA== X-Received: by 2002:a05:600c:331b:b0:3e2:6c6:31a6 with SMTP id q27-20020a05600c331b00b003e206c631a6mr229873wmp.9.1676899523310; Mon, 20 Feb 2023 05:25:23 -0800 (PST) Received: from localhost (opensense.uni-trier.de. [136.199.1.50]) by smtp.gmail.com with ESMTPSA id u7-20020a05600c19c700b003e21f20b646sm1315086wmq.21.2023.02.20.05.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 05:25:22 -0800 (PST) Date: Mon, 20 Feb 2023 14:25:22 +0100 From: Lars-Dominik Braun Message-ID: References: <875yfekmze.fsf@gnu.org> <878rgsljtx.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r8XOVDpvTgY0dkFL" Content-Disposition: inline In-Reply-To: <878rgsljtx.fsf@gnu.org> 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: X-Migadu-Queue-Id: 9EE0D21439 X-Spam-Score: -5.05 X-Migadu-Spam-Score: -5.05 X-Migadu-Scanner: scn0.migadu.com 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-Flow: FLOW_IN X-Migadu-Country: US X-TUID: 2Z68VgipEOsy --r8XOVDpvTgY0dkFL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ludo, > Can you confirm shepherd (PID 1) is 0.9.3? it is: root 1 0.2 0.2 308148 76816 ? Sl Feb07 52:08 /gnu/store= /kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/bin/guile --no-auto-compile /= gnu/store/4nw0zb4swga0cb8i35nvng3rg6z5qm8p-shepherd-0.9.3/bin/shepherd --co= nfig /gnu/store/cvrai6z8777jf7860rnvppfznl1lcxi1-shepherd.conf > =E2=80=98sudo herd restart ssh-daemon=E2=80=99 works fine on my laptop FW= IW. This works fine too. Only unattended-upgrades seems to have this issue :/ The strace looks unsuspicious right now: ---snip--- 1 14:12:15.117035 read(21, "(shepherd-command (version 0) (action resta= rt) (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=3Dmake= dev(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+0100 = */, st_atime_nsec=3D338746772, st_mtime=3D1676898664 /* 2023-02-20T14:11:04= =2E874743456+0100 */, st_mtime_nsec=3D874743456, st_c time=3D1676898664 /* 2023-02-20T14:11:04.874743456+0100 */, st_ctime_nsec= =3D874743456}, 0) =3D 0 1 14:12:15.117475 write(17, "shepherd[1]: Service ssh-daemon has been s= topped.\n", 50) =3D 50 1 14:12:15.117524 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOC= K, 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(2222)= , sin_addr=3Dinet_addr("0.0.0.0")}, 16) =3D -1 EADDRINUSE (Address already = in use) 1 14:12:15.117724 write(21, "(reply (version 0) (result #f) (error (err= or (version 0) action-exception start ssh-daemon system-error (\"bind\" \"~= A\" (\"Address already in use\") (98)))) (messages (\"Service ssh-daemon ha= s been stopped.\")))", 204) =3D 204 1 14:12:15.117754 close(21) =3D 0 ---snap--- But nginx seems to have the same issue, except that it does not fail entirely and succeeds after waiting a short period of time: ---snip--- 2023/02/20 14:12:14 [notice] 7136#0: signal 15 (SIGTERM) received from 6644= , exiting 2023/02/20 14:12:14 [notice] 7137#0: exiting 2023/02/20 14:12:14 [notice] 7137#0: exit 2023/02/20 14:12:14 [notice] 7136#0: signal 17 (SIGCHLD) received from 7137 2023/02/20 14:12:14 [notice] 7136#0: worker process 7137 exited with code 0 2023/02/20 14:12:14 [emerg] 6645#0: bind() to 0.0.0.0:443 failed (98: Addre= ss already in use) 2023/02/20 14:12:14 [emerg] 6645#0: bind() to 0.0.0.0:80 failed (98: Addres= s already in use) 2023/02/20 14:12:14 [emerg] 6645#0: bind() to [::]:80 failed (98: Address a= lready in use) 2023/02/20 14:12:14 [notice] 7136#0: exit 2023/02/20 14:12:14 [notice] 6645#0: try again to bind() after 500ms 2023/02/20 14:12:14 [notice] 6645#0: using the "epoll" event method 2023/02/20 14:12:14 [notice] 6645#0: nginx/1.23.3 2023/02/20 14:12:14 [notice] 6645#0: OS: Linux 6.1.9 2023/02/20 14:12:14 [notice] 6645#0: getrlimit(RLIMIT_NOFILE): 1024:4096 2023/02/20 14:12:14 [notice] 6648#0: start worker processes 2023/02/20 14:12:14 [notice] 6648#0: start worker process 6649 2023/02/20 14:12:32 [info] 6649#0: epoll_wait() failed (4: Interrupted syst= em call) ---snap--- I see we=E2=80=99re already using SO_REUSEADDR, so all of this is a bit of a mystery to me. Thanks, Lars --=20 Lars-Dominik Braun Wissenschaftlicher Mitarbeiter/Research Associate www.leibniz-psychology.org ZPID - Leibniz-Institut f=C3=BCr Psychologie / ZPID - Leibniz Institute for Psychology Universit=C3=A4tsring 15 D-54296 Trier - Germany Tel.: +49=E2=80=93651=E2=80=93201-4964 --r8XOVDpvTgY0dkFL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEyk+M9DfXR4/aBV/UQhN3ARo3hEYFAmPzdLcACgkQQhN3ARo3 hEaZsAv+LM5XHA/LZnBM5CxiZq39HJFExQ13RybQ41w/kpm8khpGXYbJWpS+U2t9 tTpbq7Mge9BPQT6uk9jb0qDBnGKRmKWS+LCkL7HQvzbmOi0sxV418nejZlRv5Igf mxbtkD2aztIXfxqEa+ZO8sO7H16qoZHtcmwaEqpCU9+kAELq+FxO6L1RKvIKAS7S dXuEgHCx92LlUbnxPYK2vbKn7Y93ruKukd+nIze9UhtcwAXrhiirUdgVcZ4oDmoK cYmm5H1wJv21sPB0/GXD9KRBmXteRqYpYmi6fj/sFY9WH35ILvuqpDe7sS8GcEqF db/jfHI5dNoNDSKQzO/bS/Copr0HSADWD6oLnSuab1UCyVLM+amekclEs+BaPg6f 3TMG+DPBboMf4oGr7cCyr0KWxHf58V9v36R30N8U1UkYzhIveovoWMOX2nb0lwZW ypbCHjmpxvpGU7PBHZNOkcChLF/DkkCg22rwYP41CnxxrfYAjx5vh8Vca6WHAv9q EraAcxx9 =JBDq -----END PGP SIGNATURE----- --r8XOVDpvTgY0dkFL--