GNU bug report logs - #63717
[Shepherd] Replaced services remain active in the shadows

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Thu, 25 May 2023 13:00:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 63717 <at> debbugs.gnu.org:


Received: (at 63717) by debbugs.gnu.org; 25 May 2023 15:02:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 11:02:11 2023
Received: from localhost ([127.0.0.1]:47816 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2CTj-000608-7V
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 11:02:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35796)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1q2CTg-0005zu-E8
 for 63717 <at> debbugs.gnu.org; Thu, 25 May 2023 11:02:09 -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 <ludo@HIDDEN>) id 1q2CTa-0002OS-Ub
 for 63717 <at> debbugs.gnu.org; Thu, 25 May 2023 11:02:03 -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=cnqYEDqNRIDAMVvJRLY6S0eQ6sPFZpJjGBiC9/ColFs=; b=jKEbiB3Ivw1txZaSLEUF
 4msFqGX8J/doUtAb/wxDjtCfnuwKDKJF2fjLLlmB6nN9NkyVcIMJW0CtpgajVo0StFFGCqDlmtMfB
 iTjlKdYNjmNOuNYoLqnRCgDE7tfAO7X9tftec265EYuLwqHxBkgc8PWXgfA0t88FDo0QuHyoqN2yP
 K0efLcaNMTGemS7b+toMFuB3RK+bCUSwE46Qy6CitCrsMmzQk/eD8/PTAM5LApsokx6n6yIaVaKQw
 UeoUFBu5lO6qiFxjzi7Vs4K7a8d5hi0pR2EZdVUUeJ4A6RbOaOvgQwDHpbD4e6ryHZmIAIAhfgV/H
 uGzFGpMSU06ukw==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1q2CTM-0000fr-9d
 for 63717 <at> debbugs.gnu.org; Thu, 25 May 2023 11:02:02 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: 63717 <at> debbugs.gnu.org
Subject: Re: bug#63717: [Shepherd] Replaced services remain active in the
 shadows
References: <87h6s0efdh.fsf@HIDDEN>
Date: Thu, 25 May 2023 17:01:47 +0200
In-Reply-To: <87h6s0efdh.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Thu, 25 May 2023 14:59:22 +0200")
Message-ID: <87o7m8cv50.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 63717
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s <ludovic.courtes@HIDDEN> skribis:

> What seems to happen is that, in both cases, the registry points to the
> new service; =E2=80=98herd status=E2=80=99 & co. look up the service by n=
ame in the
> registry, find the new service, and rightfully show that it=E2=80=99s sto=
pped.
> But the old service still exists: it=E2=80=99s no longer in the registry,=
 but it
> handles SIGCHLD, incoming connections on port 22, etc.

Fixed in Shepherd commit 63af9d7c4460b55953bfa199ea44ac0114289b64.

We=E2=80=99ll have to make a new release soon.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#63717; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 May 2023 12:59:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 08:59:34 2023
Received: from localhost ([127.0.0.1]:46226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2AZ4-0005bN-BZ
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 08:59:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:37068)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1q2AZ2-0005bG-C3
 for submit <at> debbugs.gnu.org; Thu, 25 May 2023 08:59:32 -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 <ludovic.courtes@HIDDEN>)
 id 1q2AZ2-0005Ty-2Y
 for bug-guix@HIDDEN; Thu, 25 May 2023 08:59:32 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1q2AYw-000595-Nm
 for bug-guix@HIDDEN; Thu, 25 May 2023 08:59:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc;
 h=from:to:subject:date:message-id:mime-version:
 content-transfer-encoding;
 bh=PGg/QpxztxtxPmODbgjsANz3wy+3uhAatqPE//jpi/o=;
 b=KQovLeohe/dPtSdBLf9EHUok0F20YwZfbJtLz7MqDteTIY03F2SckL2W
 QgeiG31Kb0mK7L61qS6nFJPv6oTdrUQay2HqtWz/LWDK1gL1DTkAKoqUO
 oLL758FXPhP1gyv9GwdGin9qYN0APWQtX/PehYO9XK9KO+W0trOXVp0sd 0=;
Authentication-Results: mail3-relais-sop.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.00,191,1681164000"; d="scan'208";a="56993248"
Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2023 14:59:24 +0200
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
Subject: [Shepherd] Replaced services remain active in the shadows
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Sextidi 6 Prairial an 231 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?M=C3=A9lisse?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 25 May 2023 14:59:22 +0200
Message-ID: <87h6s0efdh.fsf@HIDDEN>
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
Received-SPF: pass client-ip=192.134.164.104;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail3-relais-sop.national.inria.fr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01,
 T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hello!

A bug we noticed with the Shepherd 0.10.0 on berlin: after
reconfiguring, which registers a =E2=80=9Creplacement=E2=80=9D for services=
 currently
running, restarting said services (with =E2=80=98herd restart=E2=80=99 or s=
imilar, which
is supposed to instate the replacement) happens to leave the old service
behind.

Example: =E2=80=98ssh-daemon=E2=80=99 is marked as stopped because it canno=
t bind to
port 22; indeed, there=E2=80=99s still a service listening on port 22, the =
one
service that should have been replaced.

Likewise for =E2=80=98cuirass-web=E2=80=99 for instance: it=E2=80=99s marke=
d as failing to
start, but in fact it=E2=80=99s running; if you try to kill the =E2=80=98cu=
irass web=E2=80=99
process, you can see it=E2=80=99s respawned and /var/log/messages shows that
very clearly.

What seems to happen is that, in both cases, the registry points to the
new service; =E2=80=98herd status=E2=80=99 & co. look up the service by nam=
e in the
registry, find the new service, and rightfully show that it=E2=80=99s stopp=
ed.
But the old service still exists: it=E2=80=99s no longer in the registry, b=
ut it
handles SIGCHLD, incoming connections on port 22, etc.

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#63717; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 25 May 2023 15:15:01 UTC

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