From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 00:13:23 2021 Received: (at submit) by debbugs.gnu.org; 25 Jun 2021 04:13:23 +0000 Received: from localhost ([127.0.0.1]:44447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwdDX-0007zI-09 for submit@debbugs.gnu.org; Fri, 25 Jun 2021 00:13:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:36830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwWxh-0005zK-4T for submit@debbugs.gnu.org; Thu, 24 Jun 2021 17:32:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwWxf-0001LI-6W for bug-guix@gnu.org; Thu, 24 Jun 2021 17:32:36 -0400 Received: from aibo.runbox.com ([91.220.196.211]:39170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwWxc-0008VV-HZ for bug-guix@gnu.org; Thu, 24 Jun 2021 17:32:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.eu; s=selector1; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From; bh=HSAzvU8FBO3BuSm4FhaRVm8cHJjwbHjluSzmlJzsUnI=; b=nVnhUCjUPwi/8OM1H12cwzP6CK IfscAzgD9+MJBZC8xMSuxdK4RFuhkg3VAnFuzhmUijIcfTtevtNFm8DTwmQe/7HQZ7Xm2x7w2/bzc kb0sJ0ouYzW3qC4E/nANPX+7DfxllYW+LsSoztFINPKNngEJ0QN9wkVsW7z8he1RTQMx5+7kFU7UP WW1Tb8soPvr4jPH7MiV8qp5hCSuU/41/YmQPYj8DvDl3U4jbkodKJWSXlxnRYmdAVAO7ZI4N5ofBR RFinL8oydsW4wdS4h2iGPZh6rHMs+/a2LFJRAUezwuxURrvU63VQ/H5pwHL+LMbl8cbwFM3tOM3Eo JRjZdEPw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1lwWxV-0000km-RG for bug-guix@gnu.org; Thu, 24 Jun 2021 23:32:25 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (899906)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1lwWxR-0005Bj-8a for bug-guix@gnu.org; Thu, 24 Jun 2021 23:32:21 +0200 User-agent: mu4e 1.4.15; emacs 27.2 From: ATuin To: "bug-guix@gnu.org" Subject: error with guix download and redirections Date: Thu, 24 Jun 2021 23:32:20 +0200 Message-ID: <87a6nft0d7.fsf@runbox.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.220.196.211; envelope-from=atuin@runbox.eu; helo=aibo.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 25 Jun 2021 00:13:22 -0400 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.4 (--) Hi! Today I tried to reconfigure my system, which involves building the nix derivation, and i got the following error: ``` failed to download "/tmp/guix-file.uteXdE" from "https://nixos.org/releases= /nix/nix-2.3.12/nix-2.3.12.tar.xz" guix download: error: https://nixos.org/releases/nix/nix-2.3.12/nix-2.3.12.= tar.xz: download failed ``` when trying to get the file using `guix download https://nixos.org/releases/nix/nix-2.3.12/nix-2.3.12.tar.xz` it failed in the same way: ``` Starting download of /tmp/guix-file.fhLzo0 - From https://nixos.org/releases/nix/nix-2.3.12/nix-2.3.12.tar.xz... Throw to key `gnutls-error' with args `(# handshake)'. ``` Using wget worked (also using GNUtls) but it gave me 3 times the `Resource temporarily unavailable` error. ``` GnuTLS: Resource temporarily unavailable, try again. GnuTLS: Resource temporarily unavailable, try again. GnuTLS: Resource temporarily unavailable, try again. HTTP request sent, awaiting response... 302 Found Location: https://releases.nixos.org/nix/nix-2.3.12/nix-2.3.12.tar.xz [foll= owing] [...] Saving to: =E2=80=98nix-2.3.12.tar.xz.1=E2=80=99 ``` Seems that the original URL does a redirection into `https://releases.nixos.org/nix/nix-2.3.12/nix-2.3.12.tar.xz`. When running guix download against the final url it works. I guess that guix download is not dealing properly with the redirection or with the GNUtls error GNUTLS_E_AGAIN which seems the be the one causing that error message. Greets, Aitor.