unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
@ 2021-05-30 23:15 Madhavan Krishnan
  2021-06-14 13:23 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Madhavan Krishnan @ 2021-05-30 23:15 UTC (permalink / raw)
  To: 48756


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




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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
  2021-05-30 23:15 bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770> Madhavan Krishnan
@ 2021-06-14 13:23 ` Ludovic Courtès
  2021-06-14 13:33   ` Madhavan Krishnan
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2021-06-14 13:23 UTC (permalink / raw)
  To: Madhavan Krishnan; +Cc: 48756

Hi Madhavan,

Madhavan Krishnan <krishnanmadhavan000@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’.




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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
  2021-06-14 13:23 ` Ludovic Courtès
@ 2021-06-14 13:33   ` Madhavan Krishnan
  2021-06-15  9:24     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Madhavan Krishnan @ 2021-06-14 13:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 48756


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

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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
  2021-06-14 13:33   ` Madhavan Krishnan
@ 2021-06-15  9:24     ` Ludovic Courtès
       [not found]       ` <CAOeCqOKetOxjqBSsT4JbQSNscqOrzpCff1O1=j-ZHXWmNp6wmA@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2021-06-15  9:24 UTC (permalink / raw)
  To: Madhavan Krishnan; +Cc: 48756

Hi,

Madhavan Krishnan <krishnanmadhavan000@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’.




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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
       [not found]                                         ` <CAOeCqOL2NU8f9v8V5Tt3ur=EfjkUcV-BzW6SM-vX6NpRiHzcYA@mail.gmail.com>
@ 2021-07-01 13:05                                           ` Ludovic Courtès
  2021-07-01 13:19                                             ` Madhavan Krishnan
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2021-07-01 13:05 UTC (permalink / raw)
  To: Madhavan Krishnan; +Cc: 48756

Hi,

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

Madhavan Krishnan <krishnanmadhavan000@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’.




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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
  2021-07-01 13:05                                           ` Ludovic Courtès
@ 2021-07-01 13:19                                             ` Madhavan Krishnan
  2021-07-22  1:46                                               ` Maxim Cournoyer
  0 siblings, 1 reply; 7+ messages in thread
From: Madhavan Krishnan @ 2021-07-01 13:19 UTC (permalink / raw)
  To: Ludovic Courtès


Many thanks for your time and effort in debugging this.

I can confirm this issue is resolved.

Regards
-- 
Madhavan Krishnan




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

* bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770>
  2021-07-01 13:19                                             ` Madhavan Krishnan
@ 2021-07-22  1:46                                               ` Maxim Cournoyer
  0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2021-07-22  1:46 UTC (permalink / raw)
  To: Madhavan Krishnan; +Cc: 48756-done

Hello,

Madhavan Krishnan <krishnanmadhavan000@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




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

end of thread, other threads:[~2021-07-22  1:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 23:15 bug#48756: guix offload: error: corrupt input while restoring archive from #<closed: file 7f68866bf770> Madhavan Krishnan
2021-06-14 13:23 ` Ludovic Courtès
2021-06-14 13:33   ` Madhavan Krishnan
2021-06-15  9:24     ` Ludovic Courtès
     [not found]       ` <CAOeCqOKetOxjqBSsT4JbQSNscqOrzpCff1O1=j-ZHXWmNp6wmA@mail.gmail.com>
     [not found]         ` <87tuls9s9u.fsf@gnu.org>
     [not found]           ` <87fsxc5jcf.fsf@gmail.com>
     [not found]             ` <CAOeCqOJnqcd60ZVbsgUovAx-KD2y-C7NP++T7PVEK01w+JVc3A@mail.gmail.com>
     [not found]               ` <874kdq3tw9.fsf@gnu.org>
     [not found]                 ` <87lf72f09x.fsf@gmail.com>
     [not found]                   ` <87fsx8298i.fsf@gnu.org>
     [not found]                     ` <CAOeCqOLqJXjGzsOh_vk+6gWxQAA-vM6VetEUX3=Yd1xdOuLrQA@mail.gmail.com>
     [not found]                       ` <87mtrfty8c.fsf@gnu.org>
     [not found]                         ` <CAOeCqO+chkb9WbXTWhbkgVrK88cUw78nR3sJdZWT_aaZwK+=OA@mail.gmail.com>
     [not found]                           ` <8735t2z8pt.fsf@gnu.org>
     [not found]                             ` <CAOeCqOJ2oehKV1jPGU_sXZmO1BnDRAJguBwgBVXR0QN6hMtyKQ@mail.gmail.com>
     [not found]                               ` <87y2atun5t.fsf@gnu.org>
     [not found]                                 ` <878s2tarwd.fsf@gmail.com>
     [not found]                                   ` <87eeckra36.fsf@gnu.org>
     [not found]                                     ` <87k0mcaeo4.fsf@gmail.com>
     [not found]                                       ` <87lf6rpvrp.fsf@gnu.org>
     [not found]                                         ` <CAOeCqOL2NU8f9v8V5Tt3ur=EfjkUcV-BzW6SM-vX6NpRiHzcYA@mail.gmail.com>
2021-07-01 13:05                                           ` Ludovic Courtès
2021-07-01 13:19                                             ` Madhavan Krishnan
2021-07-22  1:46                                               ` Maxim Cournoyer

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