GNU bug report logs - #40125
Problem with guix offload: Remote channel closed

Previous Next

Package: guix;

Reported by: mikael <at> djurfeldt.com

Date: Wed, 18 Mar 2020 20:00:02 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 40125 in the body.
You can then email your comments to 40125 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#40125; Package guix. (Wed, 18 Mar 2020 20:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mikael <at> djurfeldt.com:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 18 Mar 2020 20:00:03 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: bug-guix <at> gnu.org
Cc: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Subject: Problem with guix offload: Remote channel closed
Date: Wed, 18 Mar 2020 20:58:49 +0100
[Message part 1 (text/plain, inline)]
Hi,

I just installed guix on top of Debian Buster using the installation script
at guix.gnu.org. I did this on two machines, hat and wand, with the hope
that I could offload compilation to wand.

This is what I get:

root <at> hat:~# guix offload test
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales'
package and
defining `GUIX_LOCPATH', along these lines:

     guix package -i glibc-utf8-locales
     export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.

guix offload: testing 1 build machines defined in
'/etc/guix/machines.scm'...
guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
exporting path `/gnu/store/sd0wqvaffi1cbpvf0dq37mab34rmlnav-export-test'
;;; [2020/03/17 12:45:48.671038, 0] write_to_channel_port: [GSSH ERROR]
Remote channel is closed: #<input-output: channel (open) 7f2c1c9831e0>
Backtrace:
           1 (primitive-load "/root/.config/guix/current/bin/guix")
In guix/ui.scm:
  1833:12  0 (run-guix-command _ . _)

guix/ui.scm:1833:12: In procedure run-guix-command:
Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote
channel is closed" #<input-output: channel (open) 7f2c1c9831e0> #f)'.

Any hints about what could be wrong?

Best regards,
Mikael Djurfeldt
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Wed, 18 Mar 2020 20:02:01 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: 40125 <at> debbugs.gnu.org
Cc: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Subject: Problem with guix offload: Remote channel closed
Date: Wed, 18 Mar 2020 21:01:36 +0100
[Message part 1 (text/plain, inline)]
This is a more up-to-date log where a problem in my environment (both on
local and build host) was fixed:

mdj <at> hat:~$ guix offload test
guix offload: testing 1 build machines defined in
'/etc/guix/machines.scm'...
guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
exporting path `/gnu/store/gl7dps3yx0vrxz16sj7q3w7gs3vdbxj4-export-test'
;;; [2020/03/18 20:53:04.930901, 0] write_to_channel_port: [GSSH ERROR]
Remote channel is closed: #<input-output: channel (open) 7f5ed680e780>
Backtrace:
           1 (primitive-load "/home/mdj/.config/guix/current/bin/guix")
In guix/ui.scm:
  1833:12  0 (run-guix-command _ . _)

guix/ui.scm:1833:12: In procedure run-guix-command:
Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote
channel is closed" #<input-output: channel (open) 7f5ed680e780> #f)'.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sat, 21 Mar 2020 15:51:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sat, 21 Mar 2020 16:50:41 +0100
Hi Mikael!

Good to see you here.  :-)

Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:

> mdj <at> hat:~$ guix offload test
> guix offload: testing 1 build machines defined in
> '/etc/guix/machines.scm'...
> guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
> "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
> guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
> sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
> exporting path `/gnu/store/gl7dps3yx0vrxz16sj7q3w7gs3vdbxj4-export-test'
> ;;; [2020/03/18 20:53:04.930901, 0] write_to_channel_port: [GSSH ERROR]
> Remote channel is closed: #<input-output: channel (open) 7f5ed680e780>
> Backtrace:
>            1 (primitive-load "/home/mdj/.config/guix/current/bin/guix")
> In guix/ui.scm:
>   1833:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:1833:12: In procedure run-guix-command:
> Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote
> channel is closed" #<input-output: channel (open) 7f5ed680e780> #f)'.

