Bad error reporting in case of 404 during downloading

  • Open
  • quality assurance status badge
Details
5 participants
  • Christopher Baines
  • Maxime Devos
  • N. Y.
  • Zain Jabbar
  • Simon Tournier
Owner
unassigned
Submitted by
Maxime Devos
Severity
normal
M
M
Maxime Devos wrote on 30 May 2023 00:05
(name . bug-guix)(address . bug-guix@gnu.org)
f4b6f127-9461-c8f0-b6d8-baef96639394@telenet.be
$ 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:
HTTP-download mislukt: 404 (\"Not Found\")"
aan het downloaden van
aan het downloaden van
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: OpenPGP_signature
N
(address . 63794@debbugs.gnu.org)
CAEavL=U1Yf+2f6nP4QEQK4WS4MhchQbA4XnRDuE_U3pL-of3+Q@mail.gmail.com
Attachment: file
Z
Z
Zain Jabbar wrote on 30 May 2023 11:06
(address . 63794@debbugs.gnu.org)
87a5xm5grp.fsf@gmail.com
N.Y.,

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

--
Mahalo
Attachment: file
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEm1u9zr49Q+PAGD698uA3RL2mItgFAmR1vNoVHHphaWphYjIw
MDBAZ21haWwuY29tAAoJEPLgN0S9piLY0Y4P/3m1K1MMak2PJjEvHebaSbDPjOcV
rR+GbRs4Vl6jivaRqqvBsxyvDboM4sxh6jOmPMbtdtC0tb4W601cSzw1Cuxi8n/h
2gK+nSMW8AGyYkU0kADHHmfxggJ7hhfjPkgvfyZV+NGMV1wlhw1duK3DMuEUOtXk
oLvgRl6wmof3WhwXpBaf/dKRr6OIDTB4ra5aBYHH1MBd26TdhwUAAQT9SEbDs4B1
Czf3RNzUPJ9sRXuf2c+gSADDYmQfxrQ+krkli8O7Sev5NDkO/x43Gh4mqEfhykwd
025H8p6maWKZXpbzerCG7PSiVGTwAjMyKNJXcya81JPdxlcWVka02hFi/QTmJRO7
qqngmzlyzqmhZbJtnzWfLpgfdSTAF4+Yj2zD9rmTodxnqnd8uz5b0Nf5/UcHdiNT
/rFhjqi6yRr+EH4Zc1uMKtURT08Egi0Rrf1sl9EstyKsqu3DicKNmfbXk6OEinNg
x0Fze57NUpfvX7HH9YoxWa+4Qoj3C7pT5cFnyEstiJ8ueZzDT238qk9fBDkSVgt6
faf/mrju9PFOvHw+xPuIs/PS8Zyu5cNxfscGU5hmgQk5GbaIIyRgmXqJy6WthR4W
TWVO2K19gjUOJFmgXkjf1eU+rR0+K0mti+PVR1LLp6pvcFSlB51hSBjUX8cm+mAN
XCpIWnElhT+kCzbs
=ItL2
-----END PGP SIGNATURE-----

C
C
Christopher Baines wrote on 30 May 2023 12:05
Re: bug#63794:
(name . N. Y.)(address . ningyuan.sg@gmail.com)(address . 63794@debbugs.gnu.org)
87leh6i16q.fsf@cbaines.net
"N. Y." <ningyuan.sg@gmail.com> writes:

Toggle quote (7 lines)
> 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/
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmR1yn1fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XcquQ//ZT3JS4N1NFscNTgrXMiA7HJkGYt3cR2y
3rfpqXQuzaHbOLQ10z2gAGcg/H7s1CZDiukE3opWflfw8PT6ErTex/Eknat9rcvR
Z9NLSrF90cRNhGaXLRYQDUfe3wfWbqM5Mnmkgf9gvRx4QlVwO9jKX9iSfMGVo/7I
Hm/SjU9nqln03VqXvMU0vopSGCuVQLP5U+VhJ1xIV+RQdryEsSZ7NWJLFf/ZswBB
vE+meXVvGV2xqPa1BmVr07YfHLd0uUCO/6/ONJiNkV1U5CDa6SNFUUcc67dIVn+X
0UaS11M43uCG/HCdjJNXQyM78sP7+POBBJbetGgX/IopiAEl63pd69o8gbJ8RKu2
pTq2DlRoJ3ZyiWV5C85TqXKZhkd7V4M9vnX1zeMK7bH7BookfWem/Gcqj0TxjFIl
f5QWXSRP/LoNMSjC9HPhtA1rN2KZqH8Cit0hMrcNPfVBuqv4s8l8DGnyU655s/fn
Pot+7JLAIyAIT4VKubpcw91gak78H0BbdryLKan6Hm3HEuwJ7Fwsra34Ez3Rjacc
0BmQa1+3jsJC9I/zaewHiQgv9CUzNaCjX5JHtYfLd/CEbkTvMG/XUqrdM5s6hbov
ukof+u228xnTViKwpt0AbN4cURUahFVMxxKnCIvyXXSFoUMzcVuFZQFZoNohgkm3
rHMn4X3tTFQ=
=JaMT
-----END PGP SIGNATURE-----

C
C
Christopher Baines wrote on 30 May 2023 15:13
Re: bug#63794: Bad error reporting in case of 404 during downloading
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 63794@debbugs.gnu.org)
87cz2ihsfy.fsf@cbaines.net
Maxime Devos <maximedevos@telenet.be> writes:

