From unknown Tue Jun 17 22:24:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43662: 'guix refresh' can hang during interactions with FTP servers Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Sep 2020 02:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43662 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43662@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.160125944728738 (code B ref -1); Mon, 28 Sep 2020 02:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Sep 2020 02:17:27 +0000 Received: from localhost ([127.0.0.1]:50833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMijG-0007TR-NU for submit@debbugs.gnu.org; Sun, 27 Sep 2020 22:17:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:47382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMijF-0007TK-3Y for submit@debbugs.gnu.org; Sun, 27 Sep 2020 22:17:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMijE-000299-Tu for bug-guix@gnu.org; Sun, 27 Sep 2020 22:17:24 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:42698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMijC-0001KH-Nv for bug-guix@gnu.org; Sun, 27 Sep 2020 22:17:24 -0400 Received: by mail-qt1-x82a.google.com with SMTP id y11so7051588qtn.9 for ; Sun, 27 Sep 2020 19:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=1uuxfj17vdl3m41aYzO61xRZgfRuBWXHQ/+cgIVk49Y=; b=U0hY5E6zQX4j125uyOOjOZiNUiEbN4yeYOQR73peBgH9KEsBBqyVvp58BG0AeSK7c9 fB82eqnL6x8y4yf8cXYBPOcmjOLBxOuha2pB9PmuGGZLD6Y3nacbyyJ+uGPi7OsBY80q +nKikInyjfK0t6w04mXWEVVPGTI2AXbXtuYlKFPcxM9CJgvbIKK25hXZcNA1y+zRBnRR riKbK4VgxNZPDgk4niRoPCsfxBenEvBafSpPLXTrH9xjlEmzDPUmtDNJgcLyGyLJCAqX roxHelQvC4sY1tQavxKvxdUcUQEttYJPezVKgKARU9hPcDd8+TQ9UEK7YWZzY+LOYbaU s8lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=1uuxfj17vdl3m41aYzO61xRZgfRuBWXHQ/+cgIVk49Y=; b=Q0aSvi+otjA+z3m5ZLbmshqHCzEoVPb0uyJMTf1xbV3R2GTBrnroNo4BUE2l7Xe896 FKwTLeC8r1WrhsQxaUGdrjqexsiGOM2dMJEmJ4p55ckR/xCqxaTGqFrIRlgmOkOCP6du KoK8x08xStM1perJfVy/uDuf6Z7wQKnOqoOP2MoziHfvGU+7tD8lgR380E+pgrcWA8lj 7V8x7GzEGCB8zQTklg5WuG06FTaRR3N8QI9DFg9usNm2iiAcXzPAxKSouILCH5dQTZQw jmnhF9prGPVaOWaDfMLNvLMzC+BF7pqvwc8W4gN7snCZnpfJjfvSRdzWE7ZAp6Jnjv7G EU/Q== X-Gm-Message-State: AOAM531CxhvLHfZ9cnrCUUVMbxqhfW3IgS9Gf8DcY+4iPC9hbKZ98S/z CMMZv5yhLLBiIyUMkuiP9UkAq7IVk9Nm2Q== X-Google-Smtp-Source: ABdhPJxsAFXr++7E790boKEvw85TlPC5OWuyqkSU6Nwtk0DabTwRufBHZNFGMJQyRguYwGTj5/F0OQ== X-Received: by 2002:ac8:2c78:: with SMTP id e53mr10712404qta.298.1601259441352; Sun, 27 Sep 2020 19:17:21 -0700 (PDT) Received: from hurd (dsl-149-200.b2b2c.ca. [66.158.149.200]) by smtp.gmail.com with ESMTPSA id o13sm7653850qkm.16.2020.09.27.19.17.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 19:17:20 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 27 Sep 2020 22:18:48 -0400 Message-ID: <87h7rir6d3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Running 'guix refresh gnutls' on master hangs, with no output. Strace suggests that the hang originates from the code attempting to fetch what's in the GNU FTP server: [pid 19343] close(17) = 0 [pid 19343] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 17 [pid 19343] connect(17, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = 0 [pid 19343] sendto(17, "\2\0\0\0\16\0\0\0\17\0\0\0ftp.gnutls.org\0", 27, MSG_NOSIGNAL, NULL, 0) = 27 [pid 19343] poll([{fd=17, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=17, revents=POLLIN}]) [pid 19343] read(17, "\2\0\0\0\1\0\0\0\1\0\0\0\4\0\0\0\16\0\0\0\0\0\0\0", 24) = 24 [pid 19343] read(17, "\331EL7\2ftp.gnupg.org\0", 19) = 19 [pid 19343] close(17) = 0 [pid 19343] socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 17 [pid 19343] connect(17, {sa_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("217.69.76.55")}, 16) = 0 [pid 19343] fstat(17, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 [pid 19343] read(17, "220-Welcome hacker!\r\n", 4096) = 21 [pid 19343] read(17, "220-.\r\n220-This is the FTP server of the GnuPG project. If you are looking for\r\n220-GnuPG change to the \"gcrypt\" directory. Please send problem reports\r\n220-to ftpmaster@gnupg.org after having checked the gnupg-users archives\r\n220-at https://lists.gnupg.org/pipermail/gnupg-users/ for known problems."..., 4096) = 680 [pid 19343] write(17, "USER anonymous\r\n", 16) = 16 [pid 19343] read(17, "331 Send e-mail address as password.\r\n", 4096) = 38 [pid 19343] write(17, "PASS guix@example.com\r\n", 23) = 23 [pid 19343] read(17, "230 User logged in, proceed.\r\n", 4096) = 30 [pid 19343] write(17, "CWD /\r\n", 7) = 7 [pid 19343] read(17, "250 Directory change successful.\r\n", 4096) = 34 [pid 19343] write(17, "CWD gcrypt\r\n", 12) = 12 [pid 19343] read(17, "250-This directory is used as FTP site for GNU crypto software and\r\n250-related stuff.\r\n250-.\r\n250-US laws place restrictions on the export of defense articles, which\r\n250-includes some types of cryptographic software; this is the reason\r\n250-that such software is not available from ftp.gnu.org. It is"..., 4096) = 1106 [pid 19343] write(17, "CWD gnutls\r\n", 12) = 12 [pid 19343] read(17, "250-More information on GnuTLS can be found at http://www.gnutls.org/\r\n250 Directory change successful.\r\n", 4096) = 105 [pid 19343] write(17, "PASV\r\n", 6) = 6 [pid 19343] read(17, Maxim From unknown Tue Jun 17 22:24:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43662: 'guix refresh' can hang during interactions with FTP servers Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43662 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 43662@debbugs.gnu.org Received: via spool by 43662-submit@debbugs.gnu.org id=B43662.160190532016518 (code B ref 43662); Mon, 05 Oct 2020 13:42:01 +0000 Received: (at 43662) by debbugs.gnu.org; 5 Oct 2020 13:42:00 +0000 Received: from localhost ([127.0.0.1]:48352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPQka-0004IM-1c for submit@debbugs.gnu.org; Mon, 05 Oct 2020 09:42:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPQkX-0004I8-9h for 43662@debbugs.gnu.org; Mon, 05 Oct 2020 09:41:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58892) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPQkS-00076c-11; Mon, 05 Oct 2020 09:41:52 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=35298 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPQkR-0000j4-BR; Mon, 05 Oct 2020 09:41:51 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h7rir6d3.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= 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: Mon, 05 Oct 2020 15:41:50 +0200 In-Reply-To: <87h7rir6d3.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 27 Sep 2020 22:18:48 -0400") Message-ID: <875z7ozt5t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Maxim Cournoyer skribis: > [pid 19343] connect(17, {sa_family=3DAF_INET, sin_port=3Dhtons(21), sin_a= ddr=3Dinet_addr("217.69.76.55")}, 16) =3D 0 > [pid 19343] fstat(17, {st_mode=3DS_IFSOCK|0777, st_size=3D0, ...}) =3D 0 > [pid 19343] read(17, "220-Welcome hacker!\r\n", 4096) =3D 21 > [pid 19343] read(17, "220-.\r\n220-This is the FTP server of the GnuPG pr= oject. If you are looking for\r\n220-GnuPG change to the \"gcrypt\" direct= ory. Please send problem reports\r\n220-to ftpmaster@gnupg.org after havin= g checked the gnupg-users archives\r\n220-at https://lists.gnupg.org/piperm= ail/gnupg-users/ for known problems."..., 4096) =3D 680 > [pid 19343] write(17, "USER anonymous\r\n", 16) =3D 16 > [pid 19343] read(17, "331 Send e-mail address as password.\r\n", 4096) = =3D 38 > [pid 19343] write(17, "PASS guix@example.com\r\n", 23) =3D 23 > [pid 19343] read(17, "230 User logged in, proceed.\r\n", 4096) =3D 30 > [pid 19343] write(17, "CWD /\r\n", 7) =3D 7 > [pid 19343] read(17, "250 Directory change successful.\r\n", 4096) =3D 34 > [pid 19343] write(17, "CWD gcrypt\r\n", 12) =3D 12 > [pid 19343] read(17, "250-This directory is used as FTP site for GNU cryp= to software and\r\n250-related stuff.\r\n250-.\r\n250-US laws place restric= tions on the export of defense articles, which\r\n250-includes some types o= f cryptographic software; this is the reason\r\n250-that such software is n= ot available from ftp.gnu.org. It is"..., 4096) =3D 1106 > [pid 19343] write(17, "CWD gnutls\r\n", 12) =3D 12 > [pid 19343] read(17, "250-More information on GnuTLS can be found at http= ://www.gnutls.org/\r\n250 Directory change successful.\r\n", 4096) =3D 105 > [pid 19343] write(17, "PASV\r\n", 6) =3D 6 > [pid 19343] read(17, It=E2=80=99s a bug in (guix ftp-client), not specifically in =E2=80=98guix = refresh=E2=80=99. Now, we could work around it by arranging to use the HTTPS updater instead of =E2=80=98gnu-ftp=E2=80=99 for packages hosted at gnupg.org. Thanks, Ludo=E2=80=99.