unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31892: guix pull ignores --substitute-urls in some cases
@ 2018-06-19  3:51 Vagrant Cascadian
  2018-06-26 12:33 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Vagrant Cascadian @ 2018-06-19  3:51 UTC (permalink / raw)
  To: 31892

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

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

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

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

* bug#31892: guix pull ignores --substitute-urls in some cases
  2018-06-19  3:51 bug#31892: guix pull ignores --substitute-urls in some cases Vagrant Cascadian
@ 2018-06-26 12:33 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-06-26 12:33 UTC (permalink / raw)
  To: Vagrant Cascadian; +Cc: 31892-done

Hello Vagrant,

Vagrant Cascadian <vagrant@debian.org> skribis:

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

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

end of thread, other threads:[~2018-06-26 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19  3:51 bug#31892: guix pull ignores --substitute-urls in some cases Vagrant Cascadian
2018-06-26 12:33 ` Ludovic Courtès

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