From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 08 20:37:05 2020 Received: (at submit) by debbugs.gnu.org; 9 Jul 2020 00:37:05 +0000 Received: from localhost ([127.0.0.1]:39456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtKYi-0007aw-S8 for submit@debbugs.gnu.org; Wed, 08 Jul 2020 20:37:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:49194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtKYh-0007ap-7y for submit@debbugs.gnu.org; Wed, 08 Jul 2020 20:37:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtKYg-0007Nt-Tr for bug-guix@gnu.org; Wed, 08 Jul 2020 20:37:02 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:44903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtKYe-00014v-Rt for bug-guix@gnu.org; Wed, 08 Jul 2020 20:37:02 -0400 Received: by mail-wr1-x42f.google.com with SMTP id b6so441291wrs.11 for ; Wed, 08 Jul 2020 17:37:00 -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=sJu0UpMV7aNu3Aaiq75dRJPkMixywohKqEJHOzBqNXo=; b=deGDE44VfxxBZCevxOyuGpY1y72Sa1YWUqGQw9BOTfBqlzxtzkeqx459P46FFztR6f yrdxFg0xMVNby1TtkQI8DIsdAdy426W52Kpkbhw+hY+Zv+WQlA0BQNVSCjutnFn53ULi RkK7sZ2QF61OTdDCz0BQfE9nJf9uUyK+9jIYX0BC6IFATDhFKqMhIE0SMSM5HfVFFGJp N73WugEAm46XqwlGRQC8UZhU/iRXchqxL8y6bOpXmjG6HhNM2W//umLRFC1IWtBPks8H nP8psyFcVbLTpeBdNn0XzB7R28Hqf5KaXcusNGBlrrZJ7UY+I6XDisoEksAC/fHSEIFF bHtA== 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=sJu0UpMV7aNu3Aaiq75dRJPkMixywohKqEJHOzBqNXo=; b=OL6R/ESSa0ss2CRbceFEKCeIiMqbrxy42FhhE6uanYnRH36nIqybUOOy8rKV/DSQHM LBLK82kI26F6y+bvvcTT/4aKaf4Ao4QXpy7b9cCQdt53LLoxKQj7N1dsCfXv1FxBPcdH 5XQmMQyC+UMMHl06ifGJK45tXH5trEV6HBgxNnzihDllQx9PtP46kvYUKBDXaf3Uvp5u SJKNR9PT6Cy6W2H9pP3Fh+fnbjQsQP9XsvYSjEHgXKaluZodu9zXNeoCD2JooIC/4yie T7G/q/y/JPIgJjJ+WtW91Hm1cS+icm4GuQwThXE3/zdCSDfCVGPmITfav0T+yge51Qdg I0Bw== X-Gm-Message-State: AOAM530AjxMOGSKmMHP2vt9cXwz4WMoVnHlsvtE4ND+tT5Zv93xQmez6 tu1cwyQZWsXwdB66GEhNSb4pBLocazM= X-Google-Smtp-Source: ABdhPJyR5wSioW1IM0cJW498T7diY7xvm7VSJD7IIBOgf2MVUT75jStdtBqHZ8dcw0w/PbvwrKeYlw== X-Received: by 2002:adf:df10:: with SMTP id y16mr61309628wrl.225.1594255018245; Wed, 08 Jul 2020 17:36:58 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id m10sm2659789wru.4.2020.07.08.17.36.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 17:36:57 -0700 (PDT) From: zimoun To: bug-guix@gnu.org Subject: SWH fallback fails (git-fetch) Date: Thu, 09 Jul 2020 02:36:55 +0200 Message-ID: <86imexcymw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42f.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: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, PDS_BTC_ID=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Dear, I think the fallback with SWH is broken. Here an example to reproduce. --88--- cd /tmp/ tar -xvf $(guix build -S hello) cd hello-2.10 git init git add * git commit -m 'init' --8 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Dear, I think the fallback with SWH is broken. Here an example to reproduce. --8<---------------cut here---------------start------------->8--- cd /tmp/ tar -xvf $(guix build -S hello) cd hello-2.10 git init git add * git commit -m 'init' --8<---------------cut here---------------end--------------->8--- Then I push this fresh repo to my own GitHub account. Because it is easy to switch between public and private state option, which mimics upstream loss. Let create the well-known "hello" recipe, which is simply a copy/paste of (gnu packages base). --8<---------------cut here---------------start------------->8--- (define-module (hello) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix git-download) #:use-module (guix licenses)) (define-public hi (package (name "hi") (version "2.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/zimoun/hello-example.git") (commit "e1eefd033b8a2c4c81babc6fde08ebb116c6abb8"))) (sha256 (base32 "1im1gglfm4k10bh4mdaqzmx3lm3kivnsmxrvl6vyvmfqqzljq75l")))) (build-system gnu-build-system) (synopsis "Hello, GNU world: An example GNU package") (description "GNU Hello prints the message \"Hello, world!\" and then exits. It serves as an example of standard GNU coding practices. As such, it supports command-line arguments, multiple languages, and so on.") (home-page "https://www.gnu.org/software/hello/") (license gpl3+))) --8<---------------cut here---------------end--------------->8--- For the sanity of the test, "guix build -L . hi" builds correctly and returns the item: /gnu/store/jn8d031zx4znxy7s5zhj4dbr6xjsfq9v-hi-2.10 with Guix b7249aa. The upstream source is archived on SWH with: guix lint -L . hi -c archival see https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https://github.com/zimoun/hello-example.git and the logs in https://archive.softwareheritage.org/save/#requests Note that running again "lint -c archival" returns nothing, which means that the linter finds it on SWH, I guess. Well, I have not checked what 'lookup-content' returns yet. However, I filtered the first ~2000+ 'packages-with-sources' with 'lookup-content' and all the 'git-fetch' sources are returned #f, and some 'url-fetch' not. Another story, another thread. :-) Let clean the previous builds and downloads: guix gc -D $(guix gc --list-dead | grep -E '(hi-2|git-checkout)') And now let turn off upstream and so the maybe bug: --8<---------------cut here---------------start------------->8--- guix build -L . hi The following derivations will be built: /gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv building /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' Initialized empty Git repository in /gnu/store/884nsva9r8wkp40kbqyvpj1ad57jc5dd-git-checkout/.git/ fatal: could not read Username for 'https://github.com': No such device or address Failed to do a shallow fetch; retrying a full fetch... fatal: could not read Username for 'https://github.com': No such device or address git-fetch: '/gnu/store/i2pkspl2vjvas0q85hw46y2li06rcmcg-git-minimal-2.26.2/bin/git fetch origin' failed with exit code 128 Trying content-addressed mirror at berlin.guixsd.org... Trying content-addressed mirror at berlin.guixsd.org... Trying to download from Software Heritage... Backtrace: 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") In ./guix/swh.scm: 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) In web/client.scm: 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) 231:6 0 (tls-wrap # _ # _) web/client.scm:231:6: In procedure tls-wrap: Error while printing exception. builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv' failed with exit code 1 build of /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv failed View build log at '/var/log/guix/drvs/jn/6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv.bz2'. cannot build derivation `/gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv' failed --8<---------------cut here---------------end--------------->8--- Let me know if moreinfo are required. All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 08 21:53:08 2020 Received: (at 42286) by debbugs.gnu.org; 9 Jul 2020 01:53:08 +0000 Received: from localhost ([127.0.0.1]:39466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtLkJ-0000ub-Qs for submit@debbugs.gnu.org; Wed, 08 Jul 2020 21:53:08 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:53195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtLkI-0000u6-Fd for 42286@debbugs.gnu.org; Wed, 08 Jul 2020 21:53:06 -0400 Received: by mail-wm1-f43.google.com with SMTP id q15so241210wmj.2 for <42286@debbugs.gnu.org>; Wed, 08 Jul 2020 18:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=CxXcFWhnW1DrgS1syjmkFL8lU9wQsUNGgGu1KthkFJ0=; b=l371GyYX3WDK6LjPYgSV7vkiIXUT2Ni48/IEeUjPCf8or+WNLpQDH00zsI+wF9q4dF bwgDTy3UBMfOmkIECxRKdhP4ngmgATRIH8jFXeaqO1p1Uqt3hC5iT1nqKHewg+RodTrh l8XLyXqkMXDqruwv4rX4na0nhEuYdAyly8zo5/bi+8x6xxjIwYjCqiAaOjfVzYKO+bP/ Ntf+8zhJwJUWhkiuRaGw6koEqr3H0lWa2T7QD9yNZ3CAZAD+srZsJs9JtNue3z6wdGcE +xaLq9VzkdOOzr9RDRkPLkbNrs2SjRuYP0+R803aeVqTRNrwtlcs0+5cJOgmL6cHXd1v EQdw== 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:in-reply-to:references:date :message-id:mime-version; bh=CxXcFWhnW1DrgS1syjmkFL8lU9wQsUNGgGu1KthkFJ0=; b=WHDJF9bBzN8u8b0wayNk5cr3mFWQFYvwdODY03W3RHnsJHF6uEx/n2MkegY0dkUOZx MNW37LaQMD+6qkF9dny4Cz7wO+H/MnD9GiOg5zlxoIm9qPyiDbkejVBuPoxkeiNpKFTO u3Ma9gHHJx8H+IzxZ7O8XVNMS0XeKHKEBnAix+xZqP5IiSXHm+JHkd3s3WomHM1/mws1 OX6yfZtu4FCKfE2PfT/Pwiam1DA5CSE9lF7If+VYSltTe8yxzLoU2dz0KhSYZVG2HmDC kQ5AOpyZqNDbiw3D1dCytWkbyl9YBcQRbN0m265kgElOlygKvxfxmakN3RdBLGr2MI3+ vKew== X-Gm-Message-State: AOAM531Vn2jecTcDiYaDV265Wo7kGMHpv8693By40adAG43Q9zfuTzbP yMOrali2GGH9g0OsqdpydRYKwZf/Npc= X-Google-Smtp-Source: ABdhPJzzqYQSUXu+Aqo0Qy61RSigdS77runiQf8tLBJl+tCJyFSjsWIN05FhDRgA8A4B7wfodwRrQg== X-Received: by 2002:a1c:5418:: with SMTP id i24mr11377844wmb.47.1594259579970; Wed, 08 Jul 2020 18:52:59 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 69sm2687646wma.16.2020.07.08.18.52.58 for <42286@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 18:52:59 -0700 (PDT) From: zimoun To: 42286@debbugs.gnu.org Subject: swh-download with https->http In-Reply-To: <86imexcymw.fsf@gmail.com> References: <86imexcymw.fsf@gmail.com> Date: Thu, 09 Jul 2020 03:52:58 +0200 Message-ID: <86eeplcv45.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42286 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: -1.0 (-) On Thu, 09 Jul 2020 at 02:36, zimoun wrote: > --8<---------------cut here---------------start------------->8--- > guix build -L . hi [...] > Trying to download from Software Heritage... > Backtrace: > 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") > In ./guix/swh.scm: > 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) > 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) > In web/client.scm: > 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) > 231:6 0 (tls-wrap # _ # _) > > web/client.scm:231:6: In procedure tls-wrap: > Error while printing exception. [...] > --8<---------------cut here---------------end--------------->8--- To avoid, this error which should be a missing certificate, I switch to 'http:' instead of 'https:' in %swh-base-url. The error is then: --8<---------------cut here---------------start------------->8--- Trying to download from Software Heritage... Backtrace: 2 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") In ./guix/swh.scm: 573:13 1 (swh-download "https://github.com/zimoun/hello-example?" ?) 243:16 0 (call "http://archive.softwareheritage.org/api/1/revis?" ?) ./guix/swh.scm:243:16: In procedure call: Throw to key `swh-error' with args `("http://archive.softwareheritage.org/api/1/revision/e1eefd033b8a2c4c81babc6fde08ebb116c6abb8/" # #< version: (1 . 1) code: 302 reason-phrase: "Found" headers: ((date . #) (server . "Varnish") (x-varnish . "19881791") (location . #< scheme: https userinfo: #f host: "archive.softwareheritage.org" port: #f path: "/api/1/revision/e1eefd033b8a2c4c81babc6fde08ebb116c6abb8/" query: #f fragment: #f>) (content-length . 0) (connection close)) port: #>)'. builder for `/gnu/store/9f6648zb0p9z6hxr31wz3d7fm7ndcxzx-git-checkout.drv' failed with exit code 1 --8<---------------cut here---------------end--------------->8--- Because I hit the rate limit, I need to wait at least one hour... Follow-ups soon. :-) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 10:31:33 2020 Received: (at control) by debbugs.gnu.org; 9 Jul 2020 14:31:33 +0000 Received: from localhost ([127.0.0.1]:41448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtXaG-0003At-Pd for submit@debbugs.gnu.org; Thu, 09 Jul 2020 10:31:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtXaF-0003Ae-JA for control@debbugs.gnu.org; Thu, 09 Jul 2020 10:31:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57437) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtXaA-0001jd-AD for control@debbugs.gnu.org; Thu, 09 Jul 2020 10:31:26 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34466 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jtXa8-0002xB-Vk for control@debbugs.gnu.org; Thu, 09 Jul 2020 10:31:25 -0400 Date: Thu, 09 Jul 2020 16:31:23 +0200 Message-Id: <875zawbw04.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #42286 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) severity 42286 important quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 14:20:42 2020 Received: (at 42286) by debbugs.gnu.org; 9 Jul 2020 18:20:42 +0000 Received: from localhost ([127.0.0.1]:41667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtbA2-0002Ud-57 for submit@debbugs.gnu.org; Thu, 09 Jul 2020 14:20:42 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:36020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtbA0-0002UQ-13 for 42286@debbugs.gnu.org; Thu, 09 Jul 2020 14:20:40 -0400 Received: by mail-qv1-f43.google.com with SMTP id h18so1397068qvl.3 for <42286@debbugs.gnu.org>; Thu, 09 Jul 2020 11:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ExIRKTUhENiyLuwr3kogbED/VlsbwTFGZRjH6xPQtLw=; b=rDkV08f+wLIG63tNkCPpBYZntU0FmVGR/dBtI2G3RwAc7c0G7HDTKs4rra/D2ypKtb 0Wfs8gLP/PARvL+rznbtKB6ODRkUNLchVcIVc/hMoQJm2t3+BD5MjfAYajgDyY+qctML tzdu4JRqqeGgr1GruXZ1HwOdGqzzzXWEj+zKkPcu/4XYlXRnpenqiQAUJCWQtMphevJg Bo+ivi9BfDWyhL7lXn8FwxkxpumH3KPK+RSLg+6RTsnWWHAWhmHzEXfGoTzIPCWRYPHc v6JdPMwjttQgN6UD+WCRFCY5J6FenNwQ9Z6zyMMBbU0SoFUJ4x6droeEHilmKulYwi70 55jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ExIRKTUhENiyLuwr3kogbED/VlsbwTFGZRjH6xPQtLw=; b=Mg5EGSSnORAE2NP2GOMturpgDq9wCz+A5OF8yvcxDoLQyxmtSW44ojX/UetW4Ervea SuOCUcAS50ayzkPayX7EpzU8gxNygma5DT7EIACByGgCT3C4Wrx/OGbqFqd7MLA5lCXI 6Y8XFJV0HgyvFFna8rtatvPTu1/GLByKYPADYCzfUad/HKxbmycwIHxVaLtxf5jKsiA7 ZO5qJrj5WD/yQ6HJGx7qbzuLPCicIhasAnOpM3uM6YzLmZsu7qOdtSlPIV6TBArYhktA y2GKcC+LeU3JMbxgMxcY4Oj1FY7Y3oPbfyIJiUjPJMoSJMESzO9w7EWcihQnU44WukS6 Yb6g== X-Gm-Message-State: AOAM530iGJ25xgZV+1e+hrkNZSe9hmoBNPrtuex7Ma12wUq03wUIlxJK J7uuYPR9KuruvQ9T+ygJboUxK6QboaErgonAFoIx4L+1dRQ= X-Google-Smtp-Source: ABdhPJxYflHpk3RMyTH8MRm9VJ003na9+rZeOL/cU0zJKmBt8X7D+tig8f3X/e6Le7jY8N8usTxNnGCV7seeTp6anSE= X-Received: by 2002:a05:6214:5a3:: with SMTP id by3mr63784784qvb.201.1594318834090; Thu, 09 Jul 2020 11:20:34 -0700 (PDT) MIME-Version: 1.0 References: <86imexcymw.fsf@gmail.com> In-Reply-To: <86imexcymw.fsf@gmail.com> From: zimoun Date: Thu, 9 Jul 2020 20:20:23 +0200 Message-ID: Subject: Re: bug#42286: SWH fallback fails (git-fetch) To: 42286@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 42286 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: -0.5 (/) On Thu, 9 Jul 2020 at 02:39, zimoun wrote: Well, "swh-download" perfectly works directly from the REPL. > --8<---------------cut here---------------start------------->8--- > guix build -L . hi [...] > Trying to download from Software Heritage... > Backtrace: > 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") > In ./guix/swh.scm: > 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) > 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) > In web/client.scm: > 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) > 231:6 0 (tls-wrap # _ # _) > > web/client.scm:231:6: In procedure tls-wrap: > --8<---------------cut here---------------end--------------->8--- The error is definitively something related to TLS and the gexp. In (guix git-download) "git-fetch", the "define build" returns a gexp and here something is missing, even if the extension gnutls (module-ref (resolve-interface '(gnu packages tls)) 'gnutls) is provided. Hum, I am not sure to understand what. BTW, if in "git-fetch" from (guix git), I add these lines: --8<---------------cut here---------------start------------->8--- (setenv "GIT_SSL_NO_VERIFY" "true") (format #t "git-fetch~%") (http-get "https://archive.softwareheritage.org/api/1/content/sha256:31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b/") (format #t "ok~%") (mkdir-p directory) --8<---------------cut here---------------end--------------->8--- Then I also hit: --8<---------------cut here---------------start------------->8--- The following derivations will be built: /gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv building /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' git-fetch Backtrace: 4 (primitive-load "/gnu/store/gcr6v6p6c5gwr4l6xzqcy6wln33?") In ice-9/eval.scm: 293:34 3 (_ #) In ./guix/build/git.scm: 44:2 2 (git-fetch "https://github.com/zimoun/hello-example.git" ?) In web/client.scm: 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) 231:6 0 (tls-wrap # _ # _) web/client.scm:231:6: In procedure tls-wrap: Error while printing exception. builder for `/gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv' failed with exit code 1 build of /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv failed View build log at '/var/log/guix/drvs/cv/p65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv.bz2'. cannot build derivation `/gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv' failed --8<---------------cut here---------------end--------------->8--- Then I have tried to turn off the certificate verification with "#:verify-certification #f" for example in "vault-fetch" or "call" used by "define-query" but nothing works. Well, I am a bit circumspect. Therefore, I am waiting for a hint or the fix. :-) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 18:24:20 2020 Received: (at 42286-done) by debbugs.gnu.org; 9 Jul 2020 22:24:20 +0000 Received: from localhost ([127.0.0.1]:41828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtexo-0008Vi-71 for submit@debbugs.gnu.org; Thu, 09 Jul 2020 18:24:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtexl-0008VW-R0 for 42286-done@debbugs.gnu.org; Thu, 09 Jul 2020 18:24:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37707) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtexg-0005Xi-Kc; Thu, 09 Jul 2020 18:24:12 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35946 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jtexf-000760-DX; Thu, 09 Jul 2020 18:24:11 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#42286: SWH fallback fails (git-fetch) References: <86imexcymw.fsf@gmail.com> Date: Fri, 10 Jul 2020 00:24:10 +0200 In-Reply-To: <86imexcymw.fsf@gmail.com> (zimoun's message of "Thu, 09 Jul 2020 02:36:55 +0200") Message-ID: <87o8oo9vjp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) 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: 42286-done Cc: 42286-done@debbugs.gnu.org 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! zimoun skribis: > Trying to download from Software Heritage... > Backtrace: > 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") > In ./guix/swh.scm: > 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) > 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) > In web/client.scm: > 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) > 231:6 0 (tls-wrap # _ # _) > > web/client.scm:231:6: In procedure tls-wrap: > Error while printing exception. > builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv= ' failed with exit code 1 Should be fixed with commit a7696b9733d4ede9817a0a0accb5ce5b85d9a2d3. Let me know if anything=E2=80=99s amiss. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 23:18:36 2020 Received: (at 42286-done) by debbugs.gnu.org; 10 Jul 2020 03:18:36 +0000 Received: from localhost ([127.0.0.1]:42000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtjYa-0002tP-A1 for submit@debbugs.gnu.org; Thu, 09 Jul 2020 23:18:36 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:36491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtjYX-0002tC-AF for 42286-done@debbugs.gnu.org; Thu, 09 Jul 2020 23:18:35 -0400 Received: by mail-wr1-f51.google.com with SMTP id k6so4368906wrn.3 for <42286-done@debbugs.gnu.org>; Thu, 09 Jul 2020 20:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=sZH12x82BOYsrU18BWK4DIq7Yo2qAK/0G4LFBkcYHUI=; b=fjBbMIUpkAP7qnuNMFGMrJ8f7U+ml4iCLkH7w36oltdmaCf98NXBPY9nv8CH/HRHTl nytELVnB67o1OWVXfPsDVqImDo2D+HzG0Ytu9RVZ9O3skE4H7L4voamRDuByqrkRB9El oDbfLZ2NxXhRemQRIPICp6FuZVwi9glhm4A2gXfb/sgrVZ5m2evBD32yf0GOdCgjeiSm IQdmP0/3vWrjU9r5vgrBLIzNrEgxobjNQSnkReEcQfWJCRmryG8XeIqb0IItPbYJdQPT AKsXsxXnxSh4aQIe12WTLyF/AwqDtg/ifGcABjtW93d97X5yBda8k7z8DMl0/nN79LHi sx3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=sZH12x82BOYsrU18BWK4DIq7Yo2qAK/0G4LFBkcYHUI=; b=isRvScFjwhM3drsrDvP9t/cPiC4aiIXPIuDY844kVYfmV+k63QRRwK4gVy/2ikjVf4 gWxMBUifKX6GI92s2UANnFzn6dB+vUct2EJetgTIsOvK2IcgtXWqUXo9TFsXwttzcts+ VzB12g3aR7sLvHT0LkJibVUii7xaPJ6YadKXJ6G0MtnVCAN/9UvI+mXiHiB9zLs88KQ/ gu/XIYqA1OMhtBvwOoUK+zKzWYZlwSE1lYwWbHAvCt2MaAxnj9A6SXbukJtAdRYbA4EH vrpuAptS1NQxN5JNtLM3zdtAa4UWRgNmqnU4tbWzHE87fNHcJO8y1VqksZAbtAQb++YL xMYw== X-Gm-Message-State: AOAM533Di38YKO6GFJcNcb8VHGphREtEAJcbBrzsutJQF4Zc8KdzBbxE M6Nib53O8HkfVw1+1mj00g4V4X5GoYU= X-Google-Smtp-Source: ABdhPJzw7fyqJTem7ifYr6xr7eTNgxrJVs6dv99AQqjRro8UiJehdzgg+qQo4wYz1/Zpvn7Kys406g== X-Received: by 2002:a5d:4591:: with SMTP id p17mr66189090wrq.343.1594351107221; Thu, 09 Jul 2020 20:18:27 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z10sm8214952wrm.21.2020.07.09.20.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 20:18:26 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#42286: SWH fallback fails (git-fetch) In-Reply-To: <87o8oo9vjp.fsf@gnu.org> References: <86imexcymw.fsf@gmail.com> <87o8oo9vjp.fsf@gnu.org> Date: Fri, 10 Jul 2020 05:18:25 +0200 Message-ID: <86sge0awhq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42286-done Cc: 42286-done@debbugs.gnu.org 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: -1.0 (-) Hi, On Fri, 10 Jul 2020 at 00:24, Ludovic Court=C3=A8s wrote: > Hi! > > zimoun skribis: > >> Trying to download from Software Heritage... >> Backtrace: >> 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") >> In ./guix/swh.scm: >> 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) >> 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) >> In web/client.scm: >> 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) >> 231:6 0 (tls-wrap # _ # _) >> >> web/client.scm:231:6: In procedure tls-wrap: >> Error while printing exception. >> builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.dr= v' failed with exit code 1 > > Should be fixed with commit a7696b9733d4ede9817a0a0accb5ce5b85d9a2d3. > Let me know if anything=E2=80=99s amiss. Cool! Works. :-) I was almost there. :-) The missing trick was because the Guile bug I was not aware and so the new "http-get*". Is it worth to add the test in guix-build.sh? All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 04:07:46 2020 Received: (at 42286-done) by debbugs.gnu.org; 10 Jul 2020 08:07:46 +0000 Received: from localhost ([127.0.0.1]:42240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jto4Q-0001bx-A2 for submit@debbugs.gnu.org; Fri, 10 Jul 2020 04:07:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jto4O-0001bj-BU for 42286-done@debbugs.gnu.org; Fri, 10 Jul 2020 04:07:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46349) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jto4J-0002Qe-5o; Fri, 10 Jul 2020 04:07:39 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=55874 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jto4F-00054K-8o; Fri, 10 Jul 2020 04:07:38 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#42286: SWH fallback fails (git-fetch) References: <86imexcymw.fsf@gmail.com> <87o8oo9vjp.fsf@gnu.org> <86sge0awhq.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Messidor an 228 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: Fri, 10 Jul 2020 10:07:33 +0200 In-Reply-To: <86sge0awhq.fsf@gmail.com> (zimoun's message of "Fri, 10 Jul 2020 05:18:25 +0200") Message-ID: <87365zaj3u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) 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: 42286-done Cc: 42286-done@debbugs.gnu.org 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! zimoun skribis: > On Fri, 10 Jul 2020 at 00:24, Ludovic Court=C3=A8s wrote: >> Hi! >> >> zimoun skribis: >> >>> Trying to download from Software Heritage... >>> Backtrace: >>> 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") >>> In ./guix/swh.scm: >>> 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) >>> 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) >>> In web/client.scm: >>> 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) >>> 231:6 0 (tls-wrap # _ # _) >>> >>> web/client.scm:231:6: In procedure tls-wrap: >>> Error while printing exception. >>> builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.d= rv' failed with exit code 1 >> >> Should be fixed with commit a7696b9733d4ede9817a0a0accb5ce5b85d9a2d3. >> Let me know if anything=E2=80=99s amiss. > > Cool! Works. :-) > > I was almost there. :-) The missing trick was because the Guile bug > > I was not aware and so the new "http-get*". Yeah. :-) > Is it worth to add the test in guix-build.sh? We don=E2=80=99t add tests that depend on external services, so we can=E2= =80=99t really do that. Or we would need to mock the original server, SWH, etc. but that seems tricky. Thanks, Ludo=E2=80=99. From unknown Thu Jun 19 14:10:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 07 Aug 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator