unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ada Stevenson <adanskana@gmail.com>
To: Lars Bilke <lars.bilke@ufz.de>
Cc: "Ludovic Courtès" <ludo@gnu.org>, "Guix Devel" <guix-devel@gnu.org>
Subject: Re: Error handling when 'guix substitute' dies
Date: Tue, 02 Apr 2024 16:45:50 +0800	[thread overview]
Message-ID: <EC4BBS.7K25BSTP3E3L1@gmail.com> (raw)
In-Reply-To: <E68CF7F4-923B-44FC-B42C-F255E310EF1F@ufz.de>

[-- Attachment #1: Type: text/plain, Size: 2882 bytes --]

Hi Lars,

On Tue, Apr 2 2024 at 10:42:18 AM +0200, Lars Bilke <lars.bilke@ufz.de> 
wrote:
> Dear Ludo,
> 
> I ran the command in a loop on 4 machines for around 2 hours doing 1 
> request per machine per second but no errors occured...
I did a similar thing. No errors at all.
However, I was reconfiguring my system at uni yesterday after the 
gnome-team merge and it was happening a lot! I wonder if it's something 
to do with the server? I don't know enough about networking to really 
theorise, haha.
> 
> On 29 Mar 2024, at 16:10, Ludovic Courtès wrote:
> 
>>  Hello,
>> 
>>  Ada Stevenson <adanskana@gmail.com <mailto:adanskana@gmail.com>> 
>> skribis:
>> 
>>>>  diff --git a/guix/scripts/substitute.scm 
>>>> b/guix/scripts/substitute.scm
>>>>  index 37cd08e289..3af0bf0019 100755
>>>>  --- a/guix/scripts/substitute.scm
>>>>  +++ b/guix/scripts/substitute.scm
>>>>  @@ -494,7 +494,9 @@ (define* (download-nar narinfo destination
>>>>      (define (try-fetch choices)
>>>>        (match choices
>>>>          (((uri compression file-size) rest ...)
>>>>  -       (guard (c ((and (pair? rest) (http-get-error? c))
>>>>  +       (guard (c ((and (pair? rest)
>>>>  +                       (or (http-get-error? c)
>>>>  +                           (network-error? c)))
>>>>                      (warning (G_ "download from '~a' failed, 
>>>> trying next URL~%")
>>>>                               (uri->string uri))
>>>>                      (try-fetch rest)))
>>>> 
>>>>  I’ll go ahead with this change if there are no objections.
>>>  Looks good to me! Thanks for looking into this :)
>> 
>>  OK, I’ll push it shortly, but…
>> 
>>  Lars Bilke <lars.bilke@ufz.de <mailto:lars.bilke@ufz.de>> skribis:
>> 
>>>  thanks Ada for bringing this issue up again. I get the same error 
>>> on
>>>  `guix pull` almost always when I am on my enterprise
>>>  network. Re-running `guix pull` a second time also almost always 
>>> then
>>>  runs fine. I checked with our IT: nothing suspicious on the 
>>> network,
>>>  i.e. no firewall blocking.
>>> 
>>>  I never experienced the error on my home network.
>> 
>>  … your reports make me think there’s a bug lurking somewhere 
>> that
>>  perhaps only manifests under some precise networking or timing
>>  conditions.
>> 
>>  Could the two of you run the following command in a loop to see 
>> whether
>>  it’s easy to reproduce that GnuTLS error?
>> 
>>    guile -c '(use-modules (guix http-client) (ice-9 binary-ports))
>>      (get-bytevector-all (http-fetch 
>> "<https://ci.guix.gnu.org/nix-cache-info>"))'
>> 
>>  If you can reproduce it, could you capture the strace output of the
>>  process?  You would run the command above prefixed by:
>> 
>>    strace -o log.strace -s 300 …
>> 
>>  Thanks in advance!
>> 
>>  Ludo’.
> 
Thanks,
Ada


[-- Attachment #2: Type: text/html, Size: 3359 bytes --]

  reply	other threads:[~2024-04-02  8:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-17  6:18 Error handling when 'guix substitute' dies Ada Stevenson
2024-03-17 11:45 ` Ekaitz Zarraga
2024-03-24 11:15 ` Ludovic Courtès
2024-03-25 10:12   ` Ada Stevenson
2024-03-29 15:10     ` Ludovic Courtès
2024-04-02  4:13       ` Philip McGrath
2024-04-10 13:47         ` Ludovic Courtès
2024-04-10 14:37           ` Christopher Baines
2024-04-02  8:42       ` Lars Bilke
2024-04-02  8:45         ` Ada Stevenson [this message]
2024-04-10 13:49         ` Ludovic Courtès
2024-03-26  8:32   ` Lars Bilke
  -- strict thread matches above, loose matches on Subject: below --
2024-05-28  1:02 Richard Sent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EC4BBS.7K25BSTP3E3L1@gmail.com \
    --to=adanskana@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=lars.bilke@ufz.de \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).