GNU bug report logs - #48045
guix challenge error

Previous Next

Package: guix;

Reported by: Bone Baboon <bone.baboon <at> disroot.org>

Date: Mon, 26 Apr 2021 18:42:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48045 in the body.
You can then email your comments to 48045 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#48045; Package guix. (Mon, 26 Apr 2021 18:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bone Baboon <bone.baboon <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 26 Apr 2021 18:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bone Baboon <bone.baboon <at> disroot.org>
To: bug-guix <at> gnu.org
Subject: guix challenge error
Date: Mon, 26 Apr 2021 14:40:29 -0400
On an x86_64 computer when I run `guix challenge` I get this error:

```
...
/gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra contents differ:
  local hash: 0aacxb6n0vrki8lb7f02r3m756cpc650hbihj9dpklkpvlgasqad
  https://ci.guix.gnu.org/nar/lzip/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra: 0anncy58048fvbbi40wbfrd1dc6wk3zshx63p6jn2f03ljwakbkj
 ci.guix.gnu.org  2.2MiB      416KiB/s 00:06 [##################] 101.3%
Backtrace:                                                             
In srfi/srfi-1.scm:
    634:9 19 (for-each #<procedure 7fe80c8c1e40 at guix/scripts/cha…> …)
In guix/scripts/challenge.scm:
    299:2 18 (report-differing-files _)
    279:2 17 (differing-files #<<comparison-report> item: "/gnu/stor…>)
In srfi/srfi-1.scm:
   586:17 16 (map1 (#<<narinfo> path: "/gnu/store/5ds5bli4p6gja2yzm…>))
In guix/scripts/challenge.scm:
    262:4 15 (call-with-nar _ _)
In guix/utils.scm:
    253:8 14 (call-with-decompressed-port _ _ _)
In guix/serialization.scm:
    424:4 13 (fold-archive _ _ _ _)
   468:33 12 (read "" _)
   468:33 11 (read "/guix" _)
   442:24 10 (read "/guix/self.go" _)
In guix/scripts/challenge.scm:
    200:4  9 (_ "/guix/self.go" regular _ (("/guix/scripts.go" # …) …))
In guix/serialization.scm:
   247:20  8 (dump #<input: string 7fe80d3471c0> #<output: string 7…> …)
In unknown file:
           7 (get-bytevector-n! #<input: string 7fe80d3471c0> # 0 #)
In lzlib.scm:
    501:4  6 (lzread! #<lz-decoder 7fe80dcef540> #<input: string 7f…> …)
In unknown file:
           5 (get-bytevector-n #<input: string 7fe80d347230> 65538)
In guix/progress.scm:
   362:23  4 (read! _ _ _)
   178:12  3 (display-download-progress _ _ #:tty? _ #:start-time _ # …)
In unknown file:
           2 (make-string -1 #\space)
In ice-9/boot-9.scm:
  1669:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Value out of range 0 to 18446744073709551615: -1
Backtrace:
          19 (get-bytevector-n! #<closed: string 7fe80d3471c0> # 0 #)
In lzlib.scm:
    501:4 18 (lzread! #<lz-decoder 7fe80dcef540> #<closed: string 7…> …)
In unknown file:
          17 (get-bytevector-n #<closed: string 7fe80d347230> 65538)
In guix/progress.scm:
   362:23 16 (read! _ _ _)
   178:12 15 (display-download-progress _ _ #:tty? _ #:start-time _ # …)
In unknown file:
          14 (make-string -1 #\space)
In ice-9/boot-9.scm:
  1669:16 13 (raise-exception _ #:continuable? _)
  1669:16 12 (raise-exception _ #:continuable? _)
  1669:16 11 (raise-exception _ #:continuable? _)
In unknown file:
          10 (apply-smob/1 #<exception-handler 7fe811315500> #<&comp…>)
In ice-9/boot-9.scm:
  1659:16  9 (raise-exception _ #:continuable? _)
In unknown file:
           8 (_ (0) #<&compound-exception components: (#<&assertion-…>)
In guix/utils.scm:
    255:8  7 (_)
In unknown file:
           6 (close-port #<closed: string 7fe80d3471c0>)
           5 (close-port #<closed: string 7fe80d347230>)
In guix/progress.scm:
   377:42  4 (_)
   178:12  3 (display-download-progress _ _ #:tty? _ #:start-time _ # …)
In unknown file:
           2 (make-string -1 #\space)
In ice-9/boot-9.scm:
  1669:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Value out of range 0 to 18446744073709551615: -1
```

