Subject: bug#70652: Download fallback fails to consider bordeaux.guix and to download nar

From: Ludovic Courtès <[email-masked]>
Date: Mon, 29 Apr 2024 18:15:45 +0200

Hi!

Minutes ago, after someone reported the issue on IRC, I got this:

--8<---------------cut here---------------start------------->8---
$ guix build /gnu/store/cq4j0mkbni4arlw9b7d1d8jcllbdb3yf-linux-libre-5.10.35-gnu.tar.xz.drv --no-substitutes
The following derivation will be built:
  /gnu/store/cq4j0mkbni4arlw9b7d1d8jcllbdb3yf-linux-libre-5.10.35-gnu.tar.xz.drv
building /gnu/store/cq4j0mkbni4arlw9b7d1d8jcllbdb3yf-linux-libre-5.10.35-gnu.tar.xz.drv...

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://linux-libre.fsfla.org/pub/linux-libre/releases/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
download failed "https://linux-libre.fsfla.org/pub/linux-libre/releases/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-5.10.35-gnu.tar.xz...
Throw to key `ftp-error' with args `(#<input-output: socket 14> "RETR linux-libre-5.10.35-gnu.tar.xz" 550 "Failed to open file.\r")'.

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://ftpmirror.gnu.org/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
following redirection to `https://mirror.cyberbits.eu/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz'...
download failed "https://mirror.cyberbits.eu/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From ftp://ftp.cs.tu-berlin.de/pub/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
In procedure getaddrinfo: Name or service not known

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From ftp://ftp.funet.fi/pub/mirrors/ftp.gnu.org/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
Throw to key `ftp-error' with args `(#<input-output: socket 17> "CWD 5.10.35-gnu" 550 "Can't change directory to 5.10.35-gnu: No such file or directory\r")'.

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From http://ftp.gnu.org/pub/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
download failed "http://ftp.gnu.org/pub/gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://ci.guix.gnu.org/file/linux-libre-5.10.35-gnu.tar.xz/sha256/0q2rnchad55d49f3rajrkazz0fcjv1irwrdb1hwjnl01fzm2gjk3...
download failed "https://ci.guix.gnu.org/file/linux-libre-5.10.35-gnu.tar.xz/sha256/0q2rnchad55d49f3rajrkazz0fcjv1irwrdb1hwjnl01fzm2gjk3" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://tarballs.nixos.org/sha256/0q2rnchad55d49f3rajrkazz0fcjv1irwrdb1hwjnl01fzm2gjk3...
download failed "https://tarballs.nixos.org/sha256/0q2rnchad55d49f3rajrkazz0fcjv1irwrdb1hwjnl01fzm2gjk3" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://archive.softwareheritage.org/api/1/content/sha256:63ca27ea7701502b390cab659e63d89239f0bf9a59aa3c5c22ad94a620b35960/raw/...
download failed "https://archive.softwareheritage.org/api/1/content/sha256:63ca27ea7701502b390cab659e63d89239f0bf9a59aa3c5c22ad94a620b35960/raw/" 404 "Not Found"

Starting download of /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz
>From https://web.archive.org/web/20240429180042/https://linux-libre.fsfla.org/pub/linux-libre/releases/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz...
download failed "https://web.archive.org/web/20240429180042/https://linux-libre.fsfla.org/pub/linux-libre/releases/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz" 404 "NOT FOUND"
Trying to use Disarchive to assemble /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz...

Retrieving Disarchive spec from https://disarchive.guix.gnu.org/sha256/63ca27ea7701502b390cab659e63d89239f0bf9a59aa3c5c22ad94a620b35960 ...
Assembling the directory linux-libre-5.10.35-gnu
Downloading /gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz from Software Heritage...
SWH: object swh:1:dir:dde58dfcb25b84381794e68ad68e34e4c593aa71 could not be fetched from the vault
Could not resolve directory reference
failed to download "/gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz" from ("https://linux-libre.fsfla.org/pub/linux-libre/releases/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz" "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-5.10.35-gnu.tar.xz" "mirror://gnu/linux-libre/5.10.35-gnu/linux-libre-5.10.35-gnu.tar.xz")
builder for `/gnu/store/cq4j0mkbni4arlw9b7d1d8jcllbdb3yf-linux-libre-5.10.35-gnu.tar.xz.drv' failed to produce output path `/gnu/store/a1sqrdsy1xrk6cs84kzgg93rw28zcaa4-linux-libre-5.10.35-gnu.tar.xz'
build of /gnu/store/cq4j0mkbni4arlw9b7d1d8jcllbdb3yf-linux-libre-5.10.35-gnu.tar.xz.drv failed
--8<---------------cut here---------------end--------------->8---

Notice that bordeaux.guix is not tried and the ‘download-nar’ method
isn’t used either.

(In the meantime I restored the tarball in the store of berlin, so
ci.guix.gnu.org/file/… now works.)

Ludo’.