GNU bug report logs - #69442
Discovered substitute servers not removed when they go offline

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 <ludo@HIDDEN>; dated Tue, 27 Feb 2024 23:41:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
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; 27 Feb 2024 23:40:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 27 18:40:06 2024
Received: from localhost ([127.0.0.1]:37398 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rf73N-0002s1-QG
	for submit <at> debbugs.gnu.org; Tue, 27 Feb 2024 18:40:06 -0500
Received: from lists.gnu.org ([209.51.188.17]:46570)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1rf73K-0002r1-Td
 for submit <at> debbugs.gnu.org; Tue, 27 Feb 2024 18:40:03 -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 <ludo@HIDDEN>) id 1rf6Vy-0004DZ-3b
 for bug-guix@HIDDEN; Tue, 27 Feb 2024 18:05:34 -0500
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 1rf6Vw-0002xw-3p
 for bug-guix@HIDDEN; Tue, 27 Feb 2024 18:05:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=THWrwI6t0A8lh4xrMxgw/fzzOvkasHlCK8IOsg+GRNo=; b=SegMJ+QXT4h4Q/
 kmV25cKiWKZhIoYMaJhz1nONCZjOhAC2hzyRNnNp9AJEu/9BLfzFRfI3bBrC94HYPN0sJ0H4tKiI3
 4gsruGgeM636BlZCi+c+GLsczdZIGFwTrT5BmfgnEp1eu57mynbLwhZi5YL6JKacrMoC9BLFjnJae
 Eh5hJY4HTVWqnJfZ0r/FbI3sztsvrOvUM8C+EAQvYgUI4jjZC7weOoUVuQXK8W1ML8iSDE89o86qB
 /lzkoOa3lBPRLthlqDSYodC03ShetlfejM+54tDuZyuDlh/V4mIze35clXvIy/td4TxbzOyblpWA+
 EGIOYKs+fiWHbupPeFAA==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Discovered substitute servers not removed when they go offline
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Nonidi 9 =?utf-8?Q?Vent=C3=B4se?= an 232 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du Marsault
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: Wed, 28 Feb 2024 00:05:29 +0100
Message-ID: <871q8xh5ja.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
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: 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: -3.3 (---)

Hello,

Substitute servers discovered over Avahi don=E2=80=99t disappear when they =
go
off-line: they remain in /var/guix/discover/publish =E2=80=9Cforever=E2=80=
=9D (?) and
=E2=80=98guix substitute=E2=80=99 keeps trying to connect to them, in vain.

The problem AIUI is that the mDNS records are still valid according to
their TTL and thus cached by avahi-daemon; we can only notice that
things go wrong when trying to resolve:

--8<---------------cut here---------------start------------->8---
$ avahi-browse _guix_publish._tcp -r
+ enp0s31f6 IPv6 guix-publish-xyz                            _guix_publish.=
_tcp   local
+ enp0s31f6 IPv4 guix-publish-xyz                            _guix_publish.=
_tcp   local
Failed to resolve service 'guix-publish-xyz' of type '_guix_publish._tcp' i=
n domain 'local': Timeout reached
Failed to resolve service 'guix-publish-xyz' of type '_guix_publish._tcp' i=
n domain 'local': Timeout reached
--8<---------------cut here---------------end--------------->8---

(One way to reproduce that is to =E2=80=98pkill -9 avahi-daemon=E2=80=99 on=
 the machine
that advertises the service.)

Problem is that =E2=80=98avahi-browse-service-thread=E2=80=99 attempts to r=
esolve
services once for all; thus it never notices that services went away, at
least not until some long TTL has expired.

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#69442; 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, 4 Apr 2024 21:45:02 UTC

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