Subject: Re: bug#47258: guix pull bug: the program '/gnu/store/...-compute-guix-derivation' failed to compute the derivation for Guix

From: zimoun <[email-masked]>
Date: Fri, 19 Mar 2021 13:50:58 +0100

Hi Pierre,

On Fri, 19 Mar 2021 at 11:25, Pierre Neidhardt <[email-masked]> wrote:

> --8<---------------cut here---------------start------------->8---
> $ guix pull

[...]

> @ substituter-succeeded /gnu/store/1nxd28y29f0ksmbplbrshkc71bky2g8n-gnutls-3.6.15-debug
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> @ substituter-started /gnu/store/d2c09h0xxlmql98yd989hibi347arwqv-libtiff-4.2.0-doc substitute
> guix substitute: error: host name lookup error: Name or service not known
> @ substituter-failed /gnu/store/d2c09h0xxlmql98yd989hibi347arwqv-libtiff-4.2.0-doc  fetching path `/gnu/store/d2c09h0xxlmql98yd989hibi347arwqv-libtiff-4.2.0-doc' (empty status: '')
> Backtrace:
>           11 (primitive-load "/gnu/store/h0lkna6hicpsdxx9sxgapqpy2p1y9azw-compute-guix-derivation")
> In ice-9/eval.scm:
>     155:9 10 (_ _)
>     159:9  9 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-user) 7fd77621cf?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
> In ./guix/store.scm:
>   2066:24  8 (run-with-store #<store-connection 256.99 7fd7743f95f0> _ #:guile-for-build _ #:system _ #:target _)
>    1900:8  7 (_ _)
> In ./guix/gexp.scm:
>    256:18  6 (_ _)
>    1136:2  5 (_ _)
>    1002:2  4 (_ _)
>     849:4  3 (_ _)
> In ./guix/store.scm:
>   1948:12  2 (_ #<store-connection 256.99 7fd7743f95f0>)
>    1362:5  1 (map/accumulate-builds #<store-connection 256.99 7fd7743f95f0> _ _)
>   1373:15  0 (_ #<store-connection 256.99 7fd7743f95f0> _ _)
>
> ./guix/store.scm:1373:15: ERROR:
>   1. &store-protocol-error:
>       message: "some substitutes for the outputs of derivation `/gnu/store/plq0nz84mannv87aiip646vr2a1z7mb1-libtiff-4.2.0.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source "
>       status: 1
> guix pull: error: You found a bug: the program '/gnu/store/h0lkna6hicpsdxx9sxgapqpy2p1y9azw-compute-guix-derivation'
> failed to compute the derivation for Guix (version: "1155a88308df7649fe74bd5bb8279a4d103ce386"; system: "x86_64-linux";
> host version: "5fa4814b4f12b82a7a7747bfacfb45b0348eae1e"; pull-version: 1).
> Please report it by email to <[email-masked]>.
> --8<---------------cut here---------------end--------------->8---

The similar command:

  guix machine --commit=5fa4814b4f12b82a7a7747bfacfb45b0348eae1e \
       -- time-machine --commit=1155a88308df7649fe74bd5bb8279a4d103ce386 \ 
       -- help

works for me.

It looks like a transient network issue.  I agree it is annoying.
First, it should automatically fallback.  And in any case, it should not
raise this ugly backtrace.

Cheers,
simon