guix pull ignores --substitute-urls in some cases

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Vagrant Cascadian
Owner
unassigned
Submitted by
Vagrant Cascadian
Severity
normal
V
V
Vagrant Cascadian wrote on 19 Jun 2018 05:51
(address . bug-guix@gnu.org)
87in6fph68.fsf@aikidev.net
I've seen this a few times, and it seems like guix pull remembers old
substitutes. I tried disabling one of the substitutes that guix-daemon
is configured to use since it wasn't online at the time, but it tries to
use it anyways:

guix pull --substitute-urls='http://10.0.0.15:8081http://10.0.0.15:8082' --branch=elfutils-0.172 --url=/home/vagrant/src/guix-bare

guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
Updating from Git repository at '/home/vagrant/src/guix-bare'...
Building from Git commit b606d8625660ed035e98db7035f487e8b90b4d65...
guile: warning: failed to install locale
Computing Guix derivation for 'aarch64-linux'... -fetching path `/gnu/store/d1im1cqpajfyl6w205vpmw7pqv2j1y1b-libpthread-stubs-0.4'...
-
guix substitute: error: connect: No route to host
fetching path `/gnu/store/d1im1cqpajfyl6w205vpmw7pqv2j1y1b-libpthread-stubs-0.4' failed with exit code 1
fetching path `/gnu/store/yalicl04jvm63lwsnck336w96g88bi80-bash-4.4.19'...
killing process 860
Backtrace:
17 (primitive-load "/gnu/store/xv6vjm9rz14c6y7ysr8rlqd6qaj?")
In ice-9/boot-9.scm:
142:2 16 (dynamic-wind _ _ #<procedure 1fd1b960 at ice-9/eval.sc?>)
In ice-9/eval.scm:
155:9 15 (_ _)
159:9 14 (_ #(#(#<directory (guile-user) 1f85b140> "aarch64-?" ?)))
In ./guix/store.scm:
1414:24 13 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In ./guix/gexp.scm:
/ 666:2 12 (_ _)
In ./guix/monads.scm:
485:9 11 (_ _)
In ./guix/gexp.scm:
538:22 10 (_ _)
666:2 9 (_ _)
In ./guix/monads.scm:
485:9 8 (_ _)
In ./guix/gexp.scm:
538:22 7 (_ _)
In ./guix/store.scm:
1333:38 6 (_ #<build-daemon 256.97 1f91ecd0>)
In ./guix/packages.scm:
878:14 5 (cache! #<weak-table 490/883> #<package graphviz@2.40.?> ?)
In unknown file:
4 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In ./guix/grafts.scm:
310:4 3 (graft-derivation #<build-daemon 256.97 1f91ecd0> #<de?> ?)
188:4 2 (references-oracle #<build-daemon 256.97 1f91ecd0> #<de?>)
197:20 1 (_ _ _)
In ./guix/store.scm:
934:15 0 (_ #<build-daemon 256.97 1f91ecd0> _ _)

./guix/store.scm:934:15: Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message: "some substitutes for the outputs of derivation `/gnu/store/jvfkbsw0fgi1ihnc8g2dhixgsy1gzk9b-libpthread-stubs-0.4.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source " status: 1] 262abb10>)'.
Backtrace:
9 (primitive-load "/gnu/store/xl7cb97kpmpwc49yd9s6hhk21d8?")
In guix/ui.scm:
1557:12 8 (run-guix-command _ . _)
In ice-9/boot-9.scm:
837:9 7 (catch _ _ #<procedure ffffb23ef980 at guix/ui.scm:593?> ?)
837:9 6 (catch _ _ #<procedure ffffb23ef998 at guix/ui.scm:711?> ?)
837:9 5 (catch _ _ #<procedure ffffb02ac7a0 at guix/scripts/pu?> ?)
In guix/scripts/pull.scm:
391:22 4 (_)
In guix/store.scm:
1414:24 3 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/pull.scm:
239:2 2 (_ _)
In ice-9/eval.scm:
191:27 1 (_ #(#(#<directory (build-self) ae28dc0> #<procedu?>) ?))
In unknown file:
0 (scm-error misc-error #f "~A ~S" ("invalid build re?" ?) ?)

ERROR: In procedure scm-error:
ERROR: invalid build result (#<derivation /gnu/store/015sq2sm50yv22x4n5pcvr0psy51pfvr-compute-guix-derivation.drv => /gnu/store/xv6vjm9rz14c6y7ysr8rlqd6qaj3w8v3-compute-guix-derivation bdb4230> "")



live well,
vagrant
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlsofc8ACgkQt4uC1IFL
kbY4whAAqjIghMB9voa/+qBulhtnpUnEmLq3wYRoo0451U/y9vd3MRWf1aJbq1bt
qml/8viZaqiyWqbWId3Us1/P5OrmPWCx4wmru/3KKKeRFWdunxpuxYdDxcGYDKLJ
ed2D0zMJ0+mQZRwzjp46FqhWbNa5NcyVvy9q7vg2KxtWXOg5F0dGxq7eIieziJZD
/nsuSsFiX4XxZVI0amSkk8SJSqxsm4Gtjp6GJkqWLN6s2D8DsQo9KzyVJc/PjXkx
n4KJ6/vWc2rUlsLq2IyNhlGAS5Gl8gtoyoM1t0dGpYvpHkRVLiqvw7UoG72jRpbl
t4hRNXqvKClJEVZ9ObWR31ggnHMHyS5z1oKg0fCjENye5PgXRbEYhKn8CSCOGHPQ
Inj9FbD+6LKuJWszKZvqkPePgD+Jxr2xfsN3KchYyjam5UaMGiOhPYdADiF+e5Um
Wrk9jaP0y4LytRjDLwJuSvPsX/Vf1a11ei/DDCaMZmW1tRt3THjJ7jfK4cbeQL3Z
9Lwcp1P+OrPJzxiAHuTMSr3ncowMUSBZ0gTxeoaGbRtVCzG5MCLowhJcwZ0C+piH
6k06HI8BQKbTMzeWZg3MkPkdTqtdBpJe/lSESASIQ/Ty4qtLKp8XLagldpNU6gsN
Gq88ZR4vnHHTLf3Lq7twqWkurybX8gJwt32xQFJQYulYDwhyLqw=
=82T3
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 26 Jun 2018 14:33
(name . Vagrant Cascadian)(address . vagrant@debian.org)(address . 31892-done@debbugs.gnu.org)
87zhzh4tj0.fsf@gnu.org
Hello Vagrant,

Vagrant Cascadian <vagrant@debian.org> skribis:

Toggle quote (17 lines)
> I've seen this a few times, and it seems like guix pull remembers old
> substitutes. I tried disabling one of the substitutes that guix-daemon
> is configured to use since it wasn't online at the time, but it tries to
> use it anyways:
>
> guix pull --substitute-urls='http://10.0.0.15:8081 http://10.0.0.15:8082' --branch=elfutils-0.172 --url=/home/vagrant/src/guix-bare
>
> guile: warning: failed to install locale
> warning: failed to install locale: Invalid argument
> Updating from Git repository at '/home/vagrant/src/guix-bare'...
> Building from Git commit b606d8625660ed035e98db7035f487e8b90b4d65...
> guile: warning: failed to install locale
> Computing Guix derivation for 'aarch64-linux'... -fetching path `/gnu/store/d1im1cqpajfyl6w205vpmw7pqv2j1y1b-libpthread-stubs-0.4'...
> -
> |Downloading http://10.0.0.157:8080/nar/gzip/d1im1cqpajfyl6w205vpmw7pqv2j1y1b-libpthread-stubs-0.4...
> guix substitute: error: connect: No route to host

This bug was due to the fact that the ‘compute-guix-derivation’ program
would open a new connection to the store, and thus it would not inherit
the build options of its parent ‘guix pull’ process (substitute URLs,
build hook, timeouts, etc.).

Should be fixed with 790c3e019a5410018bd31596c2dcda5d0efb0d36.

Thanks,
Ludo’.
Closed
?