GNU bug report logs

#69442 Discovered substitute servers not removed when they go offline

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

Received: (at submit) by debbugs.gnu.org; 27 Feb 2024 23:40:06 +0000
From debbugs-submit-bounces@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@debbugs.gnu.org>)
	id 1rf73N-0002s1-QG
	for submit@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@gnu.org>) id 1rf73K-0002r1-Td
 for submit@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@gnu.org>) id 1rf6Vy-0004DZ-3b
 for bug-guix@gnu.org; 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@gnu.org>) id 1rf6Vw-0002xw-3p
 for bug-guix@gnu.org; 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: Ludovic Courtès <ludo@gnu.org>
To: bug-guix@gnu.org
Subject: Discovered substitute servers not removed when they go offline
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Nonidi 9 Ventôse an 232 de la
 Révolution, 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@inria.fr>
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@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@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
Hello,

Substitute servers discovered over Avahi don’t disappear when they go
off-line: they remain in /var/guix/discover/publish “forever” (?) and
‘guix substitute’ 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' in domain 'local': Timeout reached
Failed to resolve service 'guix-publish-xyz' of type '_guix_publish._tcp' in domain 'local': Timeout reached
--8<---------------cut here---------------end--------------->8---

(One way to reproduce that is to ‘pkill -9 avahi-daemon’ on the machine
that advertises the service.)

Problem is that ‘avahi-browse-service-thread’ attempts to resolve
services once for all; thus it never notices that services went away, at
least not until some long TTL has expired.

Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 7 09:03:08 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.