From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0GMaBzGmSmSdvQAASxT56A (envelope-from ) for ; Thu, 27 Apr 2023 18:43:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8BERBjGmSmQ6bgEAG6o9tA (envelope-from ) for ; Thu, 27 Apr 2023 18:43:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C861C2D0A3 for ; Thu, 27 Apr 2023 18:43:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ps1k8-0006fW-RZ; Thu, 27 Apr 2023 09:33:04 -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 ) id 1ps1k7-0006eu-7O for bug-guix@gnu.org; Thu, 27 Apr 2023 09:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ps1k6-0005dp-UQ for bug-guix@gnu.org; Thu, 27 Apr 2023 09:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ps1k5-0003Lz-PD for bug-guix@gnu.org; Thu, 27 Apr 2023 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62334: Network is unreachable only for recursive pypi import Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 27 Apr 2023 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62334 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Greg Hogan , 62334@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Maxim Cournoyer Received: via spool by 62334-submit@debbugs.gnu.org id=B62334.168260235512851 (code B ref 62334); Thu, 27 Apr 2023 13:33:01 +0000 Received: (at 62334) by debbugs.gnu.org; 27 Apr 2023 13:32:35 +0000 Received: from localhost ([127.0.0.1]:57960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps1je-0003LA-Du for submit@debbugs.gnu.org; Thu, 27 Apr 2023 09:32:34 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:38144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps1jc-0003Kv-JL for 62334@debbugs.gnu.org; Thu, 27 Apr 2023 09:32:33 -0400 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-3f1745b7132so17781945e9.1 for <62334@debbugs.gnu.org>; Thu, 27 Apr 2023 06:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682602346; x=1685194346; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=+3PzdNQK22G3JLuSn0NNw1wiF15iMgRTDQ7tkZxA5qY=; b=Oer1yDuHfhyez723MCrSd5BKT5WCrrxT1lrqW6mRuMCOndwd7yq8azRWHcDFd8Ov/x Tklr7FwQWqhFM3n20mGwd+Esu/sRIrKeThdyIcUElHSO6HNWX7pOS85r1F5vzBLf6vSL H9UzFQGCO/br4fXXvDoeeMVmfmqi62KoY9uFN/110Z8f/NMHdrnn4l4pZhVbNYI1zgDz a3DwX3+MEBg7tieViSA4xBIBUw7A8TOSx0CekRTl0Cgmyxp3aKff29pB3y1N8Ybf3UsD rwhRAxtY6TgHqn3s4eFxrG+qWPuy6jZ8LJG32dYPsYkdNRVTe7d6+3TdKuTmm0KhnlId HcQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682602346; x=1685194346; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+3PzdNQK22G3JLuSn0NNw1wiF15iMgRTDQ7tkZxA5qY=; b=WiIMd5XV5O46NmeSHCvAcQ45IDVvRyTqjRCyYu/qa72NMvwRZA7z9HJ0ngZiGot3XU dV/B+XRkni9rsmM1jA9jFYLxxXHG8mp6Fgwqm5bT/wkXgDvJWCbFeLxDshjQTbw7NYUp KDmzhSZLmu9IDq4SjkO3NI/y9vH4/XX8TTZvrZnUc1PagZx46oZH1nF/BpnKnaOZfw8L gkRu9wNuREH4uX8Eb649zCEUqnprsxmI9Rwe3/mAehdqWxKvO8N+7MlZd3RZU39ws4F6 6AMQdYp587p9twsOp8z9h5JWDsbBQDyZ4M7t+oG2WDkWuAQc+LKkD1v/Kc0qGOq2wYDT JdYg== X-Gm-Message-State: AC+VfDyAI2vHT1T7PKnVIjBr7TD2W1LBRcxH6/U8QS2SKfr7dxrc2iex Eiq0S6IRx6xtaHeItBvdd0I= X-Google-Smtp-Source: ACHHUZ45TkITW/bC4iqwlXPAv2zsQqlDPDALK4wvsEpPKH6usB1EZg5eGC9FVCWKbQtWw/vh+VHFtA== X-Received: by 2002:a05:600c:3115:b0:3f0:a192:44ea with SMTP id g21-20020a05600c311500b003f0a19244eamr1682353wmo.0.1682602346626; Thu, 27 Apr 2023 06:32:26 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id o10-20020a05600c510a00b003ee443bf0c7sm24845688wms.16.2023.04.27.06.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 06:32:26 -0700 (PDT) From: Simon Tournier In-Reply-To: <86ildkb174.fsf@gmail.com> References: <86ildkb174.fsf@gmail.com> Date: Thu, 27 Apr 2023 15:32:24 +0200 Message-ID: <874jp1cuxj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682613808; a=rsa-sha256; cv=none; b=BxINRCAtFBcC+8xmpKe5qTpU/kdRfDeW2XuUenhHC4+028L1OqNs8aWacnBpcqHs+smmWs 8f3BzpM+3nXVkAD7c+5il+wIj8AZJy34s9dy4bjCetSg0E3lhafsUzU3E4l77z4gGFR8cu bKtZy9/Gv/rTMgyVik5Vz23/sj6YpdXoeeqfwZlnzFDrDNmQl7IQqOnJ8mTApuoCWADsWY NkJMjPs2omwcKDo5oleSSjYGhSYbqsOFcx/wFp0XPqs3nm3D07nUob7sbd4RZ+sEYl7egV SVjfRJaOXUgcIgzEB9k7K5jPqfJkHBC9BhiY8eZIn3/MUjR46EDB1PK2pGgCzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Oer1yDuH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682613808; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=+3PzdNQK22G3JLuSn0NNw1wiF15iMgRTDQ7tkZxA5qY=; b=Of77gvHHxL1G8zavxm1JI+Io0PEp6WXJ1sEFkRRTcJ9+MG5zgXfWFXheCCC593s6avDUxI ZqiBjFx+GhwDfk910fjkwsjiYz4dWw6iJnKIUCvWJCztKuMRRL7BIpV8P2fmKkOE7Z2Ye+ KkyQgRGK8uMuTYJhVPc5qFMhLgh88EdXe2cBf7NqNIjGaQay1MAtAQ4kqn3koHYk80HdQu Is0LM9HjNaQk7Pksi9+7r4GGoSu2XEOHgtFGjWbDBhkPbb6hODh5b0lbd9gY5gzkjGpwmQ N+unMqVJn1opeF2F/uTfNrvmxq4M0t/ISeyMy7qHZTUNlYhK899ydmxeYDbJWw== X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Oer1yDuH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Spam: Yes X-Migadu-Spam-Score: 8.80 X-Spam-Score: 8.80 X-Migadu-Queue-Id: C861C2D0A3 X-TUID: dEHCr2o1kWrt --=-=-= Content-Type: text/plain Hi, On mar., 25 avril 2023 at 14:23, Simon Tournier wrote: > Using the diff below, --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=p.patch Content-Description: p.patch diff --git a/guix/build/download.scm b/guix/build/download.scm index db0a39084b..2eee984b31 100644 --- a/guix/build/download.scm +++ b/guix/build/download.scm @@ -409,18 +409,24 @@ (define addresses (socket (addrinfo:fam ai) SOCK_STREAM IPPROTO_IP)))) (catch 'system-error (lambda () - (connect* s (addrinfo:addr ai) timeout) - + (pk 'uri (uri->string uri)) + (pk 'before s (addrinfo:addr ai) timeout) + (pk 'connect* (connect* s (addrinfo:addr ai) timeout)) + (pk 'done) ;; Buffer input and output on this port. (setvbuf s 'block) ;; If we're using a proxy, make a note of that. (when http-proxy (set-http-proxy-port?! s #t)) s) (lambda args + (pk 'failed s) ;; Connection failed, so try one of the other addresses. (close s) + (pk 'closed) (if (null? (cdr addresses)) - (apply throw args) + (begin + (pk 'boum) + (apply throw args)) (loop (cdr addresses)))))))) (define (setup-http-tunnel port uri) @@ -465,6 +471,7 @@ (define https-proxy (let ((proxy (getenv "https_proxy"))) (parameterize ((current-http-proxy https-proxy)) (thunk)) (thunk))))))) + (with-https-proxy (let ((s (open-socket-for-uri uri #:timeout timeout))) ;; Buffer input and output on this port. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > for some mysterious reasons, =E2=80=99connect*=E2= =80=99 throws the > error: > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix import pypi -r cdlib > [...] > Starting download of /tmp/guix-file.Ujg3KY > From https://files.pythonhosted.org/packages/49/01/21337857631a97ab551bb2= e3b5691ed6b1b9586011aa6a5355b9694a37fa/demon-2.0.6.tar.gz... > > ;;; (uri "https://files.pythonhosted.org/packages/49/01/21337857631a97ab5= 51bb2e3b5691ed6b1b9586011aa6a5355b9694a37fa/demon-2.0.6.tar.gz") > > ;;; (before # #(2 2454407487 443) 10) > > ;;; (failed #) > > ;;; (closed) > > ;;; (uri "https://files.pythonhosted.org/packages/49/01/21337857631a97ab5= 51bb2e3b5691ed6b1b9586011aa6a5355b9694a37fa/demon-2.0.6.tar.gz") > > ;;; (before # #(10 55849932267565577100763269369= 304187673 443 0 0) 10) > > ;;; (failed #) > > ;;; (closed) > > ;;; (boum) > In procedure connect: Network is unreachable > --8<---------------cut here---------------end--------------->8--- > > and note it is an issue on our side: > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix import pypi -r demon > ;;; (uri "https://pypi.org/pypi/demon/json") > > ;;; (before # #(2 2539978975 443) #f) > > ;;; (connect* #t) > > ;;; (done) > > Starting download of /tmp/guix-file.G5r627 > From https://files.pythonhosted.org/packages/49/01/21337857631a97ab551bb2= e3b5691ed6b1b9586011aa6a5355b9694a37fa/demon-2.0.6.tar.gz... > > ;;; (uri "https://files.pythonhosted.org/packages/49/01/21337857631a97ab5= 51bb2e3b5691ed6b1b9586011aa6a5355b9694a37fa/demon-2.0.6.tar.gz") > > ;;; (before # #(2 2454407487 443) 10) > > ;;; (connect* #) > > ;;; (done) > =E2=80=A6.6.tar.gz 7KiB 4.2MiB/s 00:00 =E2=96=95=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=8F 100.0% > > Starting download of /tmp/guix-file.4L0Phu > From https://files.pythonhosted.org/packages/96/85/5f9146e3f8d7324d8741cd= 3bea9b99926d5ee75571b9610c661b1bbd06f5/demon-2.0.6-py3-none-any.whl... > > ;;; (uri "https://files.pythonhosted.org/packages/96/85/5f9146e3f8d7324d8= 741cd3bea9b99926d5ee75571b9610c661b1bbd06f5/demon-2.0.6-py3-none-any.whl") > > ;;; (before # #(2 2454407487 443) 10) > > ;;; (connect* #) > > ;;; (done) > =E2=80=A63-none-any.whl 7KiB 5.5MiB/s 00:00 =E2=96=95=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=8F 100.0% > (define-public python-demon > (package > (name "python-demon") > (version "2.0.6") > (source (origin > (method url-fetch) > (uri (pypi-uri "demon" version)) > (sha256 > (base32 > "0nd370yjfb3jirmxd0wa03c75dl7jac4xfsq1rvp5483mxddirb0")))) > (build-system python-build-system) > (propagated-inputs (list python-networkx python-tqdm)) > (home-page "https://github.com/GiulioRossetti/DEMON") > (synopsis "Community Discovery algorithm") > (description "Community Discovery algorithm") > (license license:bsd-2))) > --8<---------------cut here---------------end--------------->8--- > > > Maybe, it is a regression from some recent updates of Guile? Anyone else is able to reproduce the same error? Cheers, simon --=-=-=--