Toggle quote (12 lines)
> 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
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmR19sFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XeECQ//bEzoW+cOFBENDFVLmt2j8JqCwb7LnmxS
ALWu2ZSnvPGbWNu6GjwomPvdVSGZZpDOlSXeLIO+1Ioxwy855Rm1ksjXGtiYN1FC
HfXWKFfPbcNdWdV5gY0PZjeaOBGiiyxVNaSYLMGjwfukRoHJ7ioPOCqIgFwR2TKL
4j54IVtdoJp39QZSnVqGGtnF6wyOVNjHKpBoIljUXUpQSdXSy4z1jDrjp3VEkA6n
KP8biE/RRFdr333SihAnZmTyMhbUDrG114jAqkxeEPhrfbl91wh1v1bnC0DMWjvn
5NaP3Q3VlnmpTPu8O+UZF8nkVd+VRbTdroroTKOGyWKseXulo8ytyJE10kU6cYX7
AvqncdDGsw239HDyF8oXPAuNPG06h9Etqy8UDawpTFt5nn9CFT6FrkV8cMvxuBM6
HvZQSgVcw11HJTP7zw3QcTmUFgBsGySuUeCxCLbJg/XMa+IB2JUNlWqxk7WSy+iq
kvCgWPCxuPYtg4pCbSvEsq50gOR4HDhyj/00WvDM1mASwt+abB1ikJ5wsWyeDjqM
pgtL0DsyKIaJpaC7yIzF58WTIv+EhzuT0WEC8qGFIjtn+JcKKXVoFZf+aFAJ8pOd
9FLDIY8A2lmTT2PJChNS95Ft5fuRYuevGwl5w8/BcYTh4jc2DdFQm2jYEXCVEeTL
Tef8T0RVONU=
=ys0C
-----END PGP SIGNATURE-----

M
M
Maxime Devos wrote on 30 May 2023 15:25
Re: bug#63794: Acknowledgement (Bad error reporting in case of 404 during downloading)
a7097612-f5cd-6406-3d93-294e6e86f896@telenet.be
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
guix-1.4.0-6.dc5430c 44.3MiB
4.7MiB/s 00:04 ?????????? ? 45.5%guix substitute:
waarschuwing: tijdens het binnenhalen van
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
de server is een beetje traag
guix substitute: waarschuwing: probeer ‘--no-substitutes’ als het
probleem hardnekkig is
guix substitute: waarschuwing: tijdens het binnenhalen van
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
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: OpenPGP_signature
C
C
Christopher Baines wrote on 30 May 2023 15:29
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 63794@debbugs.gnu.org)
878rd6hrp1.fsf@cbaines.net
Maxime Devos <maximedevos@telenet.be> writes:

Toggle quote (66 lines)
> 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.
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmR1+opfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9Xc0yg/9EjR30NeRPcas6gTJrQFDCIZHCJc4JjKF
dqtV9MRtBEwRKX1teKREGS4iQtotDqGmp6GdbPkH51WMQzIY04O1lUBjdPF2yncn
SgAEkN37j2+Iv13WNS1ICQwrsorv4XeV25/FwOmdakolPyGrg8EIrNjhsTwfkCdh
wN+1puX6IPZHPL2yLAAlr9+79mw45dqWWvTDASRLfr8pOAwqvSJdF4ff48cSKAnD
akMs9iJSiHYFlZyHmK9tRcfQnagBgZQS0RMXCEtpXtuoZ80+UNHORsbaWTBM3g8u
F+4YWDPIEPHHMS5yrBiH9oJ7fCYkGzT+TQCEhBY3YWqVc/DKHQGMLo195bW2NKBx
fBV+rfrrr2DsDVrXyfs9BxIfvzrnI6nyIIArs+8ldSRB/eE1n1U+rk0gS9Ox9U+3
Lm9fQIUvnfTaF/taaUDoJqlggJLko6GWkFDXPjSw6zzThj7DScvZRVultyOzdtHV
Kc8W85qKyvUzdsRhAmKCLxO9GCbhOlGxTRAiH5GSjr+jiWHipqzA16F5Ysz4nqcm
8mpHVKKhe6fjrCQeHSEu0OVZnUlAaDtV+gQVulgkaZXKj0HaUSbvCwQwtYGGFhjr
vf3nbMpgYnXaoL9QN8i5iFs38Z2aQn9F67lbOA6iPSF05po/FNx4f6lQeFV9ozv4
riY7oo0g1Bw=
=7TMo
-----END PGP SIGNATURE-----

M
M
Maxime Devos wrote on 30 May 2023 16:41
Re: bug#63794: Bad error reporting in case of 404 during downloading
(name . Christopher Baines)(address . mail@cbaines.net)(address . 63794@debbugs.gnu.org)
721b994c-7726-a9eb-4173-05c0b1e3502a@telenet.be
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: OpenPGP_signature
S
S
Simon Tournier wrote on 30 May 2023 17:53
87fs7dstn6.fsf@gmail.com
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:

Toggle quote (52 lines)
> 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\")"

Toggle snippet (38 lines)
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>

Ok, let try to manually build webkitgkt:

Toggle snippet (43 lines)
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

Ah, ok let apply the suggestion:

Toggle snippet (43 lines)
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>

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
S
S
Simon Tournier wrote on 31 May 2023 11:02
Re: bug#63794:
(address . 63794@debbugs.gnu.org)
86fs7cq3fs.fsf@gmail.com
Hi Chris,

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

Toggle quote (3 lines)
> 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
M
M
Maxime Devos wrote on 8 Jun 2023 22:50
Re: bug#63794: Bad error reporting in case of 404 during downloading
(address . 63794@debbugs.gnu.org)
03aa0945-3ba8-7b06-2c93-255a58ab4cdd@telenet.be
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: OpenPGP_signature
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 63794@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 63794
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch