unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63794: Bad error reporting in case of 404 during downloading
@ 2023-05-29 22:05 Maxime Devos
  2023-05-30  6:27 ` bug#63794: N. Y.
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Maxime Devos @ 2023-05-29 22:05 UTC (permalink / raw)
  To: 63794


[-- Attachment #1.1.1: Type: text/plain, Size: 4070 bytes --]

$ guix system build /etc/config.scm:

  guix-1.4.0-6.dc5430c  52.2MiB 
  811.7Mi guix-1.4.0-6.dc5430c  52.2MiB 
           1.46Gi guix-1.4.0-6.dc5430c  52.2MiB 
                   1.70GiB/s 00:00 ▕▎                 ▏   1.7%Backtrace:
In ice-9/boot-9.scm:
   1752:10 19 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           18 (apply-smob/0 #<thunk 7f044ad172a0>)
In ice-9/boot-9.scm:
     724:2 17 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
     619:8 16 (_ #(#(#<directory (guile-user) 7f044ad1cc80>)))
In guix/ui.scm:
    2300:7 15 (run-guix . _)
   2263:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
   1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
   1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    854:15 11 (_)
     646:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # …)
In ice-9/boot-9.scm:
   1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
     463:7  8 (download-nar #<<narinfo> path: "/gnu/store/arcljcj925…> …)
In ice-9/boot-9.scm:
   1747:15  7 (with-exception-handler #<procedure 7f0441fd6690 at ic…> …)
   1685:16  6 (raise-exception _ #:continuable? _)
   1683:16  5 (raise-exception _ #:continuable? _)
   1685:16  4 (raise-exception _ #:continuable? _)
   1780:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
   1685:16  2 (raise-exception _ #:continuable? _)
   1683:16  1 (raise-exception _ #:continuable? _)
   1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
   1. &http-get-error:
       uri: #<<uri> scheme: https userinfo: #f host: 
"bordeaux.guix.gnu.org" port: #f path: 
"/nar/zstd/arcljcj925bcsavh66wdfd7ppln66g06-NetworkManager-1.42.6.tar.xz" 
query: #f fragment: #f>
       code: 404
       reason: "Not Found"
       headers: ((server . "nginx") (date . #<date nanosecond: 0 second: 
34 minute: 50 hour: 20 day: 29 month: 5 year: 2023 zone-offset: 0>) 
(content-type text/plain (charset . "utf-8")) (content-length . 3) 
(connection keep-alive))
   2. &message: 
"https://bordeaux.guix.gnu.org/nar/zstd/arcljcj925bcsavh66wdfd7ppln66g06-NetworkManager-1.42.6.tar.xz: 
HTTP-download mislukt: 404 (\"Not Found\")"
aan het downloaden van 
https://ci.guix.gnu.org/nar/lzip/ljajixj3z0pc98lvk4rfr7lydq4mwa16-docbook-xsl-1.79.2-0.fe16c90...

aan het downloaden van 
https://ci.guix.gnu.org/nar/lzip/dr0vdsfch0s2fan6p3kbyalskm8ldk8c-font-abattis-cantarell-0.303-0.e049149-checkout...

substitutie van 
/gnu/store/0bcdfksisqi22p517bf4w44vqlhw4844-alsa-plugins-1.2.2 is klaar
substitutie van 
/gnu/store/ljajixj3z0pc98lvk4rfr7lydq4mwa16-docbook-xsl-1.79.2-0.fe16c90 
is klaar
substitutie van 
/gnu/store/dr0vdsfch0s2fan6p3kbyalskm8ldk8c-font-abattis-cantarell-0.303-0.e049149-checkout 
is klaar
/gnu/store/3y39m6g4ih2l509sygfh21yfpqifaqrp-Blocks.txt vervangen...
/gnu/store/k9yg4n9bhak88xir65j1qd2g8pj4aclc-DerivedAge.txt vervangen...
/gnu/store/068pjh717wzgdai95j7mn98accs1zi7q-LVM2.2.03.11.tar.xz vervangen...
vervanging van 
/gnu/store/arcljcj925bcsavh66wdfd7ppln66g06-NetworkManager-1.42.6.tar.xz 
mislukt
guix system: fout: beschadigde invoer tijdens het terugplaatsen van het 
archief uit #<closed: file 7f8ffe7977e0>

Problems:
   * The server not having a file is not an exceptional situation;
     it should just skip this server or just report that there
     is no available location for this resource instead of
     a backtrace.

   * It claims ‘corrupt input while restoring ...’, but it isn't
     corrupt -- non-existence is not a form of corruption.

   * ‘1.46Gi’ should be ‘1.46GiB’ or ‘1.46GiB/s’ -- Gi is just a prefix,
     it's missing a unit.

In case it matters, I have

           (build-accounts 40)
           (extra-options '("--gc-keep-derivations" "--gc-keep-outputs" 
"--max-jobs=14"))

in the system configuration.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794:
  2023-05-29 22:05 bug#63794: Bad error reporting in case of 404 during downloading Maxime Devos
@ 2023-05-30  6:27 ` N. Y.
  2023-05-30 10:05   ` bug#63794: Christopher Baines
  2023-05-30  9:06 ` bug#63794: Bad error reporting in case of 404 during downloading Zain Jabbar
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: N. Y. @ 2023-05-30  6:27 UTC (permalink / raw)
  To: 63794

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

