unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23030: Guix commands broken
@ 2016-03-16 15:46 Andreas Enge
  2016-03-17  5:46 ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2016-03-16 15:46 UTC (permalink / raw)
  To: 23030

Hello,

sorry for the vague title; it looks as if one of the recent commits broke the
daemon for me.

$ ./pre-inst-env guix build font-forge --no-substitutes
substitute: Backtrace:
substitute: In ice-9/boot-9.scm:
substitute:   63: 19 [call-with-prompt prompt0 ...]
substitute: In ice-9/eval.scm:
substitute:  432: 18 [eval # #]
substitute: In ice-9/boot-9.scm:
substitute: 2401: 17 [save-module-excursion #<procedure 1d3f940 at ice-9/boot-9.scm:4045:3 ()>]
substitute: 4050: 16 [#<procedure 1d3f940 at ice-9/boot-9.scm:4045:3 ()>]
substitute: 1724: 15 [%start-stack load-stack ...]
substitute: 1729: 14 [#<procedure 1d57ea0 ()>]
substitute: In unknown file:
substitute:    ?: 13 [primitive-load "/gnu/store/3lg5c1nidbj0kjdz5b63hn3vp29kzf0s-guix-0.9.0.c3f29bc/bin/.guix-real"]
substitute: In guix/ui.scm:
substitute: 1175: 12 [run-guix-command substitute "--query"]
substitute: In ice-9/boot-9.scm:
substitute:  157: 11 [catch getaddrinfo-error ...]
substitute:  157: 10 [catch srfi-34 #<procedure 2c14080 at guix/ui.scm:411:2 ()> ...]
substitute:  157: 9 [catch system-error ...]
substitute: In guix/scripts/substitute.scm:
substitute:  946: 8 [#<procedure 2c140a0 at guix/scripts/substitute.scm:939:3 ()>]
substitute:  804: 7 [process-query "info /gnu/store/qdz5fp0g0sic5vc8ysvkbdm6yilcbl0d-fontforge-20120731-b " ...]
substitute:  633: 6 [lookup-narinfos/diverse # #]
substitute:  617: 5 [lookup-narinfos "https://hydra.gnu.org" #]
substitute:  589: 4 [fetch-narinfos "https://hydra.gnu.org" #]
substitute:  222: 3 [download-cache-info "https://hydra.gnu.org"]
substitute: In guix/records.scm:
substitute:  331: 2 [recutils->alist #<unspecified>]
substitute: In ice-9/rdelim.scm:
substitute:  184: 1 [read-line #<unspecified> trim]
substitute: In unknown file:
substitute:    ?: 0 [%read-line #<unspecified>]
substitute: 
substitute: ERROR: In procedure %read-line:
substitute: ERROR: In procedure %read-line: Wrong type argument in position 1 (expecting open input port): #<unspecified>
guix build: error: corrupt input while restoring archive from #<closed: file 0>

This is with commit 23d60ba65c137abf472a25db7317154abfc4af4d, and I also just
reconfigured my system to profit from the most recent updates to the daemon,
which would allow me to drop typing the "--substitute-urls=..." over and over
again.

If I understood the commit messages correctly, a mirror should be used instead
of the above https://hydra.gnu.org.

Even "./pre-inst-env guix system reconfigure ... --no-substitutes" is broken
with the same message, even after doing a ./bootstrap and complete
recompilation.

Time to go back to a previous system...

Andreas

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

* bug#23030: Guix commands broken
  2016-03-16 15:46 bug#23030: Guix commands broken Andreas Enge
@ 2016-03-17  5:46 ` Leo Famulari
  2016-03-17  8:46   ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2016-03-17  5:46 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 23030

On Wed, Mar 16, 2016 at 04:46:11PM +0100, Andreas Enge wrote:
> Hello,
> 
> sorry for the vague title; it looks as if one of the recent commits broke the
> daemon for me.
> 
> $ ./pre-inst-env guix build font-forge --no-substitutes
> substitute: Backtrace:
> substitute: In ice-9/boot-9.scm:
> substitute:   63: 19 [call-with-prompt prompt0 ...]
> substitute: In ice-9/eval.scm:
> substitute:  432: 18 [eval # #]
> substitute: In ice-9/boot-9.scm:
> substitute: 2401: 17 [save-module-excursion #<procedure 1d3f940 at ice-9/boot-9.scm:4045:3 ()>]
> substitute: 4050: 16 [#<procedure 1d3f940 at ice-9/boot-9.scm:4045:3 ()>]
> substitute: 1724: 15 [%start-stack load-stack ...]
> substitute: 1729: 14 [#<procedure 1d57ea0 ()>]
> substitute: In unknown file:
> substitute:    ?: 13 [primitive-load "/gnu/store/3lg5c1nidbj0kjdz5b63hn3vp29kzf0s-guix-0.9.0.c3f29bc/bin/.guix-real"]
> substitute: In guix/ui.scm:
> substitute: 1175: 12 [run-guix-command substitute "--query"]
> substitute: In ice-9/boot-9.scm:
> substitute:  157: 11 [catch getaddrinfo-error ...]
> substitute:  157: 10 [catch srfi-34 #<procedure 2c14080 at guix/ui.scm:411:2 ()> ...]
> substitute:  157: 9 [catch system-error ...]
> substitute: In guix/scripts/substitute.scm:
> substitute:  946: 8 [#<procedure 2c140a0 at guix/scripts/substitute.scm:939:3 ()>]
> substitute:  804: 7 [process-query "info /gnu/store/qdz5fp0g0sic5vc8ysvkbdm6yilcbl0d-fontforge-20120731-b " ...]
> substitute:  633: 6 [lookup-narinfos/diverse # #]
> substitute:  617: 5 [lookup-narinfos "https://hydra.gnu.org" #]
> substitute:  589: 4 [fetch-narinfos "https://hydra.gnu.org" #]
> substitute:  222: 3 [download-cache-info "https://hydra.gnu.org"]
> substitute: In guix/records.scm:
> substitute:  331: 2 [recutils->alist #<unspecified>]
> substitute: In ice-9/rdelim.scm:
> substitute:  184: 1 [read-line #<unspecified> trim]
> substitute: In unknown file:
> substitute:    ?: 0 [%read-line #<unspecified>]
> substitute: 
> substitute: ERROR: In procedure %read-line:
> substitute: ERROR: In procedure %read-line: Wrong type argument in position 1 (expecting open input port): #<unspecified>
> guix build: error: corrupt input while restoring archive from #<closed: file 0>

This looks like the same error as in <http://bugs.gnu.org/22937>, which
I am also getting when I try to fetch substitutes over https.

> 
> This is with commit 23d60ba65c137abf472a25db7317154abfc4af4d, and I also just
> reconfigured my system to profit from the most recent updates to the daemon,
> which would allow me to drop typing the "--substitute-urls=..." over and over
> again.
> 
> If I understood the commit messages correctly, a mirror should be used instead
> of the above https://hydra.gnu.org.
> 
> Even "./pre-inst-env guix system reconfigure ... --no-substitutes" is broken
> with the same message, even after doing a ./bootstrap and complete
> recompilation.
> 
> Time to go back to a previous system...
> 
> Andreas
> 
> 
> 
> 

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

* bug#23030: Guix commands broken
  2016-03-17  5:46 ` Leo Famulari
@ 2016-03-17  8:46   ` Ludovic Courtès
  2016-03-17 10:44     ` Andreas Enge
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2016-03-17  8:46 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 23030

Leo Famulari <leo@famulari.name> skribis:

> This looks like the same error as in <http://bugs.gnu.org/22937>, which
> I am also getting when I try to fetch substitutes over https.

Indeed.  Commit df061d079b50111280aa7209b3b3c4cf21fde218 changes the
default substitute URLs to https.

For this to work, you need to make sure that guix-daemon is running
‘guix substitute’ with the fix for #22937.

On GuixSD, it’s a matter of reconfiguring (I updated the ‘guix-devel’
snapshot on master yesterday.)

HTH!

Ludo’.

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

* bug#23030: Guix commands broken
  2016-03-17  8:46   ` Ludovic Courtès
@ 2016-03-17 10:44     ` Andreas Enge
  2016-03-17 13:01       ` Andreas Enge
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2016-03-17 10:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23030

On Thu, Mar 17, 2016 at 09:46:11AM +0100, Ludovic Courtès wrote:
> Indeed.  Commit df061d079b50111280aa7209b3b3c4cf21fde218 changes the
> default substitute URLs to https.
> For this to work, you need to make sure that guix-daemon is running
> ‘guix substitute’ with the fix for #22937.
> On GuixSD, it’s a matter of reconfiguring (I updated the ‘guix-devel’
> snapshot on master yesterday.)

I see! I am always assuming that when I reconfigure, the current copy of guix
(the one from guix pull, or the one from git) is used in the resulting system
to run guix and the daemon afterwards, while in reality it is the latest guix
snapshot before that. So reconfiguring does not work unless the snapshot is
also updated.

Now to make things work in this particular case, one also needs to give
"--substitute-urls=http://..." to the "guix system reconfigure" command
to turn off https.

Adding only "--no-substitutes" is not enough; I presume this is due to the
"feature" of grafts only partially honouring this parameter, as already
discussed.

Andreas

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

* bug#23030: Guix commands broken
  2016-03-17 10:44     ` Andreas Enge
@ 2016-03-17 13:01       ` Andreas Enge
  2016-03-21 22:04         ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2016-03-17 13:01 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23030

Things work for me now, thanks for the help!

However, I am still seeing this with latest git:
substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0%

Should this not be https://mirror.hydra.gnu.org?

Andreas

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

* bug#23030: Guix commands broken
  2016-03-17 13:01       ` Andreas Enge
@ 2016-03-21 22:04         ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2016-03-21 22:04 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 23030-done

Andreas Enge <andreas@enge.fr> skribis:

> Things work for me now, thanks for the help!
>
> However, I am still seeing this with latest git:
> substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0%
>
> Should this not be https://mirror.hydra.gnu.org?

The daemon’s default setting is to use the two URLs: first mirror.*,
then hydra.*.

Ludo’.

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

end of thread, other threads:[~2016-03-21 22:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 15:46 bug#23030: Guix commands broken Andreas Enge
2016-03-17  5:46 ` Leo Famulari
2016-03-17  8:46   ` Ludovic Courtès
2016-03-17 10:44     ` Andreas Enge
2016-03-17 13:01       ` Andreas Enge
2016-03-21 22:04         ` 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).