From: "Ludovic Courtès" <ludo@gnu.org>
To: Bone Baboon <bone.baboon@disroot.org>
Cc: 48045@debbugs.gnu.org
Subject: bug#48045: guix challenge error
Date: Wed, 28 Apr 2021 23:20:02 +0200 [thread overview]
Message-ID: <87bl9yqf7h.fsf@gnu.org> (raw)
In-Reply-To: <87pmygc2jm.fsf@disroot.org> (Bone Baboon's message of "Mon, 26 Apr 2021 14:40:29 -0400")
[-- Attachment #1: Type: text/plain, Size: 2397 bytes --]
Hi,
Bone Baboon <bone.baboon@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’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 891 bytes --]
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
next prev parent reply other threads:[~2021-04-28 21:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 18:40 bug#48045: guix challenge error Bone Baboon via Bug reports for GNU Guix
2021-04-28 21:20 ` Ludovic Courtès [this message]
2021-04-30 18:30 ` Bone Baboon via Bug reports for GNU Guix
2021-05-11 8:45 ` Ludovic Courtès
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=87bl9yqf7h.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=48045@debbugs.gnu.org \
--cc=bone.baboon@disroot.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).