Did you generate a signing key on wand.pdc.kth.se?  Specifically with:

  sudo guix archive --generate-key

(See
<https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-archive.html>.)

Error reporting in guix offload is currently suboptimal as you have
seen.  There’s a couple of bug reports open on that topic, so hopefully
we’ll get there soon!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sat, 21 Mar 2020 16:06:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mikael Djurfeldt <mikael <at> djurfeldt.com>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sat, 21 Mar 2020 17:05:20 +0100
[Message part 1 (text/plain, inline)]
Hi Ludovic! :-)

I did generate the signing key on wand. (But is this sensitive to what user
I used? O might have done it as root rather than as the ssh user used to
login on wand.)

I will look at the other buh reports. Meanwhile, do you have any hint on
where to look/insert logging code in order to see what is going on?

Best regards,
Mikael

Den lör 21 mars 2020 16:50Ludovic Courtès <ludo <at> gnu.org> skrev:

> Hi Mikael!
>
> Good to see you here.  :-)
>
> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>
> > mdj <at> hat:~$ guix offload test
> > guix offload: testing 1 build machines defined in
> > '/etc/guix/machines.scm'...
> > guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
> > "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
> > guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
> > sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
> > exporting path `/gnu/store/gl7dps3yx0vrxz16sj7q3w7gs3vdbxj4-export-test'
> > ;;; [2020/03/18 20:53:04.930901, 0] write_to_channel_port: [GSSH ERROR]
> > Remote channel is closed: #<input-output: channel (open) 7f5ed680e780>
> > Backtrace:
> >            1 (primitive-load "/home/mdj/.config/guix/current/bin/guix")
> > In guix/ui.scm:
> >   1833:12  0 (run-guix-command _ . _)
> >
> > guix/ui.scm:1833:12: In procedure run-guix-command:
> > Throw to key `guile-ssh-error' with args `("write_to_channel_port"
> "Remote
> > channel is closed" #<input-output: channel (open) 7f5ed680e780> #f)'.
>
> Did you generate a signing key on wand.pdc.kth.se?  Specifically with:
>
>   sudo guix archive --generate-key
>
> (See
> <https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-archive.html
> >.)
>
> Error reporting in guix offload is currently suboptimal as you have
> seen.  There’s a couple of bug reports open on that topic, so hopefully
> we’ll get there soon!
>
> Ludo’.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sat, 21 Mar 2020 20:01:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sat, 21 Mar 2020 21:00:21 +0100
[Message part 1 (text/plain, inline)]
On Sat, Mar 21, 2020 at 5:05 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

> Hi Ludovic! :-)
>
> I did generate the signing key on wand. (But is this sensitive to what
> user I used? O might have done it as root rather than as the ssh user used
> to login on wand.)
>

Sorry, I read your email on a cell phone and missed the "sudo" in front of
the command. Yes, I did that.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sat, 21 Mar 2020 22:17:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sat, 21 Mar 2020 23:16:45 +0100
Hi Mikael,

Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:

> I will look at the other buh reports. Meanwhile, do you have any hint on
> where to look/insert logging code in order to see what is going on?

On ‘wand’, can you run something like:

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

After that, run ‘guix offload test’ from the other host, and check what
‘sshd.log’ contains.  If would in particular look for all the ‘execve’
syscalls as well as what happens right before ‘exit_group’ syscalls.
There are probably error messages lurking there.  :-)

You can share excerpts of the log but note that it will contain
sensitive crypto material, so beware.

Thanks in advance,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 18:22:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 19:21:02 +0100
[Message part 1 (text/plain, inline)]
I did this.

What is a bit strange is that the error message seemingly randomly alters
between what I already reported above and the following:

