GNU bug report logs - #48756
guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>

Previous Next

Package: guix;

Reported by: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>

Date: Sun, 30 May 2021 23:16:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48756 in the body.
You can then email your comments to 48756 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Sun, 30 May 2021 23:16:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 30 May 2021 23:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix offload: error: corrupt input while restoring archive from
 #<closed: file 7f68866bf770>
Date: Mon, 31 May 2021 00:15:07 +0100
Hi there, I am trying to follow this instruction [[info:guix#Daemon
Offload Setup][guix#Daemon Offload Setup]] with guix
6086e6ed1a038793e358becddded50d97593f691 on the host and build machine
to set up a offload build machine, and I end up with the error below.

~ $ guix offload test
guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'...
guix offload: Guix is usable on 'build-machine' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'build-machine' is running GNU Guile 3.0.5
guix offload: sending 1 store item (0 MiB) to 'build-machine'...
exporting path `/gnu/store/hqisv30c33ka8xascqh2x0lyqd0bp6z4-export-test'
guix offload: error: corrupt input while restoring archive from
#<closed: file 7f68866bf770>

Side note I tried testing if I could export manually to said build-machine,
which worked with out any problems.

~ $ guix archive --export -r emacs | ssh build-machine guix archive --import

and same goes for =guix offload status= which work fine as well.

Regards
-- 
Madhavan Krishnan




Information forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Mon, 14 Jun 2021 13:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 48756 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
Cc: 48756 <at> debbugs.gnu.org
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Mon, 14 Jun 2021 15:23:49 +0200
Hi Madhavan,

Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com> skribis:

> Hi there, I am trying to follow this instruction [[info:guix#Daemon
> Offload Setup][guix#Daemon Offload Setup]] with guix
> 6086e6ed1a038793e358becddded50d97593f691 on the host and build machine
> to set up a offload build machine, and I end up with the error below.
>
> ~ $ guix offload test
> guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'...
> guix offload: Guix is usable on 'build-machine' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
> guix offload: 'build-machine' is running GNU Guile 3.0.5
> guix offload: sending 1 store item (0 MiB) to 'build-machine'...
> exporting path `/gnu/store/hqisv30c33ka8xascqh2x0lyqd0bp6z4-export-test'
> guix offload: error: corrupt input while restoring archive from
> #<closed: file 7f68866bf770>

Does /etc/guix/signing-key.{pub,sec} exist on both machines?

You can generate it with ‘guix archive’ (info "(guix) Invoking guix
archive").

HTH,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Mon, 14 Jun 2021 13:34:01 GMT) Full text and rfc822 format available.

Message #11 received at 48756 <at> debbugs.gnu.org (full text, mbox):

From: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 48756 <at> debbugs.gnu.org
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Mon, 14 Jun 2021 14:33:00 +0100
Hello Ludo,

> Does /etc/guix/signing-key.{pub,sec} exist on both machines?

> You can generate it with ‘guix archive’ (info "(guix) Invoking guix
> archive").

Yes, the files are generated by

   #+begin_example
sudo guix archieve --generate-key
   #+end_example
   
  /etc/guix/signing-key.pub
  /etc/guix/signing-key.sec

and send the =signing-key.pub= to the build machine.

#+begin_src shell
sudo guix archieve --authorize< master/build.txt
#+end_src

both ways master <-> build

Kindly let me know If am I missing something here obvious?

Thanks
-- 
Madhavan Krishnan

Information forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Tue, 15 Jun 2021 09:26:02 GMT) Full text and rfc822 format available.

Message #14 received at 48756 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
Cc: 48756 <at> debbugs.gnu.org
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Tue, 15 Jun 2021 11:24:56 +0200
Hi,

Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com> skribis:

>> Does /etc/guix/signing-key.{pub,sec} exist on both machines?
>
>> You can generate it with ‘guix archive’ (info "(guix) Invoking guix
>> archive").
>
> Yes, the files are generated by
>
>    #+begin_example
> sudo guix archieve --generate-key
>    #+end_example
>
>    
>   /etc/guix/signing-key.pub
>   /etc/guix/signing-key.sec
>
> and send the =signing-key.pub= to the build machine.
>
> #+begin_src shell
> sudo guix archieve --authorize< master/build.txt
> #+end_src
>
> both ways master <-> build

OK, so /etc/guix/acl exists on both machines, right?

Could you attach strace to sshd on the build machine:

  sudo strace -p $(pidof sshd) -f -o /tmp/sshd.log -s 500

and then run this on the head machine:

  sudo guix offload test

?

Looking at /tmp/sshd.log starting from the end might reveal an error
that occurs on the build machine.

You can share (part of) /tmp/sshd.log with me, but note that it may
contain sensitive material such as SSH secret keys or passwords.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Thu, 01 Jul 2021 13:07:01 GMT) Full text and rfc822 format available.

Message #17 received at 48756 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
Cc: 48756 <at> debbugs.gnu.org
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Thu, 01 Jul 2021 15:05:54 +0200
Hi,

(+Cc: 48756 <at> debbugs.gnu.org, so we record the end of the story.)

Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com> skribis:

> 89747 pipe([8, 10])                     = 0

> 89748 execve("/gnu/store/6rn4l3h0p9x0m615pp1ynlv9v0743kl3-guix-1.2.0/bin/guix", ["/gnu/store/6rn4l3h0p9x0m615pp1ynlv9v0743kl3-guix-1.2.0/bin/guix", "authenticate"], 0x7ffe0b69df60 /* 7 vars */) = 0

> 89748 dup2(10, 2)                       = 2
> 89748 dup2(2, 1)                        = 1

> 89747 write(12, "sign 25:/etc/guix/signing-key.sec 64:a8c094df57101bf8684c4afe31e58bc03bf6200a1d009e7c5bfe8bad0a48fa61\n", 102 <unfinished ...>

[...]

> 89748 write(2, "/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)\n", 136) = 136


> 89747 read(8,  <unfinished ...>
> 89747 <... read resumed>"/", 1)         = 1

[...]

> 89747 write(2, "guix-daemon: nix/libutil/serialise.cc:15: virtual nix::BufferedSink::~BufferedSink(): Assertion `!bufPos' failed.\n", 114 <unfinished ...>

[...]

> 89747 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=89747, si_uid=0} ---

Now we know!  ‘guix-daemon’ hit the assertion failure above, which is a
bug.  That happens because while talking to the ‘guix authenticate’
subprocess, said process emits that warning:

  /gnu/store/…/bin/bash: warning: setlocale: LC_ALL: …

and guix-daemon reads the leading “/” and explodes, somehow.

However, it seems you’re running guix-daemon from Guix 1.2.0,
which is quite old, and chances are that the bug you hit has long been
fixed.

Could you try upgrading guix-daemon?

  https://guix.gnu.org/manual/en/html_node/Upgrading-Guix.html

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#48756; Package guix. (Mon, 05 Jul 2021 16:18:02 GMT) Full text and rfc822 format available.

Message #20 received at 48756 <at> debbugs.gnu.org (full text, mbox):

From: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Thu, 01 Jul 2021 14:19:03 +0100
Many thanks for your time and effort in debugging this.

I can confirm this issue is resolved.

Regards
-- 
Madhavan Krishnan




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 22 Jul 2021 01:48:02 GMT) Full text and rfc822 format available.

Notification sent to Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>:
bug acknowledged by developer. (Thu, 22 Jul 2021 01:48:02 GMT) Full text and rfc822 format available.

Message #25 received at 48756-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 48756-done <at> debbugs.gnu.org
Subject: Re: bug#48756: guix offload: error: corrupt input while restoring
 archive from #<closed: file 7f68866bf770>
Date: Wed, 21 Jul 2021 21:46:52 -0400
Hello,

Madhavan Krishnan <krishnanmadhavan000 <at> gmail.com> writes:

> Many thanks for your time and effort in debugging this.
>
> I can confirm this issue is resolved.
>
> Regards

Good to know!

Closing.

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 Aug 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.