unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* error: corrupt input while restoring archive from socket
@ 2021-03-09  7:48 Fulbert
  2021-03-09  7:52 ` divoplade
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Fulbert @ 2021-03-09  7:48 UTC (permalink / raw)
  To: help-guix

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

Hello Guixers,

For the past few days… maybe a couple of weeks (not sure when
it started exactly), I have had frequent errors with
substitutions. Those errors are not [always] reproducible as
another [or more] installation attempt succeed on the same [set of]
file[s].

My computers (hardware/software) does not seem to be the
cause as I have experienced the same problem on 2 PC's (not
sharing the exact same guix configurations).

Attached, 2 files with such an error. Note that I have
translated the messages back to english (from french)… just in
case you find some typos and wonder how guix could mistype… ^^

The error message common to all those recent failures is :
  error: corrupt input while restoring archive from socket

Any idea ? I have not found any recent similar issue on
issues.guix.gnu.org.

[-- Attachment #2: guix-substitution-failures-1.txt --]
[-- Type: text/plain, Size: 2248 bytes --]

downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
 cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%

Backtrace:
In guix/ui.scm:
  2164:12 19 (run-guix-command _ . _)
In guix/scripts/substitute.scm:
    633:2 18 (guix-substitute . _)
In unknown file:
          17 (with-continuation-barrier #<procedure thunk ()>)
In ice-9/boot-9.scm:
  1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
          15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
In ice-9/boot-9.scm:
  1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
  1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
In guix/scripts/substitute.scm:
   682:17 11 (_)
    391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
In ice-9/boot-9.scm:
  1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    400:9  8 (_)
In ice-9/boot-9.scm:
  1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
  1669:16  6 (raise-exception _ #:continuable? _)
  1667:16  5 (raise-exception _ #:continuable? _)
  1669:16  4 (raise-exception _ #:continuable? _)
  1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
  1669:16  2 (raise-exception _ #:continuable? _)
  1667:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Bad http-version header component: ¡_¨””8á—¯ñÿ

Backtrace:
In ice-9/boot-9.scm:
  1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           3 (apply-smob/0 #<thunk 7f7228b5a520>)
In ice-9/boot-9.scm:
    718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
In guix/ui.scm:
  2164:12  0 (run-guix-command _ . _)

guix/ui.scm:2164:12: In procedure run-guix-command:
Bad http-version header component: ¡_¨””8á—¯ñÿ

substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
guix package: error: corrupt input while restoring archive from socket

[-- Attachment #3: guix-substitution-failures-2.txt --]
[-- Type: text/plain, Size: 2281 bytes --]

downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
 ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%

Backtrace:
In guix/ui.scm:
  2164:12 19 (run-guix-command _ . _)
In guix/scripts/substitute.scm:
    633:2 18 (guix-substitute . _)
In unknown file:
          17 (with-continuation-barrier #<procedure thunk ()>)
In ice-9/boot-9.scm:
  1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
          15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
In ice-9/boot-9.scm:
  1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
  1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
In guix/scripts/substitute.scm:
   682:17 11 (_)
    391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
In ice-9/boot-9.scm:
  1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    400:9  8 (_)
In ice-9/boot-9.scm:
  1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
  1669:16  6 (raise-exception _ #:continuable? _)
  1667:16  5 (raise-exception _ #:continuable? _)
  1669:16  4 (raise-exception _ #:continuable? _)
  1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
  1669:16  2 (raise-exception _ #:continuable? _)
  1667:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Bad Read-Header-Line header: #<eof>

Backtrace:
In ice-9/boot-9.scm:
  1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           3 (apply-smob/0 #<thunk 7fb9bf0be520>)
In ice-9/boot-9.scm:
    718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
In guix/ui.scm:
  2164:12  0 (run-guix-command _ . _)

guix/ui.scm:2164:12: In procedure run-guix-command:
Bad Read-Header-Line header: #<eof>

substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
guix package: error: corrupt input while restoring archive from socket

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-09  7:48 error: corrupt input while restoring archive from socket Fulbert
@ 2021-03-09  7:52 ` divoplade
  2021-03-09  9:19   ` Fulbert
  2021-03-11 13:59 ` Mikhail Kryshen
  2021-03-22 10:17 ` Fulbert
  2 siblings, 1 reply; 10+ messages in thread
From: divoplade @ 2021-03-09  7:52 UTC (permalink / raw)
  To: Fulbert, help-guix

Hello,

Le mardi 09 mars 2021 à 08:48 +0100, Fulbert a écrit :
> 
> Attached, 2 files with such an error. Note that I have
> translated the messages back to english (from french)… just in
> case you find some typos and wonder how guix could mistype… ^^
You can run LANG=C guix ... to directly have the error messages in
english.
> 
> The error message common to all those recent failures is :
>   error: corrupt input while restoring archive from socket
> 
> Any idea ? I have not found any recent similar issue on
> issues.guix.gnu.org.
I have had similar problems, you might want to run with --fallback (for
guix pull, guix package) to compile from source if the substitutes are
buggy.



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

* Re: error: corrupt input while restoring archive from socket
  2021-03-09  7:52 ` divoplade