Are there any workarounds, for an inexperienced user who does not know much
about guix? I am getting 404's for

-
https://bordeaux.guix.gnu.org/nar/zstd/arnx6fnjq85wscmr894d64cj3529r3h1-wxPython-4.2.0.tar.xz
-
https://bordeaux.guix.gnu.org/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz

After a recent guix pull to 3807876 of
https://git.savannah.gnu.org/git/guix.git

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Bad error reporting in case of 404 during downloading
  2023-05-29 22:05 bug#63794: Bad error reporting in case of 404 during downloading Maxime Devos
  2023-05-30  6:27 ` bug#63794: N. Y.
@ 2023-05-30  9:06 ` Zain Jabbar
  2023-05-30 13:13 ` Christopher Baines
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Zain Jabbar @ 2023-05-30  9:06 UTC (permalink / raw)
  To: 63794


[-- Attachment #1.1.1.1: Type: text/plain, Size: 112 bytes --]

N.Y.,

You may want to use the `--no-substitutes' option. Let us know how that works for you.

-- 
Mahalo

[-- Attachment #1.1.1.2: Type: text/html, Size: 861 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794:
  2023-05-30  6:27 ` bug#63794: N. Y.
@ 2023-05-30 10:05   ` Christopher Baines
  2023-05-31  9:02     ` bug#63794: Simon Tournier
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Baines @ 2023-05-30 10:05 UTC (permalink / raw)
  To: N. Y.; +Cc: 63794

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


"N. Y." <ningyuan.sg@gmail.com> writes:

> Are there any workarounds, for an inexperienced user who does not know much about guix? I am getting 404's for
>
> - https://bordeaux.guix.gnu.org/nar/zstd/arnx6fnjq85wscmr894d64cj3529r3h1-wxPython-4.2.0.tar.xz
> - https://bordeaux.guix.gnu.org/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz
>
> After a recent guix pull to 3807876 of https://git.savannah.gnu.org/git/guix.git

Yep, clearing the guix-daemon's substitute cache should workaround these
issues.

On my system, that can be done by running:

  sudo rm -r /var/guix/substitute/cache/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Bad error reporting in case of 404 during downloading
  2023-05-29 22:05 bug#63794: Bad error reporting in case of 404 during downloading Maxime Devos
  2023-05-30  6:27 ` bug#63794: N. Y.
  2023-05-30  9:06 ` bug#63794: Bad error reporting in case of 404 during downloading Zain Jabbar
@ 2023-05-30 13:13 ` Christopher Baines
  2023-05-30 14:41   ` Maxime Devos
       [not found] ` <handler.63794.B.16853979367295.ack@debbugs.gnu.org>
  2023-05-30 15:53 ` bug#63794: Bad error reporting in case of 404 during downloading Simon Tournier
  4 siblings, 1 reply; 11+ messages in thread
From: Christopher Baines @ 2023-05-30 13:13 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 63794

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


Maxime Devos <maximedevos@telenet.be> writes:

> Problems:
>   * The server not having a file is not an exceptional situation;
>     it should just skip this server or just report that there
>     is no available location for this resource instead of
>     a backtrace.
>
>   * It claims ‘corrupt input while restoring ...’, but it isn't
>     corrupt -- non-existence is not a form of corruption.
>
>   * ‘1.46Gi’ should be ‘1.46GiB’ or ‘1.46GiB/s’ -- Gi is just a prefix,
>     it's missing a unit.

I think the key bits here might be a duplicate of #63634

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Acknowledgement (Bad error reporting in case of 404 during downloading)
       [not found] ` <handler.63794.B.16853979367295.ack@debbugs.gnu.org>
@ 2023-05-30 13:25   ` Maxime Devos
  2023-05-30 13:29     ` Christopher Baines
  0 siblings, 1 reply; 11+ messages in thread
From: Maxime Devos @ 2023-05-30 13:25 UTC (permalink / raw)
  To: 63794, Christopher Baines


[-- Attachment #1.1.1: Type: text/plain, Size: 3093 bytes --]

From: Christopher Baines
 > I think the key bits here might be a duplicate of #63634

Looks like I need to upgrade my Guix system to fix substitution ... but 
"guix system build" is currently failing, which needs [cycle!].

This time when doing "guix system build" I have a new error:

[...]
/gnu/store/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3 
vervangen...
aan het downloaden van 
https://ci.guix.gnu.org/nar/lzip/l0xjgpcglms6ragxdpmjpkln7k4hjhd3-guix-1.4.0-6.dc5430c...
  guix-1.4.0-6.dc5430c  44.3MiB 
    4.7MiB/s 00:04 ▕████████▏         ▏  45.5%guix substitute: 
waarschuwing: tijdens het binnenhalen van 
https://ci.guix.gnu.org/nar/lzip/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0: 
de server is een beetje traag
guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het 
probleem hardnekkig is
retrying download of 
'/gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0' with other 
substitute URLs...
[...]
retrying download of 
'/gnu/store/s94ng28j332my12r3qwvndk4w8kg7awx-openbios-qemu-ppc-1.1-1.af97fd7' 
with other substitute URLs...
guix substitute: waarschuwing: tijdens het binnenhalen van 
https://ci.guix.gnu.org/nar/lzip/crsnsry2c0q55vi58g53qh2fr9ndb9qn-module-import-compiled: 
de server is een beetje traag
guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het 
probleem hardnekkig is
guix substitute: waarschuwing: tijdens het binnenhalen van 
https://ci.guix.gnu.org/nar/lzip/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3: 
de server is een beetje traag
guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het 
probleem hardnekkig is
retrying download of 
'/gnu/store/crsnsry2c0q55vi58g53qh2fr9ndb9qn-module-import-compiled' 
with other substitute URLs...
retrying download of 
'/gnu/store/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3' with 
other substitute URLs...
  guix-1.4.0-6.dc5430c  44.3MiB 
    3.1MiB/s 00:09 ▕███████████▊      ▏  65.6%guix substitute: 
waarschuwing: tijdens het binnenhalen van 
https://ci.guix.gnu.org/nar/lzip/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0: 
de server is een beetje traag
guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het 
probleem hardnekkig is
guix substitute: fout: failed to find alternative substitute for 
'/gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0'
vervanging van /gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0 
mislukt
guix system: fout: beschadigde invoer tijdens het terugplaatsen van het 
archief uit #<closed: file 7fdab54d1700>

I haven't seen this ‘failed to alternative substitute for [...]’ before 
and it seems unrelated to #63634. There is also bad error reporting 
here: failing to find a substitute is not a form of ‘corrupted/damaged 
input’.

I'll do the usual tricks (*) to work-around for now, to get the fix in 
#63634 even though it doesn't fix everything.

(*): while :; do guix system build /etc/config.scm -M1; done

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Acknowledgement (Bad error reporting in case of 404 during downloading)
  2023-05-30 13:25   ` bug#63794: Acknowledgement (Bad error reporting in case of 404 during downloading) Maxime Devos
@ 2023-05-30 13:29     ` Christopher Baines
  0 siblings, 0 replies; 11+ messages in thread
From: Christopher Baines @ 2023-05-30 13:29 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 63794

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


Maxime Devos <maximedevos@telenet.be> writes:

> From: Christopher Baines
>> I think the key bits here might be a duplicate of #63634
>
> Looks like I need to upgrade my Guix system to fix substitution
> ... but "guix system build" is currently failing, which needs
> [cycle!].
>
> This time when doing "guix system build" I have a new error:
>
> [...]
> /gnu/store/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3
> vervangen...
> aan het downloaden van
> https://ci.guix.gnu.org/nar/lzip/l0xjgpcglms6ragxdpmjpkln7k4hjhd3-guix-1.4.0-6.dc5430c...
>  guix-1.4.0-6.dc5430c  44.3MiB     4.7MiB/s 00:04 ▕████████▏         ▏
>  45.5%guix substitute: waarschuwing: tijdens het binnenhalen van
>  https://ci.guix.gnu.org/nar/lzip/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0:
>  de server is een beetje traag
> guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het
> probleem hardnekkig is
> retrying download of
> '/gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0' with other
> substitute URLs...
> [...]
> retrying download of
> '/gnu/store/s94ng28j332my12r3qwvndk4w8kg7awx-openbios-qemu-ppc-1.1-1.af97fd7'
> with other substitute URLs...
> guix substitute: waarschuwing: tijdens het binnenhalen van
> https://ci.guix.gnu.org/nar/lzip/crsnsry2c0q55vi58g53qh2fr9ndb9qn-module-import-compiled:
> de server is een beetje traag
> guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het
> probleem hardnekkig is
> guix substitute: waarschuwing: tijdens het binnenhalen van
> https://ci.guix.gnu.org/nar/lzip/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3:
> de server is een beetje traag
> guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het
> probleem hardnekkig is
> retrying download of
> '/gnu/store/crsnsry2c0q55vi58g53qh2fr9ndb9qn-module-import-compiled'
> with other substitute URLs...
> retrying download of
> '/gnu/store/qsb7s87y575f42zf79hyjih6adsdwpxb-python-fontmath-0.9.3'
> with other substitute URLs...
>  guix-1.4.0-6.dc5430c  44.3MiB     3.1MiB/s 00:09 ▕███████████▊      ▏
>  65.6%guix substitute: waarschuwing: tijdens het binnenhalen van
>  https://ci.guix.gnu.org/nar/lzip/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0:
>  de server is een beetje traag
> guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het
> probleem hardnekkig is
> guix substitute: fout: failed to find alternative substitute for
> '/gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0'
> vervanging van
> /gnu/store/9y974g8k1rwv8bwxmshc4fl2dzm6cfij-upower-1.90.0 mislukt
> guix system: fout: beschadigde invoer tijdens het terugplaatsen van
> het archief uit #<closed: file 7fdab54d1700>
>
> I haven't seen this ‘failed to alternative substitute for [...]’
> before and it seems unrelated to #63634. There is also bad error
> reporting here: failing to find a substitute is not a form of
> ‘corrupted/damaged input’.
>
> I'll do the usual tricks (*) to work-around for now, to get the fix in
> #63634 even though it doesn't fix everything.
>
> (*): while :; do guix system build /etc/config.scm -M1; done

The one workaround I'd suggest is cleaning the guix-daemon's substitute
cache (/var/guix/substitute/cache). That alone should be sufficient to
work around any missing zstd nars.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Bad error reporting in case of 404 during downloading
  2023-05-30 13:13 ` Christopher Baines
@ 2023-05-30 14:41   ` Maxime Devos
  2023-06-08 20:50     ` Maxime Devos
  0 siblings, 1 reply; 11+ messages in thread
From: Maxime Devos @ 2023-05-30 14:41 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 63794


[-- Attachment #1.1.1: Type: text/plain, Size: 228 bytes --]

I can't upgrade yet, because no substitute of webkitgtk is available:

The following derivations would be built:
   [...]
   /gnu/store/gdvjm79zbi8nhdwgmk40n6k4rlmz2ndk-webkitgtk-2.40.1.drv
   [...]

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Bad error reporting in case of 404 during downloading
  2023-05-29 22:05 bug#63794: Bad error reporting in case of 404 during downloading Maxime Devos
                   ` (3 preceding siblings ...)
       [not found] ` <handler.63794.B.16853979367295.ack@debbugs.gnu.org>
@ 2023-05-30 15:53 ` Simon Tournier
  4 siblings, 0 replies; 11+ messages in thread
From: Simon Tournier @ 2023-05-30 15:53 UTC (permalink / raw)
  To: Maxime Devos, 63794

Hi,

I confirm a similar error building a commit on the top of 52fed8fbd7.

On mar., 30 mai 2023 at 00:05, Maxime Devos <maximedevos@telenet.be> wrote:

>   guix-1.4.0-6.dc5430c  52.2MiB 
>   811.7Mi guix-1.4.0-6.dc5430c  52.2MiB 
>            1.46Gi guix-1.4.0-6.dc5430c  52.2MiB 
>                    1.70GiB/s 00:00 ▕▎                 ▏   1.7%Backtrace:
> In ice-9/boot-9.scm:
>    1752:10 19 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            18 (apply-smob/0 #<thunk 7f044ad172a0>)
> In ice-9/boot-9.scm:
>      724:2 17 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>      619:8 16 (_ #(#(#<directory (guile-user) 7f044ad1cc80>)))
> In guix/ui.scm:
>     2300:7 15 (run-guix . _)
>    2263:10 14 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>    1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>    1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/scripts/substitute.scm:
>     854:15 11 (_)
>      646:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # …)
> In ice-9/boot-9.scm:
>    1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/scripts/substitute.scm:
>      463:7  8 (download-nar #<<narinfo> path: "/gnu/store/arcljcj925…> …)
> In ice-9/boot-9.scm:
>    1747:15  7 (with-exception-handler #<procedure 7f0441fd6690 at ic…> …)
>    1685:16  6 (raise-exception _ #:continuable? _)
>    1683:16  5 (raise-exception _ #:continuable? _)
>    1685:16  4 (raise-exception _ #:continuable? _)
>    1780:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>    1685:16  2 (raise-exception _ #:continuable? _)
>    1683:16  1 (raise-exception _ #:continuable? _)
>    1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> ERROR:
>    1. &http-get-error:
>        uri: #<<uri> scheme: https userinfo: #f host: 
> "bordeaux.guix.gnu.org" port: #f path: 
> "/nar/zstd/arcljcj925bcsavh66wdfd7ppln66g06-NetworkManager-1.42.6.tar.xz" 
> query: #f fragment: #f>
>        code: 404
>        reason: "Not Found"
>        headers: ((server . "nginx") (date . #<date nanosecond: 0 second: 
> 34 minute: 50 hour: 20 day: 29 month: 5 year: 2023 zone-offset: 0>) 
> (content-type text/plain (charset . "utf-8")) (content-length . 3) 
> (connection keep-alive))
>    2. &message: 
> "https://bordeaux.guix.gnu.org/nar/zstd/arcljcj925bcsavh66wdfd7ppln66g06-NetworkManager-1.42.6.tar.xz: 
> HTTP-download mislukt: 404 (\"Not Found\")"

--8<---------------cut here---------------start------------->8---
substituting /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz...
Backtrace:
          16 (primitive-load "/gnu/store/jpcpva9gg7l337d0icn88pf76l4…")
In guix/ui.scm:
   2263:7 15 (run-guix . _)
  2226:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
   856:15 11 (_)
    650:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # …)
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    467:7  8 (download-nar #<<narinfo> path: "/gnu/store/26q8viimh3…> …)
In ice-9/boot-9.scm:
  1747:15  7 (with-exception-handler #<procedure 7f69e92f8840 at ic…> …)
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
  1685:16  2 (raise-exception _ #:continuable? _)
  1683:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
  1. &http-get-error:
      uri: #<<uri> scheme: https userinfo: #f host: "bordeaux.guix.gnu.org" port: #f path: "/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz" query: #f fragment: #f>
      code: 404
      reason: "Not Found"
      headers: ((server . "nginx") (date . #<date nanosecond: 0 second: 16 minute: 34 hour: 15 day: 30 month: 5 year: 2023 zone-offset: 0>) (content-type text/plain (charset . "utf-8")) (content-length . 3) (connection keep-alive))
  2. &message: "https://bordeaux.guix.gnu.org/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz: HTTP download failed: 404 (\"Not Found\")"
substitution of /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz failed
guix build: error: corrupt input while restoring archive from #<closed: file 7f9e12807e70>
--8<---------------cut here---------------end--------------->8---

Ok, let try to manually build webkitgkt:

--8<---------------cut here---------------start------------->8---
simon@pfiuh07$ ./pre-inst-env guix build webkitgtk
The following derivation will be built:
  /gnu/store/gdvjm79zbi8nhdwgmk40n6k4rlmz2ndk-webkitgtk-2.40.1.drv
39,2 MB will be downloaded:
  /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz
substituting /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz...
Backtrace:
          16 (primitive-load "/gnu/store/jpcpva9gg7l337d0icn88pf76l4…")
In guix/ui.scm:
   2263:7 15 (run-guix . _)
  2226:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
   856:15 11 (_)
    650:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # …)
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    467:7  8 (download-nar #<<narinfo> path: "/gnu/store/26q8viimh3…> …)
In ice-9/boot-9.scm:
  1747:15  7 (with-exception-handler #<procedure 7fb4c41a4660 at ic…> …)
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
  1685:16  2 (raise-exception _ #:continuable? _)
  1683:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
  1. &http-get-error:
      uri: #<<uri> scheme: https userinfo: #f host: "bordeaux.guix.gnu.org" port: #f path: "/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz" query: #f fragment: #f>
      code: 404
      reason: "Not Found"
      headers: ((server . "nginx") (date . #<date nanosecond: 0 second: 15 minute: 41 hour: 15 day: 30 month: 5 year: 2023 zone-offset: 0>) (content-type text/plain (charset . "utf-8")) (content-length . 3) (connection keep-alive))
  2. &message: "https://bordeaux.guix.gnu.org/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz: HTTP download failed: 404 (\"Not Found\")"
substitution of /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz failed
guix build: error: some substitutes for the outputs of derivation `/gnu/store/crbrn417ksq4qjky3fw92z5902v3kn3s-webkitgtk-2.40.1.tar.xz.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source 
--8<---------------cut here---------------end--------------->8---

Ah, ok let apply the suggestion:

--8<---------------cut here---------------start------------->8---
simon@pfiuh07$ ./pre-inst-env guix build webkitgtk --fallback
The following derivation will be built:
  /gnu/store/gdvjm79zbi8nhdwgmk40n6k4rlmz2ndk-webkitgtk-2.40.1.drv
39,2 MB will be downloaded:
  /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz
substituting /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz...
Backtrace:
          16 (primitive-load "/gnu/store/jpcpva9gg7l337d0icn88pf76l4…")
In guix/ui.scm:
   2263:7 15 (run-guix . _)
  2226:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
   856:15 11 (_)
    650:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # …)
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    467:7  8 (download-nar #<<narinfo> path: "/gnu/store/26q8viimh3…> …)
In ice-9/boot-9.scm:
  1747:15  7 (with-exception-handler #<procedure 7fe73c0e33c0 at ic…> …)
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
  1685:16  2 (raise-exception _ #:continuable? _)
  1683:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
  1. &http-get-error:
      uri: #<<uri> scheme: https userinfo: #f host: "bordeaux.guix.gnu.org" port: #f path: "/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz" query: #f fragment: #f>
      code: 404
      reason: "Not Found"
      headers: ((server . "nginx") (date . #<date nanosecond: 0 second: 16 minute: 42 hour: 15 day: 30 month: 5 year: 2023 zone-offset: 0>) (content-type text/plain (charset . "utf-8")) (content-length . 3) (connection keep-alive))
  2. &message: "https://bordeaux.guix.gnu.org/nar/zstd/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz: HTTP download failed: 404 (\"Not Found\")"
substitution of /gnu/store/26q8viimh3r73549drqigvz07kl9v6pr-webkitgtk-2.40.1.tar.xz failed
guix build: error: corrupt input while restoring archive from #<closed: file 7f12092efee0>
--8<---------------cut here---------------end--------------->8---

At the end, I need to do:

    ./pre-inst-env guix build webkitgtk -S --no-substitutes

but I do not necessary want to rebuild all.


Well, all in all, I agree with Maxime that the backtrace is ugly, the
message misleading and last that various options should be tried
automatically (for fixed-outputs).


Cheers,
simon




^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794:
  2023-05-30 10:05   ` bug#63794: Christopher Baines
@ 2023-05-31  9:02     ` Simon Tournier
  0 siblings, 0 replies; 11+ messages in thread
From: Simon Tournier @ 2023-05-31  9:02 UTC (permalink / raw)
  To: Christopher Baines, N. Y.; +Cc: 63794

Hi Chris,

On Tue, 30 May 2023 at 11:05, Christopher Baines <mail@cbaines.net> wrote:

> Yep, clearing the guix-daemon's substitute cache should workaround these
> issues.

I think this report is about two issues:

 1. the substitute error,
 2. the way the error is reported.

About #1, clearing the cache seems fixing.

About #2, an error about the substitutes server should not trigger “hard
to parse” backtrace or misleading hint, IMHO.

Cheers,
simon




^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#63794: Bad error reporting in case of 404 during downloading
  2023-05-30 14:41   ` Maxime Devos
@ 2023-06-08 20:50     ` Maxime Devos
  0 siblings, 0 replies; 11+ messages in thread
From: Maxime Devos @ 2023-06-08 20:50 UTC (permalink / raw)
  To: Christopher Baines, Simon Tournier; +Cc: 63794


[-- Attachment #1.1.1: Type: text/plain, Size: 505 bytes --]

I think I saw it again after upgrading but I might have misremembered.

 > I think this report is about two issues:
 >
 > 1. the substitute error,
 > 2. the way the error is reported.
 >
 > About #1, clearing the cache seems fixing.

IMO this manual action of having to clear the cache (in a new Guix) to 
work-around remainders of a bug in old guix should be unnecessary.

I consider having to do this a bug.

Also, I keep not receiving e-mails in my e-mail client.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-06-08 20:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-29 22:05 bug#63794: Bad error reporting in case of 404 during downloading Maxime Devos
2023-05-30  6:27 ` bug#63794: N. Y.
2023-05-30 10:05   ` bug#63794: Christopher Baines
2023-05-31  9:02     ` bug#63794: Simon Tournier
2023-05-30  9:06 ` bug#63794: Bad error reporting in case of 404 during downloading Zain Jabbar
2023-05-30 13:13 ` Christopher Baines
2023-05-30 14:41   ` Maxime Devos
2023-06-08 20:50     ` Maxime Devos
     [not found] ` <handler.63794.B.16853979367295.ack@debbugs.gnu.org>
2023-05-30 13:25   ` bug#63794: Acknowledgement (Bad error reporting in case of 404 during downloading) Maxime Devos
2023-05-30 13:29     ` Christopher Baines
2023-05-30 15:53 ` bug#63794: Bad error reporting in case of 404 during downloading Simon Tournier

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).