GNU bug report logs - #34015
guix copy error message is quite difficult to understand

Previous Next

Package: guix;

Reported by: Clément Lassieur <clement <at> lassieur.org>

Date: Tue, 8 Jan 2019 16:03:02 UTC

Severity: normal

To reply to this bug, email your comments to 34015 AT debbugs.gnu.org.

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#34015; Package guix. (Tue, 08 Jan 2019 16:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Clément Lassieur <clement <at> lassieur.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 08 Jan 2019 16:03:02 GMT) Full text and rfc822 format available.

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

From: Clément Lassieur <clement <at> lassieur.org>
To: bug-guix <at> gnu.org
Subject: guix copy error message is quite difficult to understand
Date: Tue, 08 Jan 2019 17:02:12 +0100
Hi,

This is what happens when /etc/profile isn't sourced in the remote
non-interactive shell on guix copy.

I find it difficult to understand.  I think the error message should
lead us to a way to fix the issue.

--8<---------------cut here---------------start------------->8---
sending 1 store item (0 MiB) to '192.168.0.51'...
;;; [2019/01/08 16:48:31.587577, 0] write_to_channel_port: [GSSH ERROR] Remote channel is closed: #<input-output: channel (open) 16bba60>
Backtrace:
          10 (primitive-load "/home/clement/.config/guix/current/bin…")
In guix/ui.scm:
  1644:12  9 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  8 (catch srfi-34 #<procedure 169c020 at guix/ui.scm:622:…> …)
    829:9  7 (catch system-error #<procedure 169c0c0 at guix/script…> …)
In guix/scripts/copy.scm:
    80:27  6 (send-to-remote-host _ _)
In guix/ssh.scm:
    313:4  5 (send-files #<build-daemon 256.99 1694f00> _ _ # _ # _)
In guix/store.scm:
  1466:12  4 (export-paths #<build-daemon 256.99 1694f00> _ #<input…> …)
  1446:22  3 (export-path #<build-daemon 256.99 1694f00> _ #<input-…> …)
   644:13  2 (process-stderr _ _)
   607:10  1 (dump-port #<input-output: socket 14> #<input-output: …> …)
In unknown file:
           0 (put-bytevector #<input-output: channel (open) 16bba60> …)

ERROR: In procedure put-bytevector:
Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote channel is closed" #<input-output: channel (open) 16bba60> #f)'.
--8<---------------cut here---------------end--------------->8---

Cheers,
Clément




Information forwarded to bug-guix <at> gnu.org:
bug#34015; Package guix. (Wed, 09 Jan 2019 21:23:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Clément Lassieur <clement <at> lassieur.org>
Cc: 34015 <at> debbugs.gnu.org
Subject: Re: bug#34015: guix copy error message is quite difficult to
 understand
Date: Wed, 09 Jan 2019 22:22:30 +0100
Hello Clément,

Clément Lassieur <clement <at> lassieur.org> skribis:

> This is what happens when /etc/profile isn't sourced in the remote
> non-interactive shell on guix copy.

Do you know specifically which environment variable was missing and what
caused the backtrace?

Also, what commit are you using?  I’m asking because commit
ed7b44370f71126087eb953f36aad8dc4c44109f changed the way we talk to a
remote Guix over SSH.

> I find it difficult to understand.  I think the error message should
> lead us to a way to fix the issue.
>
> sending 1 store item (0 MiB) to '192.168.0.51'...
> ;;; [2019/01/08 16:48:31.587577, 0] write_to_channel_port: [GSSH ERROR] Remote channel is closed: #<input-output: channel (open) 16bba60>
> Backtrace:
>           10 (primitive-load "/home/clement/.config/guix/current/bin…")
> In guix/ui.scm:
>   1644:12  9 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9  8 (catch srfi-34 #<procedure 169c020 at guix/ui.scm:622:…> …)
>     829:9  7 (catch system-error #<procedure 169c0c0 at guix/script…> …)
> In guix/scripts/copy.scm:
>     80:27  6 (send-to-remote-host _ _)
> In guix/ssh.scm:
>     313:4  5 (send-files #<build-daemon 256.99 1694f00> _ _ # _ # _)
> In guix/store.scm:
>   1466:12  4 (export-paths #<build-daemon 256.99 1694f00> _ #<input…> …)
>   1446:22  3 (export-path #<build-daemon 256.99 1694f00> _ #<input-…> …)
>    644:13  2 (process-stderr _ _)
>    607:10  1 (dump-port #<input-output: socket 14> #<input-output: …> …)
> In unknown file:
>            0 (put-bytevector #<input-output: channel (open) 16bba60> …)
>
> ERROR: In procedure put-bytevector:
> Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote channel is closed" #<input-output: channel (open) 16bba60> #f)'.

I agree the message could be… ahem… clearer.  :-)

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#34015; Package guix. (Thu, 10 Jan 2019 09:50:05 GMT) Full text and rfc822 format available.

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

From: Clément Lassieur <clement <at> lassieur.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34015 <at> debbugs.gnu.org
Subject: Re: bug#34015: guix copy error message is quite difficult to
 understand
Date: Thu, 10 Jan 2019 10:49:10 +0100
Hi Ludovic,

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

> Hello Clément,
>
> Clément Lassieur <clement <at> lassieur.org> skribis:
>
>> This is what happens when /etc/profile isn't sourced in the remote
>> non-interactive shell on guix copy.
>
> Do you know specifically which environment variable was missing and what
> caused the backtrace?

I don't know.  (I can't test right now.)

> Also, what commit are you using?  I’m asking because commit
> ed7b44370f71126087eb953f36aad8dc4c44109f changed the way we talk to a
> remote Guix over SSH.

It was 627e6d8c116573e4d76a4548282532cfe3c97d54, so I had the recent
changes.

>> I find it difficult to understand.  I think the error message should
>> lead us to a way to fix the issue.
>>
>> sending 1 store item (0 MiB) to '192.168.0.51'...
>> ;;; [2019/01/08 16:48:31.587577, 0] write_to_channel_port: [GSSH ERROR] Remote channel is closed: #<input-output: channel (open) 16bba60>
>> Backtrace:
>>           10 (primitive-load "/home/clement/.config/guix/current/bin…")
>> In guix/ui.scm:
>>   1644:12  9 (run-guix-command _ . _)
>> In ice-9/boot-9.scm:
>>     829:9  8 (catch srfi-34 #<procedure 169c020 at guix/ui.scm:622:…> …)
>>     829:9  7 (catch system-error #<procedure 169c0c0 at guix/script…> …)
>> In guix/scripts/copy.scm:
>>     80:27  6 (send-to-remote-host _ _)
>> In guix/ssh.scm:
>>     313:4  5 (send-files #<build-daemon 256.99 1694f00> _ _ # _ # _)
>> In guix/store.scm:
>>   1466:12  4 (export-paths #<build-daemon 256.99 1694f00> _ #<input…> …)
>>   1446:22  3 (export-path #<build-daemon 256.99 1694f00> _ #<input-…> …)
>>    644:13  2 (process-stderr _ _)
>>    607:10  1 (dump-port #<input-output: socket 14> #<input-output: …> …)
>> In unknown file:
>>            0 (put-bytevector #<input-output: channel (open) 16bba60> …)
>>
>> ERROR: In procedure put-bytevector:
>> Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote channel is closed" #<input-output: channel (open) 16bba60> #f)'.
>
> I agree the message could be… ahem… clearer.  :-)

:-)

Thanks,
Clément




This bug report was last modified 6 years and 153 days ago.

Previous Next


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