`echo $?` outputs "1".

`guix describe` outputs:

```
Generation 10   Apr 26 2021 10:36:03    (current)
  guix f365d48
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: f365d48909156ad754a2ade45375f45b54b06bbc
```




Information forwarded to bug-guix <at> gnu.org:
bug#48045; Package guix. (Wed, 28 Apr 2021 21:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 48045 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Bone Baboon <bone.baboon <at> disroot.org>
Cc: 48045 <at> debbugs.gnu.org
Subject: Re: bug#48045: guix challenge error
Date: Wed, 28 Apr 2021 23:20:02 +0200
[Message part 1 (text/plain, inline)]
Hi,

Bone Baboon <bone.baboon <at> disroot.org> skribis:

> On an x86_64 computer when I run `guix challenge` I get this error:
>
> ```
> ...
> /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra contents differ:
>   local hash: 0aacxb6n0vrki8lb7f02r3m756cpc650hbihj9dpklkpvlgasqad
>   https://ci.guix.gnu.org/nar/lzip/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra: 0anncy58048fvbbi40wbfrd1dc6wk3zshx63p6jn2f03ljwakbkj
>  ci.guix.gnu.org  2.2MiB      416KiB/s 00:06 [##################] 101.3%
> Backtrace:                                                             
> In srfi/srfi-1.scm:
>     634:9 19 (for-each #<procedure 7fe80c8c1e40 at guix/scripts/cha…> …)
> In guix/scripts/challenge.scm:
>     299:2 18 (report-differing-files _)
>     279:2 17 (differing-files #<<comparison-report> item: "/gnu/stor…>)
> In srfi/srfi-1.scm:
>    586:17 16 (map1 (#<<narinfo> path: "/gnu/store/5ds5bli4p6gja2yzm…>))
> In guix/scripts/challenge.scm:
>     262:4 15 (call-with-nar _ _)
> In guix/utils.scm:
>     253:8 14 (call-with-decompressed-port _ _ _)
> In guix/serialization.scm:
>     424:4 13 (fold-archive _ _ _ _)
>    468:33 12 (read "" _)
>    468:33 11 (read "/guix" _)
>    442:24 10 (read "/guix/self.go" _)
> In guix/scripts/challenge.scm:
>     200:4  9 (_ "/guix/self.go" regular _ (("/guix/scripts.go" # …) …))
> In guix/serialization.scm:
>    247:20  8 (dump #<input: string 7fe80d3471c0> #<output: string 7…> …)
> In unknown file:
>            7 (get-bytevector-n! #<input: string 7fe80d3471c0> # 0 #)
> In lzlib.scm:
>     501:4  6 (lzread! #<lz-decoder 7fe80dcef540> #<input: string 7f…> …)
> In unknown file:
>            5 (get-bytevector-n #<input: string 7fe80d347230> 65538)
> In guix/progress.scm:
>    362:23  4 (read! _ _ _)
>    178:12  3 (display-download-progress _ _ #:tty? _ #:start-time _ # …)
> In unknown file:
>            2 (make-string -1 #\space)

The bug comes from the fact that it’s gone beyond 100%.  We could solve
it by programming more defensively, but it’d be great to see where the
problem comes from.

Can you reproduce it with:

  ./pre-inst-env guix challenge /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra

?

If so, could you apply the patch below and send the output of this
command?  We can discuss it on IRC if anything’s unclear.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/guix/scripts/challenge.scm b/guix/scripts/challenge.scm
index 4ec3be99ca..3cafc478a0 100644
--- a/guix/scripts/challenge.scm
+++ b/guix/scripts/challenge.scm
@@ -252,11 +252,12 @@ taken since we do not import the archives."
   "Call PROC with an input port from which it can read the nar pointed to by
 NARINFO."
   (let*-values (((uri compression size)
-                 (narinfo-best-uri narinfo))
-                ((port response)
+                 (narinfo-best-uri narinfo #:fast-decompression? #t))
+                ((port actual-size)
                  (http-fetch uri)))
     (define reporter
-      (progress-reporter/file (narinfo-path narinfo) size
+      (progress-reporter/file (narinfo-path narinfo)
+                              (max (pk 's size) (pk 'rs actual-size))
                               #:abbreviation (const (uri-host uri))))
 
     (define result

Information forwarded to bug-guix <at> gnu.org:
bug#48045; Package guix. (Fri, 30 Apr 2021 18:32:02 GMT) Full text and rfc822 format available.

Message #11 received at 48045 <at> debbugs.gnu.org (full text, mbox):

From: Bone Baboon <bone.baboon <at> disroot.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 48045 <at> debbugs.gnu.org
Subject: Re: bug#48045: guix challenge error
Date: Fri, 30 Apr 2021 14:30:27 -0400
Ludovic Courtès writes:
> The bug comes from the fact that it’s gone beyond 100%.  We could solve
> it by programming more defensively, but it’d be great to see where the
> problem comes from.
>
> Can you reproduce it with:
>
>   ./pre-inst-env guix challenge /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra
>
> ?
>
> If so, could you apply the patch below and send the output of this
> command?  We can discuss it on IRC if anything’s unclear.

I can not reproduce this error any more.

I have a new clone of the Guix repository.

I ran `./pre-inst-env guix challenge
/gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra` 20 times and the
error was no error.

I ran `./pre-inst-env guix challenge` several times and there was no
error.

I tried running `guix challenge
/gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra` outside of the
Guix repository 20 times and there was no error.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 11 May 2021 08:46:02 GMT) Full text and rfc822 format available.

Notification sent to Bone Baboon <bone.baboon <at> disroot.org>:
bug acknowledged by developer. (Tue, 11 May 2021 08:46:02 GMT) Full text and rfc822 format available.

Message #16 received at 48045-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Bone Baboon <bone.baboon <at> disroot.org>
Cc: 48045-done <at> debbugs.gnu.org
Subject: Re: bug#48045: guix challenge error
Date: Tue, 11 May 2021 10:45:05 +0200
Hi,

Bone Baboon <bone.baboon <at> disroot.org> skribis:

> Ludovic Courtès writes:
>> The bug comes from the fact that it’s gone beyond 100%.  We could solve
>> it by programming more defensively, but it’d be great to see where the
>> problem comes from.
>>
>> Can you reproduce it with:
>>
>>   ./pre-inst-env guix challenge /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra
>>
>> ?
>>
>> If so, could you apply the patch below and send the output of this
>> command?  We can discuss it on IRC if anything’s unclear.
>
> I can not reproduce this error any more.
>
> I have a new clone of the Guix repository.
>
> I ran `./pre-inst-env guix challenge
> /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra` 20 times and the
> error was no error.
>
> I ran `./pre-inst-env guix challenge` several times and there was no
> error.
>
> I tried running `guix challenge
> /gnu/store/5ds5bli4p6gja2yzmzzc0sik1kzrasp9-guix-extra` outside of the
> Guix repository 20 times and there was no error.

Thanks for checking.  I’m closing it, but please do reopen if you
stumble upon it again.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Jun 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.