@ 2021-03-09  9:19   ` Fulbert
  0 siblings, 0 replies; 10+ messages in thread
From: Fulbert @ 2021-03-09  9:19 UTC (permalink / raw)
  To: help-guix

Le Tue, Mar 09, 2021 at 08:52:12AM +0100, divoplade a écrit :
> Hello,

Hello Divoplade and thanks for your help,

> 
> Le mardi 09 mars 2021 à 08:48 +0100, Fulbert a écrit :
> > 
> > Attached, 2 files with such an error. Note that I have
> > translated the messages back to english (from french)… just in
> > case you find some typos and wonder how guix could mistype… ^^
> You can run LANG=C guix ... to directly have the error messages in
> english.

Good tip. I knew and used it but, as I said, it is not reproducible
so I would have to setup english as main language to catch all
errors in english… and would miss bugs limited/related to french
translations ;]

> > 
> > The error message common to all those recent failures is :
> >   error: corrupt input while restoring archive from socket
> > 
> > Any idea ? I have not found any recent similar issue on
> > issues.guix.gnu.org.
> I have had similar problems, you might want to run with --fallback (for
> guix pull, guix package) to compile from source if the substitutes are
> buggy.

Good tip again and will use it when stuck on one substitute. Thank
you.  It's just that here, the problem does not realy seem to be
buggy substitutes, as subsequent attempts would [generally] succeed. 

And if the transmissions over the network were to blame, I guess I
would have other issues besides guix substitutes ?! So… I am curious
as to what could cause this recent rise in guix substitue errors,
and eventually, how to fix it.

Thanks again for your time and help.


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

* Re: error: corrupt input while restoring archive from socket
  2021-03-09  7:48 error: corrupt input while restoring archive from socket Fulbert
  2021-03-09  7:52 ` divoplade
@ 2021-03-11 13:59 ` Mikhail Kryshen
  2021-03-11 14:41   ` Fulbert
  2021-03-12  0:08   ` Mikhail Kryshen
  2021-03-22 10:17 ` Fulbert
  2 siblings, 2 replies; 10+ messages in thread
From: Mikhail Kryshen @ 2021-03-11 13:59 UTC (permalink / raw)
  To: Fulbert, help-guix

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

Fulbert <fulbert@bluewin.ch> writes:

> Hello Guixers,
>
> For the past few days… maybe a couple of weeks (not sure when
> it started exactly), I have had frequent errors with
> substitutions. Those errors are not [always] reproducible as
> another [or more] installation attempt succeed on the same [set of]
> file[s].
>
> My computers (hardware/software) does not seem to be the
> cause as I have experienced the same problem on 2 PC's (not
> sharing the exact same guix configurations).
>
> Attached, 2 files with such an error. Note that I have
> translated the messages back to english (from french)… just in
> case you find some typos and wonder how guix could mistype… ^^
>
> The error message common to all those recent failures is :
>   error: corrupt input while restoring archive from socket

I'm seeing this too, but only when guix tries to download from my own
local substitute server, which runs current guix-publish exposed
directly to the network without reverse proxy.  Downloading from
ci.guix.gnu.org works without errors.  Could this be a race condition
related to download rate?