mdj <at> hat:~/prusa$ guix offload test
guix offload: testing 1 build machines defined in
'/etc/guix/machines.scm'...
guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
exporting path `/gnu/store/kw12ny565xl5p05ag6ysgshc9mhh4rz2-export-test'
guix offload: error: unknown error while sending files over SSH

This error message is more common. In this case, I couldn't see anything
obviously strange except the following backtrace which contains strange
characters:

31963 write(2, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
56464c2232a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
(\"prompt\") #<procedure 56464c2407e0 \342\200\246> \342\200\246)\nIn
ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
56464c2c4750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
string 56464c2d2bd0>)\nIn unknown file:\n           9 (eval (begin
(use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
(srfi \342\200\246) \342"..., 1150 <unfinished ...>

I have also noticed that the above (the error message) happens inside the
function send-files. It is the last error clause at the end of the function
which reports the error message.

I'd like to be able to, e.g., modify the function send-files to give some
debugging output. How can I easily do that? Should I checkout guix with git
and try to run it in the source tree? Or do you have other suggestions?

Best regards,
Mikael

On Sat, Mar 21, 2020 at 11:16 PM Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi Mikael,
>
> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>
> > I will look at the other buh reports. Meanwhile, do you have any hint on
> > where to look/insert logging code in order to see what is going on?
>
> On ‘wand’, can you run something like:
>
>   sudo strace -s 500 -p $(pidof sshd) -f -o sshd.log
>
> After that, run ‘guix offload test’ from the other host, and check what
> ‘sshd.log’ contains.  If would in particular look for all the ‘execve’
> syscalls as well as what happens right before ‘exit_group’ syscalls.
> There are probably error messages lurking there.  :-)
>
> You can share excerpts of the log but note that it will contain
> sensitive crypto material, so beware.
>
> Thanks in advance,
> Ludo’.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 20:47:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 21:45:57 +0100
Hello!

Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:

> This error message is more common. In this case, I couldn't see anything
> obviously strange except the following backtrace which contains strange
> characters:
>
> 31963 write(2, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
> 56464c2232a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
> (\"prompt\") #<procedure 56464c2407e0 \342\200\246> \342\200\246)\nIn
> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
> 56464c2c4750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
> string 56464c2d2bd0>)\nIn unknown file:\n           9 (eval (begin
> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
> (srfi \342\200\246) \342"..., 1150 <unfinished ...>

We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
similar so that it doesn’t truncate it?

(The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)

> I have also noticed that the above (the error message) happens inside the
> function send-files. It is the last error clause at the end of the function
> which reports the error message.
>
> I'd like to be able to, e.g., modify the function send-files to give some
> debugging output. How can I easily do that? Should I checkout guix with git
> and try to run it in the source tree? Or do you have other suggestions?

Note that the problems happens on the remote machine, which is what
makes it harder to debug.

If you want to debug (guix ssh), you’ll then have to run the daemon from
your Git checkout to exercise that code:

  sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild

HTH!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 21:41:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mikael Djurfeldt <mikael <at> djurfeldt.com>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 22:40:39 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:

> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>
> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
> similar so that it doesn’t truncate it?
>
> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>

Ah... :)

Here's a larger chunk of backtrace:

19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
(\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
(use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
(srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
 1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
\342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
(parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
\342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
(process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
(resolve-interface (guix) #:select _ #:hide _ #:prefix _
\342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
resolve-interface:\nno code for module (guix)\n", 16384) = 1150
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 21:57:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 22:56:06 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 10:40 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

> On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:
>
>> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>>
>> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
>> similar so that it doesn’t truncate it?
>>
>> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>>
>
> Ah... :)
>
> Here's a larger chunk of backtrace:
>
> 19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
> 563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
> (\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
> 563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
> string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
> (srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
>  1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
> \342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
> placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
> (parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
> \342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
> c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
> (process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
> ((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
> (resolve-interface (guix) #:select _ #:hide _ #:prefix _
> \342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
> resolve-interface:\nno code for module (guix)\n", 16384) = 1150
>

I think I understand part of the problem. It's not guix guile which is
invoked on wand but the guile which I have installed under /usr/local. But
why is this? guix as well as guile-ssh is installed at wand.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 22:14:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:13:36 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 10:56 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

> On Sun, Mar 22, 2020 at 10:40 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
> wrote:
>
>> On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:
>>
>>> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>>>
>>> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
>>> similar so that it doesn’t truncate it?
>>>
>>> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>>>
>>
>> Ah... :)
>>
>> Here's a larger chunk of backtrace:
>>
>> 19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
>> 563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
>> (\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
>> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
>> 563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
>> string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
>> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
>> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
>> (srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
>>  1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
>> \342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
>> placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
>> (parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
>> \342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
>> c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
>> (process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
>> ((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
>> (resolve-interface (guix) #:select _ #:hide _ #:prefix _
>> \342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
>> resolve-interface:\nno code for module (guix)\n", 16384) = 1150
>>
>
> I think I understand part of the problem. It's not guix guile which is
> invoked on wand but the guile which I have installed under /usr/local. But
> why is this? guix as well as guile-ssh is installed at wand.
>

Which guile is it supposed to use? Which version and which "fusion of
modules"? And how are these supposed to be found on the build machine.
Looking in the strace, it seems like a bash shell with "guile -c" is
started without any path information.

(Not sure that I even ask the right questions.)
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 22:16:01 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:14:56 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 11:13 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

> On Sun, Mar 22, 2020 at 10:56 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
> wrote:
>
>> On Sun, Mar 22, 2020 at 10:40 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
>> wrote:
>>
>>> On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:
>>>
>>>> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>>>>
>>>> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
>>>> similar so that it doesn’t truncate it?
>>>>
>>>> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>>>>
>>>
>>> Ah... :)
>>>
>>> Here's a larger chunk of backtrace:
>>>
>>> 19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
>>> 563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
>>> (\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
>>> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
>>> 563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
>>> string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
>>> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
>>> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
>>> (srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
>>>  1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
>>> \342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
>>> placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
>>> (parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
>>> \342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
>>> c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
>>> (process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
>>> ((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
>>> (resolve-interface (guix) #:select _ #:hide _ #:prefix _
>>> \342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
>>> resolve-interface:\nno code for module (guix)\n", 16384) = 1150
>>>
>>
>> I think I understand part of the problem. It's not guix guile which is
>> invoked on wand but the guile which I have installed under /usr/local. But
>> why is this? guix as well as guile-ssh is installed at wand.
>>
>
> Which guile is it supposed to use? Which version and which "fusion of
> modules"? And how are these supposed to be found on the build machine.
> Looking in the strace, it seems like a bash shell with "guile -c" is
> started without any path information.
>
> (Not sure that I even ask the right questions.)
>

The PATH of the build machine user is:

/home/guix/.guix-profile/bin:/home/guix/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/thinlinc/bin
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 22:26:01 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:24:50 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 11:14 PM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

> The PATH of the build machine user is:
>
> /home/guix/.guix-profile/bin:/home/guix/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/thinlinc/bin
>
>

The build host is not a pure guix installation but also has guix on top of
Debian Buster. It seems like the file transfer command is using an ssh call
which doesn't setup the proper guix environment (as, e.g., the
/usr/local/bin/guix script does). For example, PATH will have
/usr/local/bin before the guix environment such that the wrong guile is
selected.

Not sure how the proper setup should look like on the build host side...
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 22:31:01 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: mikael <at> djurfeldt.com, Ludovic Courtès <ludo <at> gnu.org>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:30:45 +0100
[Message part 1 (text/plain, inline)]
Mikael Djurfeldt <mikael <at> djurfeldt.com> writes:

> The PATH of the build machine user is:
>
> /home/guix/.guix-profile/bin:/home/guix/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/thinlinc/bin

Do you get the same result if you run:

  ssh wand 'echo $PATH'

?

It might be .bashrc is configured not to source the relevant scripts
when being invoked non-interactively, and/or through an SSH session.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 22:45:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:44:28 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 11:30 PM Marius Bakke <mbakke <at> fastmail.com> wrote:

> Mikael Djurfeldt <mikael <at> djurfeldt.com> writes:
>
> > The PATH of the build machine user is:
> >
> >
> /home/guix/.guix-profile/bin:/home/guix/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/thinlinc/bin
>
> Do you get the same result if you run:
>
>   ssh wand 'echo $PATH'
>
> ?
>
> It might be .bashrc is configured not to source the relevant scripts
> when being invoked non-interactively, and/or through an SSH session.
>

You're right. It doesn't source the scripts. The PATH only becomes
/usr/local/bin:/usr/bin:/bin:/usr/games in this case.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 23:00:02 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: mikael <at> djurfeldt.com
Cc: Ludovic Courtès <ludo <at> gnu.org>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:58:55 +0100
[Message part 1 (text/plain, inline)]
Mikael Djurfeldt <mikael <at> djurfeldt.com> writes:

>> It might be .bashrc is configured not to source the relevant scripts
>> when being invoked non-interactively, and/or through an SSH session.
>>
>
> You're right. It doesn't source the scripts. The PATH only becomes
> /usr/local/bin:/usr/bin:/bin:/usr/games in this case.

On Guix System, the default .bashrc does this:

if [[ $- != *i* ]]
then
    # We are being invoked from a non-interactive shell.  If this
    # is an SSH session (as in "ssh host command"), source
    # /etc/profile so we get PATH and other essential variables.
    [[ -n "$SSH_CLIENT" ]] && source /etc/profile

    # Don't do anything else.
    return
fi

IIRC Debian does something similar to detect if being invoked
non-interactively, but then just returns instead of sourcing anything.

Adding a line that sources ~/.guix-profile/etc/profile before the check
for an interactive shell might be enough in that case.

HTH,
Marius
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 23:14:01 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Mon, 23 Mar 2020 00:12:47 +0100
[Message part 1 (text/plain, inline)]
On Sun, Mar 22, 2020 at 11:59 PM Marius Bakke <mbakke <at> fastmail.com> wrote:

> Mikael Djurfeldt <mikael <at> djurfeldt.com> writes:
>
> >> It might be .bashrc is configured not to source the relevant scripts
> >> when being invoked non-interactively, and/or through an SSH session.
> >>
> >
> > You're right. It doesn't source the scripts. The PATH only becomes
> > /usr/local/bin:/usr/bin:/bin:/usr/games in this case.
>
> On Guix System, the default .bashrc does this:
>
> if [[ $- != *i* ]]
> then
>     # We are being invoked from a non-interactive shell.  If this
>     # is an SSH session (as in "ssh host command"), source
>     # /etc/profile so we get PATH and other essential variables.
>     [[ -n "$SSH_CLIENT" ]] && source /etc/profile
>
>     # Don't do anything else.
>     return
> fi
>
> IIRC Debian does something similar to detect if being invoked
> non-interactively, but then just returns instead of sourcing anything.
>
> Adding a line that sources ~/.guix-profile/etc/profile before the check
> for an interactive shell might be enough in that case.
>

I examined this a bit. You're right about .bashrc. But sourcing that
profile is not sufficient.

Just as a test, I enabled user specified environments in sshd_config (such
that ssh reads .ssh/environment) and added the following there:

PATH=/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin:/home/guix/.guix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
GUILE_LOAD_COMPILED_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/lib/guile/3.0/site-ccache:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/lib/guile/3.0/ccache
GUILE_LOAD_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/share/guile/site/3.0:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/share/guile/3.0
GUIX_PROFILE=/home/guix/.guix-profile
GUIX_LOCPATH=/home/guix/.guix-profile/lib/locale

This made the offload test work.

Crucial here is the PATH to guile 3.0.1 as well as the GUILE_LOAD_* paths.

But how are these *supposed* to be setup on the build host???
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 23:29:02 GMT) Full text and rfc822 format available.

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

From: Mikael Djurfeldt <mikael <at> djurfeldt.com>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Mon, 23 Mar 2020 00:28:04 +0100
[Message part 1 (text/plain, inline)]
On Mon, Mar 23, 2020 at 12:12 AM Mikael Djurfeldt <mikael <at> djurfeldt.com>
wrote:

>
> Just as a test, I enabled user specified environments in sshd_config (such
> that ssh reads .ssh/environment) and added the following there:
>
>
> PATH=/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin:/home/guix/.guix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
>
> GUILE_LOAD_COMPILED_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/lib/guile/3.0/site-ccache:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/lib/guile/3.0/ccache
>
> GUILE_LOAD_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/share/guile/site/3.0:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/share/guile/3.0
> GUIX_PROFILE=/home/guix/.guix-profile
> GUIX_LOCPATH=/home/guix/.guix-profile/lib/locale
>
> This made the offload test work.
>
> Crucial here is the PATH to guile 3.0.1 as well as the GUILE_LOAD_* paths.
>
> But how are these *supposed* to be setup on the build host???
>

Just to be clear:

You're right that this can be done without .ssh/environment and just using
a modified .bashrc.

But how am I supposed to retrieve all those PATHS in a way that doesn't
have to be modified as I update guix?
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Sun, 22 Mar 2020 23:42:02 GMT) Full text and rfc822 format available.

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

From: Marius Bakke <mbakke <at> fastmail.com>
To: mikael <at> djurfeldt.com
Cc: Ludovic Courtès <ludo <at> gnu.org>, 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Mon, 23 Mar 2020 00:40:53 +0100
[Message part 1 (text/plain, inline)]
Mikael Djurfeldt <mikael <at> djurfeldt.com> writes:

> Just as a test, I enabled user specified environments in sshd_config (such
> that ssh reads .ssh/environment) and added the following there:
>
> PATH=/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin:/home/guix/.guix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
> GUILE_LOAD_COMPILED_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/lib/guile/3.0/site-ccache:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/lib/guile/3.0/ccache
> GUILE_LOAD_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/share/guile/site/3.0:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/share/guile/3.0
> GUIX_PROFILE=/home/guix/.guix-profile
> GUIX_LOCPATH=/home/guix/.guix-profile/lib/locale
>
> This made the offload test work.
>
> Crucial here is the PATH to guile 3.0.1 as well as the GUILE_LOAD_* paths.
>
> But how are these *supposed* to be setup on the build host???

Installing 'guile' and 'guix' (or their Guile 3.0 equivalents) into the
user profile is the simplest solution.  Then you can just source
~/.guix-profile/etc/profile early in .bashrc, because it will contain
all the relevant variables.

Otherwise manipulating PATH and GUILE_LOAD_PATH directly seems like a
fine solution to me, but you should refer to
~/.config/guix/current/share/guile and friends instead of
/gnu/store/...guix-module-union/share/guile because the latter is prone
to being garbage collected.

Does that make sense?  It might be useful to create a dedicated user
account for this to avoid clobbering your regular dotfiles/profiles.

I don't think there is an established practice here, so your feedback on
this is very valuable!  Offloading to a Guix System will just work, of
course.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#40125; Package guix. (Mon, 23 Mar 2020 09:51:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mikael Djurfeldt <mikael <at> djurfeldt.com>
Cc: 40125 <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Mon, 23 Mar 2020 10:50:03 +0100
Hi Mikael,

Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:

> On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:
>
>> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>>
>> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
>> similar so that it doesn’t truncate it?
>>
>> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>>
>
> Ah... :)
>
> Here's a larger chunk of backtrace:
>
> 19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
> 563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
> (\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
> 563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
> string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
> (srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
>  1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
> \342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
> placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
> (parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
> \342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
> c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
> (process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
> ((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
> (resolve-interface (guix) #:select _ #:hide _ #:prefix _
> \342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
> resolve-interface:\nno code for module (guix)\n", 16384) = 1150

Thanks!  Commit 8f53d73493a2949e2db28cd7d689a690b2d9479a improves error
reporting in this case.

This can be tested by running “guix copy --to=HOST coreutils” for a host
where Guix modules are missing.

Thanks,
Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 02 Aug 2023 15:11:01 GMT) Full text and rfc822 format available.

Notification sent to mikael <at> djurfeldt.com:
bug acknowledged by developer. (Wed, 02 Aug 2023 15:11:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mikael Djurfeldt <mikael <at> djurfeldt.com>, 40125-done <at> debbugs.gnu.org
Subject: Re: bug#40125: Problem with guix offload: Remote channel closed
Date: Wed, 02 Aug 2023 11:09:45 -0400
Hello,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Mikael,
>
> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>
>> On Sun, Mar 22, 2020 at 9:46 PM Ludovic Courtès <ludo <at> gnu.org> wrote:
>>
>>> Mikael Djurfeldt <mikael <at> djurfeldt.com> skribis:
>>>
>>> We’re missing a tiny bit.  :-)  Could you run strace with ‘-s 3000’ or
>>> similar so that it doesn’t truncate it?
>>>
>>> (The “strange characters” are Unicode HORIZONTAL ELLIPSIS.)
>>>
>>
>> Ah... :)
>>
>> Here's a larger chunk of backtrace:
>>
>> 19530 read(20, "Backtrace:\n          13 (apply-smob/1 #<catch-closure
>> 563a9e2f92a0>)\nIn ice-9/boot-9.scm:\n    718:2 12 (call-with-prompt
>> (\"prompt\") #<procedure 563a9e3167e0 \342\200\246> \342\200\246)\nIn
>> ice-9/eval.scm:\n    619:8 11 (_ #(#(#<directory (guile-user)
>> 563a9e39a750>)))\nIn ice-9/command-line.scm:\n   181:18 10 (_ #<input:
>> string 563a9e3a8bd0>)\nIn unknown file:\n           9 (eval (begin
>> (use-modules (guix) (srfi srfi-34) # #) \342\200\246) #)\nIn
>> ice-9/eval.scm:\n   721:20  8 (primitive-eval (begin (use-modules (guix)
>> (srfi \342\200\246) \342\200\246) \342\200\246))\nIn ice-9/psyntax.scm:\n
>>  1241:36  7 (expand-top-sequence ((begin (use-modules (guix) \342\200\246)
>> \342\200\246)) \342\200\246)\n  1194:19  6 (parse _ ((\"placeholder\"
>> placeholder)) ((top) #(# # \342\200\246)) \342\200\246)\n  1233:19  5
>> (parse _ ((\"placeholder\" placeholder)) ((top) #(# # \342\200\246))
>> \342\200\246)\n   285:10  4 (parse _ ((\"placeholder\" placeholder)) (()) _
>> c&e (eval) \342\200\246)\nIn ice-9/boot-9.scm:\n  3389:20  3
>> (process-use-modules _)\n   222:17  2 (map1 (((guix)) ((srfi srfi-34))
>> ((rnrs io ports)) (#)))\n  3390:31  1 (_ ((guix)))\n   2809:6  0
>> (resolve-interface (guix) #:select _ #:hide _ #:prefix _
>> \342\200\246)\n\nice-9/boot-9.scm:2809:6: In procedure
>> resolve-interface:\nno code for module (guix)\n", 16384) = 1150
>
> Thanks!  Commit 8f53d73493a2949e2db28cd7d689a690b2d9479a improves error
> reporting in this case.
>
> This can be tested by running “guix copy --to=HOST coreutils” for a host
> where Guix modules are missing.

Great, closing!

-- 
Thanks,
Maxim




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

This bug report was last modified 231 days ago.

Previous Next


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