> Any idea ? I have not found any recent similar issue on
> issues.guix.gnu.org.
> downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
>  cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%
>
> Backtrace:
> In guix/ui.scm:
>   2164:12 19 (run-guix-command _ . _)
> In guix/scripts/substitute.scm:
>     633:2 18 (guix-substitute . _)
> In unknown file:
>           17 (with-continuation-barrier #<procedure thunk ()>)
> In ice-9/boot-9.scm:
>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>           15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
> In ice-9/boot-9.scm:
>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>   1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
> In guix/scripts/substitute.scm:
>    682:17 11 (_)
>     391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
> In ice-9/boot-9.scm:
>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/scripts/substitute.scm:
>     400:9  8 (_)
> In ice-9/boot-9.scm:
>   1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
>   1669:16  6 (raise-exception _ #:continuable? _)
>   1667:16  5 (raise-exception _ #:continuable? _)
>   1669:16  4 (raise-exception _ #:continuable? _)
>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>   1669:16  2 (raise-exception _ #:continuable? _)
>   1667:16  1 (raise-exception _ #:continuable? _)
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> Bad http-version header component: ¡_¨””8á—¯ñÿ
>
> Backtrace:
> In ice-9/boot-9.scm:
>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            3 (apply-smob/0 #<thunk 7f7228b5a520>)
> In ice-9/boot-9.scm:
>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
> In guix/ui.scm:
>   2164:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:2164:12: In procedure run-guix-command:
> Bad http-version header component: ¡_¨””8á—¯ñÿ
>
> substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
> guix package: error: corrupt input while restoring archive from socket
> downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
>  ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%
>
> Backtrace:
> In guix/ui.scm:
>   2164:12 19 (run-guix-command _ . _)
> In guix/scripts/substitute.scm:
>     633:2 18 (guix-substitute . _)
> In unknown file:
>           17 (with-continuation-barrier #<procedure thunk ()>)
> In ice-9/boot-9.scm:
>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>           15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
> In ice-9/boot-9.scm:
>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>   1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
> In guix/scripts/substitute.scm:
>    682:17 11 (_)
>     391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
> In ice-9/boot-9.scm:
>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/scripts/substitute.scm:
>     400:9  8 (_)
> In ice-9/boot-9.scm:
>   1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
>   1669:16  6 (raise-exception _ #:continuable? _)
>   1667:16  5 (raise-exception _ #:continuable? _)
>   1669:16  4 (raise-exception _ #:continuable? _)
>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>   1669:16  2 (raise-exception _ #:continuable? _)
>   1667:16  1 (raise-exception _ #:continuable? _)
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> Bad Read-Header-Line header: #<eof>
>
> Backtrace:
> In ice-9/boot-9.scm:
>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            3 (apply-smob/0 #<thunk 7fb9bf0be520>)
> In ice-9/boot-9.scm:
>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
> In guix/ui.scm:
>   2164:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:2164:12: In procedure run-guix-command:
> Bad Read-Header-Line header: #<eof>
>
> substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
> guix package: error: corrupt input while restoring archive from socket

--
Mikhail

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

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-11 13:59 ` Mikhail Kryshen
@ 2021-03-11 14:41   ` Fulbert
  2021-03-11 17:59     ` Mikhail Kryshen
  2021-03-16 18:16     ` Bonface Munyoki K.
  2021-03-12  0:08   ` Mikhail Kryshen
  1 sibling, 2 replies; 10+ messages in thread
From: Fulbert @ 2021-03-11 14:41 UTC (permalink / raw)
  To: help-guix

Le Thu, Mar 11, 2021 at 04:59:42PM +0300, Mikhail Kryshen a écrit :
> Fulbert <fulbert@bluewin.ch> writes:
> 
> > Hello Guixers,
> >
> > For the past few days… maybe a couple of weeks (not sure when
> > it started exactly), I have had frequent errors with
> > substitutions. Those errors are not [always] reproducible as
> > another [or more] installation attempt succeed on the same [set of]
> > file[s].
> >
> > My computers (hardware/software) does not seem to be the
> > cause as I have experienced the same problem on 2 PC's (not
> > sharing the exact same guix configurations).
> >
> > Attached, 2 files with such an error. Note that I have
> > translated the messages back to english (from french)… just in
> > case you find some typos and wonder how guix could mistype… ^^
> >
> > The error message common to all those recent failures is :
> >   error: corrupt input while restoring archive from socket
> 
> I'm seeing this too, but only when guix tries to download from my own
> local substitute server, which runs current guix-publish exposed
> directly to the network without reverse proxy.  Downloading from
> ci.guix.gnu.org works without errors.  Could this be a race condition
> related to download rate?

Hello and thanks for your time Mikhail,

I only have a local channel with a couple of local files but no
subtitute server. All downloads go through ci.gui.gnu.org.

> Downloading from ci.guix.gnu.org works without errors.  Could
> this be a race condition related to download rate?

I don't know. I'm not even sure what it means and how I could
check that. Wouldn't this kind of problem be handled on the
network "layers" ?… Because, as stated, I have not experienced
other problems besides guix substitutions, whether guix related or
any other use as a connected "desktop" user.

> 
> > Any idea ? I have not found any recent similar issue on
> > issues.guix.gnu.org.
> > downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
> >  cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%
> >
> > Backtrace:
> > In guix/ui.scm:
> >   2164:12 19 (run-guix-command _ . _)
> > In guix/scripts/substitute.scm:
> >     633:2 18 (guix-substitute . _)
> > In unknown file:
> >           17 (with-continuation-barrier #<procedure thunk ()>)
> > In ice-9/boot-9.scm:
> >   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
> > In unknown file:
> >           15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
> > In ice-9/boot-9.scm:
> >   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
> >   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
> >   1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
> > In guix/scripts/substitute.scm:
> >    682:17 11 (_)
> >     391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
> > In ice-9/boot-9.scm:
> >   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> > In guix/scripts/substitute.scm:
> >     400:9  8 (_)
> > In ice-9/boot-9.scm:
> >   1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
> >   1669:16  6 (raise-exception _ #:continuable? _)
> >   1667:16  5 (raise-exception _ #:continuable? _)
> >   1669:16  4 (raise-exception _ #:continuable? _)
> >   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
> >   1669:16  2 (raise-exception _ #:continuable? _)
> >   1667:16  1 (raise-exception _ #:continuable? _)
> >   1669:16  0 (raise-exception _ #:continuable? _)
> >
> > ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> > Bad http-version header component: ¡_¨””8á—¯ñÿ
> >
> > Backtrace:
> > In ice-9/boot-9.scm:
> >   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
> > In unknown file:
> >            3 (apply-smob/0 #<thunk 7f7228b5a520>)
> > In ice-9/boot-9.scm:
> >     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> > In ice-9/eval.scm:
> >     619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
> > In guix/ui.scm:
> >   2164:12  0 (run-guix-command _ . _)
> >
> > guix/ui.scm:2164:12: In procedure run-guix-command:
> > Bad http-version header component: ¡_¨””8á—¯ñÿ
> >
> > substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
> > guix package: error: corrupt input while restoring archive from socket
> > downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
> >  ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%
> >
> > Backtrace:
> > In guix/ui.scm:
> >   2164:12 19 (run-guix-command _ . _)
> > In guix/scripts/substitute.scm:
> >     633:2 18 (guix-substitute . _)
> > In unknown file:
> >           17 (with-continuation-barrier #<procedure thunk ()>)
> > In ice-9/boot-9.scm:
> >   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
> > In unknown file:
> >           15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
> > In ice-9/boot-9.scm:
> >   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
> >   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
> >   1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
> > In guix/scripts/substitute.scm:
> >    682:17 11 (_)
> >     391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
> > In ice-9/boot-9.scm:
> >   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> > In guix/scripts/substitute.scm:
> >     400:9  8 (_)
> > In ice-9/boot-9.scm:
> >   1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
> >   1669:16  6 (raise-exception _ #:continuable? _)
> >   1667:16  5 (raise-exception _ #:continuable? _)
> >   1669:16  4 (raise-exception _ #:continuable? _)
> >   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
> >   1669:16  2 (raise-exception _ #:continuable? _)
> >   1667:16  1 (raise-exception _ #:continuable? _)
> >   1669:16  0 (raise-exception _ #:continuable? _)
> >
> > ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> > Bad Read-Header-Line header: #<eof>
> >
> > Backtrace:
> > In ice-9/boot-9.scm:
> >   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
> > In unknown file:
> >            3 (apply-smob/0 #<thunk 7fb9bf0be520>)
> > In ice-9/boot-9.scm:
> >     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> > In ice-9/eval.scm:
> >     619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
> > In guix/ui.scm:
> >   2164:12  0 (run-guix-command _ . _)
> >
> > guix/ui.scm:2164:12: In procedure run-guix-command:
> > Bad Read-Header-Line header: #<eof>
> >
> > substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
> > guix package: error: corrupt input while restoring archive from socket
> 
> --
> Mikhail




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

* Re: error: corrupt input while restoring archive from socket
  2021-03-11 14:41   ` Fulbert
@ 2021-03-11 17:59     ` Mikhail Kryshen
  2021-03-16 18:16     ` Bonface Munyoki K.
  1 sibling, 0 replies; 10+ messages in thread
From: Mikhail Kryshen @ 2021-03-11 17:59 UTC (permalink / raw)
  To: Fulbert, help-guix

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

Fulbert <fulbert@bluewin.ch> writes:

> Le Thu, Mar 11, 2021 at 04:59:42PM +0300, Mikhail Kryshen a écrit :
>> Fulbert <fulbert@bluewin.ch> writes:
>> 
>> > Hello Guixers,
>> >
>> > For the past few days… maybe a couple of weeks (not sure when
>> > it started exactly), I have had frequent errors with
>> > substitutions. Those errors are not [always] reproducible as
>> > another [or more] installation attempt succeed on the same [set of]
>> > file[s].
>> >
>> > My computers (hardware/software) does not seem to be the
>> > cause as I have experienced the same problem on 2 PC's (not
>> > sharing the exact same guix configurations).
>> >
>> > Attached, 2 files with such an error. Note that I have
>> > translated the messages back to english (from french)… just in
>> > case you find some typos and wonder how guix could mistype… ^^
>> >
>> > The error message common to all those recent failures is :
>> >   error: corrupt input while restoring archive from socket
>> 
>> I'm seeing this too, but only when guix tries to download from my own
>> local substitute server, which runs current guix-publish exposed
>> directly to the network without reverse proxy.  Downloading from
>> ci.guix.gnu.org works without errors.  Could this be a race condition
>> related to download rate?
>
> Hello and thanks for your time Mikhail,
>
> I only have a local channel with a couple of local files but no
> subtitute server. All downloads go through ci.gui.gnu.org.
>
>> Downloading from ci.guix.gnu.org works without errors.  Could
>> this be a race condition related to download rate?
>
> I don't know. I'm not even sure what it means and how I could
> check that. Wouldn't this kind of problem be handled on the
> network "layers" ?… Because, as stated, I have not experienced
> other problems besides guix substitutions, whether guix related or
> any other use as a connected "desktop" user.

Ah, sorry for the confusion, my question was meant as a
speculation/suggestion to the Guix developers.

>> > Any idea ? I have not found any recent similar issue on
>> > issues.guix.gnu.org.
>> > downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
>> >  cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%
>> >
>> > Backtrace:
>> > In guix/ui.scm:
>> >   2164:12 19 (run-guix-command _ . _)
>> > In guix/scripts/substitute.scm:
>> >     633:2 18 (guix-substitute . _)
>> > In unknown file:
>> >           17 (with-continuation-barrier #<procedure thunk ()>)
>> > In ice-9/boot-9.scm:
>> >   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>> > In unknown file:
>> >           15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
>> > In ice-9/boot-9.scm:
>> >   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>> >   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>> >   1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
>> > In guix/scripts/substitute.scm:
>> >    682:17 11 (_)
>> >     391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
>> > In ice-9/boot-9.scm:
>> >   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>> > In guix/scripts/substitute.scm:
>> >     400:9  8 (_)
>> > In ice-9/boot-9.scm:
>> >   1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
>> >   1669:16  6 (raise-exception _ #:continuable? _)
>> >   1667:16  5 (raise-exception _ #:continuable? _)
>> >   1669:16  4 (raise-exception _ #:continuable? _)
>> >   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>> >   1669:16  2 (raise-exception _ #:continuable? _)
>> >   1667:16  1 (raise-exception _ #:continuable? _)
>> >   1669:16  0 (raise-exception _ #:continuable? _)
>> >
>> > ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>> > Bad http-version header component: ¡_¨””8á—¯ñÿ
>> >
>> > Backtrace:
>> > In ice-9/boot-9.scm:
>> >   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>> > In unknown file:
>> >            3 (apply-smob/0 #<thunk 7f7228b5a520>)
>> > In ice-9/boot-9.scm:
>> >     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> > In ice-9/eval.scm:
>> >     619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
>> > In guix/ui.scm:
>> >   2164:12  0 (run-guix-command _ . _)
>> >
>> > guix/ui.scm:2164:12: In procedure run-guix-command:
>> > Bad http-version header component: ¡_¨””8á—¯ñÿ
>> >
>> > substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
>> > guix package: error: corrupt input while restoring archive from socket
>> > downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
>> >  ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%
>> >
>> > Backtrace:
>> > In guix/ui.scm:
>> >   2164:12 19 (run-guix-command _ . _)
>> > In guix/scripts/substitute.scm:
>> >     633:2 18 (guix-substitute . _)
>> > In unknown file:
>> >           17 (with-continuation-barrier #<procedure thunk ()>)
>> > In ice-9/boot-9.scm:
>> >   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>> > In unknown file:
>> >           15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
>> > In ice-9/boot-9.scm:
>> >   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>> >   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>> >   1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
>> > In guix/scripts/substitute.scm:
>> >    682:17 11 (_)
>> >     391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
>> > In ice-9/boot-9.scm:
>> >   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>> > In guix/scripts/substitute.scm:
>> >     400:9  8 (_)
>> > In ice-9/boot-9.scm:
>> >   1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
>> >   1669:16  6 (raise-exception _ #:continuable? _)
>> >   1667:16  5 (raise-exception _ #:continuable? _)
>> >   1669:16  4 (raise-exception _ #:continuable? _)
>> >   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>> >   1669:16  2 (raise-exception _ #:continuable? _)
>> >   1667:16  1 (raise-exception _ #:continuable? _)
>> >   1669:16  0 (raise-exception _ #:continuable? _)
>> >
>> > ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>> > Bad Read-Header-Line header: #<eof>
>> >
>> > Backtrace:
>> > In ice-9/boot-9.scm:
>> >   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>> > In unknown file:
>> >            3 (apply-smob/0 #<thunk 7fb9bf0be520>)
>> > In ice-9/boot-9.scm:
>> >     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> > In ice-9/eval.scm:
>> >     619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
>> > In guix/ui.scm:
>> >   2164:12  0 (run-guix-command _ . _)
>> >
>> > guix/ui.scm:2164:12: In procedure run-guix-command:
>> > Bad Read-Header-Line header: #<eof>
>> >
>> > substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
>> > guix package: error: corrupt input while restoring archive from socket
>> 
>> --
>> Mikhail

-- 
Mikhail

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

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-11 13:59 ` Mikhail Kryshen
  2021-03-11 14:41   ` Fulbert
@ 2021-03-12  0:08   ` Mikhail Kryshen
  2021-03-12 14:56     ` Mikhail Kryshen
  1 sibling, 1 reply; 10+ messages in thread
From: Mikhail Kryshen @ 2021-03-12  0:08 UTC (permalink / raw)
  To: Fulbert, help-guix

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

Mikhail Kryshen <mikhail@kryshen.net> writes:

> Fulbert <fulbert@bluewin.ch> writes:
>
>> Hello Guixers,
>>
>> For the past few days… maybe a couple of weeks (not sure when
>> it started exactly), I have had frequent errors with
>> substitutions. Those errors are not [always] reproducible as
>> another [or more] installation attempt succeed on the same [set of]
>> file[s].
>>
>> My computers (hardware/software) does not seem to be the
>> cause as I have experienced the same problem on 2 PC's (not
>> sharing the exact same guix configurations).
>>
>> Attached, 2 files with such an error. Note that I have
>> translated the messages back to english (from french)… just in
>> case you find some typos and wonder how guix could mistype… ^^
>>
>> The error message common to all those recent failures is :
>>   error: corrupt input while restoring archive from socket
>
> I'm seeing this too, but only when guix tries to download from my own
> local substitute server, which runs current guix-publish exposed
> directly to the network without reverse proxy.

I experimented for a bit with my substitute server and noticed that
downloads fail only when compressed substitutes are not yet available in
the guix publish cache or if caching is disabled.  This is likely a bug
in Guix.

> Downloading from
> ci.guix.gnu.org works without errors.  Could this be a race condition
> related to download rate?
>
>> Any idea ? I have not found any recent similar issue on
>> issues.guix.gnu.org.
>> downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
>>  cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%
>>
>> Backtrace:
>> In guix/ui.scm:
>>   2164:12 19 (run-guix-command _ . _)
>> In guix/scripts/substitute.scm:
>>     633:2 18 (guix-substitute . _)
>> In unknown file:
>>           17 (with-continuation-barrier #<procedure thunk ()>)
>> In ice-9/boot-9.scm:
>>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>> In unknown file:
>>           15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
>> In ice-9/boot-9.scm:
>>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>>   1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
>> In guix/scripts/substitute.scm:
>>    682:17 11 (_)
>>     391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
>> In ice-9/boot-9.scm:
>>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>> In guix/scripts/substitute.scm:
>>     400:9  8 (_)
>> In ice-9/boot-9.scm:
>>   1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
>>   1669:16  6 (raise-exception _ #:continuable? _)
>>   1667:16  5 (raise-exception _ #:continuable? _)
>>   1669:16  4 (raise-exception _ #:continuable? _)
>>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>>   1669:16  2 (raise-exception _ #:continuable? _)
>>   1667:16  1 (raise-exception _ #:continuable? _)
>>   1669:16  0 (raise-exception _ #:continuable? _)
>>
>> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>> Bad http-version header component: ¡_¨””8á—¯ñÿ
>>
>> Backtrace:
>> In ice-9/boot-9.scm:
>>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>> In unknown file:
>>            3 (apply-smob/0 #<thunk 7f7228b5a520>)
>> In ice-9/boot-9.scm:
>>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> In ice-9/eval.scm:
>>     619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
>> In guix/ui.scm:
>>   2164:12  0 (run-guix-command _ . _)
>>
>> guix/ui.scm:2164:12: In procedure run-guix-command:
>> Bad http-version header component: ¡_¨””8á—¯ñÿ
>>
>> substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
>> guix package: error: corrupt input while restoring archive from socket
>> downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
>>  ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%
>>
>> Backtrace:
>> In guix/ui.scm:
>>   2164:12 19 (run-guix-command _ . _)
>> In guix/scripts/substitute.scm:
>>     633:2 18 (guix-substitute . _)
>> In unknown file:
>>           17 (with-continuation-barrier #<procedure thunk ()>)
>> In ice-9/boot-9.scm:
>>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>> In unknown file:
>>           15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
>> In ice-9/boot-9.scm:
>>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>>   1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
>> In guix/scripts/substitute.scm:
>>    682:17 11 (_)
>>     391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
>> In ice-9/boot-9.scm:
>>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>> In guix/scripts/substitute.scm:
>>     400:9  8 (_)
>> In ice-9/boot-9.scm:
>>   1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
>>   1669:16  6 (raise-exception _ #:continuable? _)
>>   1667:16  5 (raise-exception _ #:continuable? _)
>>   1669:16  4 (raise-exception _ #:continuable? _)
>>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>>   1669:16  2 (raise-exception _ #:continuable? _)
>>   1667:16  1 (raise-exception _ #:continuable? _)
>>   1669:16  0 (raise-exception _ #:continuable? _)
>>
>> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>> Bad Read-Header-Line header: #<eof>
>>
>> Backtrace:
>> In ice-9/boot-9.scm:
>>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>> In unknown file:
>>            3 (apply-smob/0 #<thunk 7fb9bf0be520>)
>> In ice-9/boot-9.scm:
>>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> In ice-9/eval.scm:
>>     619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
>> In guix/ui.scm:
>>   2164:12  0 (run-guix-command _ . _)
>>
>> guix/ui.scm:2164:12: In procedure run-guix-command:
>> Bad Read-Header-Line header: #<eof>
>>
>> substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
>> guix package: error: corrupt input while restoring archive from socket
>
> --
> Mikhail

-- 
Mikhail

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

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-12  0:08   ` Mikhail Kryshen
@ 2021-03-12 14:56     ` Mikhail Kryshen
  0 siblings, 0 replies; 10+ messages in thread
From: Mikhail Kryshen @ 2021-03-12 14:56 UTC (permalink / raw)
  To: help-guix

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

Mikhail Kryshen <mikhail@kryshen.net> writes:

> Mikhail Kryshen <mikhail@kryshen.net> writes:
>
>> Fulbert <fulbert@bluewin.ch> writes:
>>
>>> Hello Guixers,
>>>
>>> For the past few days… maybe a couple of weeks (not sure when
>>> it started exactly), I have had frequent errors with
>>> substitutions. Those errors are not [always] reproducible as
>>> another [or more] installation attempt succeed on the same [set of]
>>> file[s].
>>>
>>> My computers (hardware/software) does not seem to be the
>>> cause as I have experienced the same problem on 2 PC's (not
>>> sharing the exact same guix configurations).
>>>
>>> Attached, 2 files with such an error. Note that I have
>>> translated the messages back to english (from french)… just in
>>> case you find some typos and wonder how guix could mistype… ^^
>>>
>>> The error message common to all those recent failures is :
>>>   error: corrupt input while restoring archive from socket
>>
>> I'm seeing this too, but only when guix tries to download from my own
>> local substitute server, which runs current guix-publish exposed
>> directly to the network without reverse proxy.
>
> I experimented for a bit with my substitute server and noticed that
> downloads fail only when compressed substitutes are not yet available in
> the guix publish cache or if caching is disabled.  This is likely a bug
> in Guix.

After further experimentation, this does not appear to be related to
caching.  When guix tries to download more than one substitute from my
server, it fails on the second download.

>> Downloading from
>> ci.guix.gnu.org works without errors.  Could this be a race condition
>> related to download rate?
>>
>>> Any idea ? I have not found any recent similar issue on
>>> issues.guix.gnu.org.
>>> downloading from https://ci.guix.gnu.org/nar/gzip/qd16lz61f4gn20456h4ri0xb59dfh8kg-cmdliner-1.0.3.tbz...
>>>  cmdliner-1.0.3.tbz  48KiB    20.4MiB/s 00:00 [##################] 100.0%
>>>
>>> Backtrace:
>>> In guix/ui.scm:
>>>   2164:12 19 (run-guix-command _ . _)
>>> In guix/scripts/substitute.scm:
>>>     633:2 18 (guix-substitute . _)
>>> In unknown file:
>>>           17 (with-continuation-barrier #<procedure thunk ()>)
>>> In ice-9/boot-9.scm:
>>>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>>> In unknown file:
>>>           15 (apply-smob/0 #<thunk 7f7226fd5ea0>)
>>> In ice-9/boot-9.scm:
>>>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>>>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>>>   1731:15 12 (with-exception-handler #<procedure 7f722645a120 at ic…> …)
>>> In guix/scripts/substitute.scm:
>>>    682:17 11 (_)
>>>     391:7 10 (process-substitution _ "/gnu/store/p0xh0m6xkqfapgv7cy…" …)
>>> In ice-9/boot-9.scm:
>>>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>>> In guix/scripts/substitute.scm:
>>>     400:9  8 (_)
>>> In ice-9/boot-9.scm:
>>>   1731:15  7 (with-exception-handler #<procedure 7f72274616f0 at ic…> …)
>>>   1669:16  6 (raise-exception _ #:continuable? _)
>>>   1667:16  5 (raise-exception _ #:continuable? _)
>>>   1669:16  4 (raise-exception _ #:continuable? _)
>>>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>>>   1669:16  2 (raise-exception _ #:continuable? _)
>>>   1667:16  1 (raise-exception _ #:continuable? _)
>>>   1669:16  0 (raise-exception _ #:continuable? _)
>>>
>>> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>>> Bad http-version header component: ¡_¨””8á—¯ñÿ
>>>
>>> Backtrace:
>>> In ice-9/boot-9.scm:
>>>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>>> In unknown file:
>>>            3 (apply-smob/0 #<thunk 7f7228b5a520>)
>>> In ice-9/boot-9.scm:
>>>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>>> In ice-9/eval.scm:
>>>     619:8  1 (_ #(#(#<directory (guile-user) 7f7228b5dc80>)))
>>> In guix/ui.scm:
>>>   2164:12  0 (run-guix-command _ . _)
>>>
>>> guix/ui.scm:2164:12: In procedure run-guix-command:
>>> Bad http-version header component: ¡_¨””8á—¯ñÿ
>>>
>>> substitution of /gnu/store/p0xh0m6xkqfapgv7cy9012mjf2rx720r-cudf-0.9.tar.gz failed 
>>> guix package: error: corrupt input while restoring archive from socket
>>> downloading from https://ci.guix.gnu.org/nar/lzip/wa2p58gv8fp81dglysnp2c9bffpdcwsr-ghc-blaze-markup-0.8.2.3...
>>>  ghc-blaze-markup-0.8.2.3  124KiB                                                                        1.4MiB/s 00:00 [##################] 100.0%
>>>
>>> Backtrace:
>>> In guix/ui.scm:
>>>   2164:12 19 (run-guix-command _ . _)
>>> In guix/scripts/substitute.scm:
>>>     633:2 18 (guix-substitute . _)
>>> In unknown file:
>>>           17 (with-continuation-barrier #<procedure thunk ()>)
>>> In ice-9/boot-9.scm:
>>>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
>>> In unknown file:
>>>           15 (apply-smob/0 #<thunk 7fb9bd56c0e0>)
>>> In ice-9/boot-9.scm:
>>>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>>>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>>>   1731:15 12 (with-exception-handler #<procedure 7fb9bc9e6ed0 at ic…> …)
>>> In guix/scripts/substitute.scm:
>>>    682:17 11 (_)
>>>     391:7 10 (process-substitution _ "/gnu/store/gs7l81p1xzgdzvxdjc…" …)
>>> In ice-9/boot-9.scm:
>>>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
>>> In guix/scripts/substitute.scm:
>>>     400:9  8 (_)
>>> In ice-9/boot-9.scm:
>>>   1731:15  7 (with-exception-handler #<procedure 7fb9bc9be690 at ic…> …)
>>>   1669:16  6 (raise-exception _ #:continuable? _)
>>>   1667:16  5 (raise-exception _ #:continuable? _)
>>>   1669:16  4 (raise-exception _ #:continuable? _)
>>>   1764:13  3 (_ #<&compound-exception components: (#<&error> #<&irri…>)
>>>   1669:16  2 (raise-exception _ #:continuable? _)
>>>   1667:16  1 (raise-exception _ #:continuable? _)
>>>   1669:16  0 (raise-exception _ #:continuable? _)
>>>
>>> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
>>> Bad Read-Header-Line header: #<eof>
>>>
>>> Backtrace:
>>> In ice-9/boot-9.scm:
>>>   1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
>>> In unknown file:
>>>            3 (apply-smob/0 #<thunk 7fb9bf0be520>)
>>> In ice-9/boot-9.scm:
>>>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>>> In ice-9/eval.scm:
>>>     619:8  1 (_ #(#(#<directory (guile-user) 7fb9bf0c1c80>)))
>>> In guix/ui.scm:
>>>   2164:12  0 (run-guix-command _ . _)
>>>
>>> guix/ui.scm:2164:12: In procedure run-guix-command:
>>> Bad Read-Header-Line header: #<eof>
>>>
>>> substitution of /gnu/store/gs7l81p1xzgdzvxdjcwfxqpfcwfdjbkv-ghc-clock-0.8 failed
>>> guix package: error: corrupt input while restoring archive from socket
>>
>> --
>> Mikhail
>
> -- 
> Mikhail

-- 
Mikhail

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

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-11 14:41   ` Fulbert
  2021-03-11 17:59     ` Mikhail Kryshen
@ 2021-03-16 18:16     ` Bonface Munyoki K.
  1 sibling, 0 replies; 10+ messages in thread
From: Bonface Munyoki K. @ 2021-03-16 18:16 UTC (permalink / raw)
  To: help-guix

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

Hi o/

Fulbert <fulbert@bluewin.ch> writes:

> Le Thu, Mar 11, 2021 at 04:59:42PM +0300, Mikhail Kryshen a écrit :
>> Fulbert <fulbert@bluewin.ch> writes:
>> 
>> > Hello Guixers,
>> >
>> > For the past few days… maybe a couple of weeks (not sure when
>> > it started exactly), I have had frequent errors with
>> > substitutions. Those errors are not [always] reproducible as
>> > another [or more] installation attempt succeed on the same [set of]
>> > file[s].
>> >

I have this same problem :(

[...]

>> I'm seeing this too, but only when guix tries to download from my own
>> local substitute server, which runs current guix-publish exposed
>> directly to the network without reverse proxy.  Downloading from
>> ci.guix.gnu.org works without errors.  Could this be a race condition
>> related to download rate?
>
> Hello and thanks for your time Mikhail,
>
> I only have a local channel with a couple of local files but no
> subtitute server. All downloads go through ci.gui.gnu.org.
>
I ran:

--8<---------------cut here---------------start------------->8---
guix pull --substitute-urls=https://ci.guix.gnu.org
--8<---------------cut here---------------end--------------->8---

and moreover...



>> Downloading from ci.guix.gnu.org works without errors.  Could
>> this be a race condition related to download rate?
>
... with

--8<---------------cut here---------------start------------->8---
guix pull --fallback
--8<---------------cut here---------------end--------------->8---

I still get the same error.

> I don't know. I'm not even sure what it means and how I could
> check that. Wouldn't this kind of problem be handled on the
> network "layers" ?… Because, as stated, I have not experienced
> other problems besides guix substitutions, whether guix related or
> any other use as a connected "desktop" user.
>
The only solution I've come up with looks like:

--8<---------------cut here---------------start------------->8---
#!/bin/bash

for (( ; ; ))
do
    echo "Press CTRL+C to stop..."
    guix pull 2>&1 | tee /tmp/log.txt
    $(grep failed /tmp/log.txt | cut -d' ' -f3) && \
        if [ 1 ]
        then
	    break
        fi
    echo "Building:"
    echo $(grep failed /tmp/log.txt | cut -d' ' -f3)
    sleep 1
    guix build $(grep failed /tmp/log.txt | cut -d' ' -f3)
done
--8<---------------cut here---------------end--------------->8---

where I basically I keep manually rebuilding the
failed drv again and again subsequently until the
operation finishes. I get the same error during
"upgrades"  and also when installing a package :(

>> 
>> > Any idea ? I have not found any recent similar issue on
>> > issues.guix.gnu.org.

Any luck?

[...]

-- 
Bonface M. K. D4F09EB110177E03C28E2FE1F5BBAE1E0392253F
Humble GNU Emacs User / Bearer of scheme-y parens
Curator: <https://upbookclub.com> / Twitter: @BonfaceKilz

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

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

* Re: error: corrupt input while restoring archive from socket
  2021-03-09  7:48 error: corrupt input while restoring archive from socket Fulbert
  2021-03-09  7:52 ` divoplade
  2021-03-11 13:59 ` Mikhail Kryshen
@ 2021-03-22 10:17 ` Fulbert
  2 siblings, 0 replies; 10+ messages in thread
From: Fulbert @ 2021-03-22 10:17 UTC (permalink / raw)
  To: help-guix

Le Tue, Mar 09, 2021 at 08:48:25AM +0100, Fulbert a écrit :
> For the past few days… maybe a couple of weeks (not sure when
> it started exactly), I have had frequent errors with
> substitutions. Those errors are not [always] reproducible as
> another [or more] installation attempt succeed on the same [set of]
> file[s].

For the past few `guix pull`… within a couple of days, I've been abble
to upgrade guix and all my profiles with no errors.

Whatever caused it seems to be fixed ! Thanks to the unknown working in
the shadows ;)


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

end of thread, other threads:[~2021-03-22 10:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-09  7:48 error: corrupt input while restoring archive from socket Fulbert
2021-03-09  7:52 ` divoplade
2021-03-09  9:19   ` Fulbert
2021-03-11 13:59 ` Mikhail Kryshen
2021-03-11 14:41   ` Fulbert
2021-03-11 17:59     ` Mikhail Kryshen
2021-03-16 18:16     ` Bonface Munyoki K.
2021-03-12  0:08   ` Mikhail Kryshen
2021-03-12 14:56     ` Mikhail Kryshen
2021-03-22 10:17 ` Fulbert

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