GNU bug report logs - #44999
guix deploy Error reading from the channel

Previous Next

Package: guix;

Reported by: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>

Date: Wed, 2 Dec 2020 00:16:01 UTC

Severity: normal

Tags: moreinfo

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

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

Acknowledgement sent to Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 02 Dec 2020 00:16:01 GMT) Full text and rfc822 format available.

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

From: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
To: bug-guix <at> gnu.org
Subject: guix deploy Error reading from the channel
Date: Wed, 02 Dec 2020 01:14:46 +0100
[Message part 1 (text/plain, inline)]
Hello Guixters,

I am trying to deploy a system on DigitalOcean droplet using `guix
deploy`. But I am facing the following issue :

   $ guix deploy ynm-machine-declaration.scm 
   La (1) machine suivante sera déployée :
     ynm

   guix deploy: déploiement vers ynm...
   ;;; [2020/12/02 00:15:48.683027, 0] read_from_channel_port: [GSSH
   ERROR] Error reading from the channel: #<unknown channel (freed)
   7f3ca3ef80a0>

Then I decided to Ctrl-C the process.


Sometimes I did ssh to the target to see if I can see proof that things
were doing ok (for example if the infect script is created in the tmp
directory...). And I noticed I had to delete the ssh key of the target
on my laptop to ssh again...

   ssh-keygen -f "/home/jeko/.ssh/known_hosts" -R "159.89.21.175"

Then, on the target machine guix seems to be installed. I am able to
run `guix pull`. But the packages I wanted to be globally installed
were missing.

On the laptop I deployed from:

   $ guix --version
   guix (GNU Guix) d848b6caab973f6191143360ca53787a19c5e6e4
   Copyright © 2020 les auteurs de Guix
   Licence GPLv3+ : GNU GPL version 3 ou ultérieure <
   http://www.gnu.org/licenses/gpl.fr.html>
   Ceci est un logiciel libre : vous êtes libre de le modifier et de le
   redistribuer.
   Il n'y a AUCUNE GARANTIE, dans les limites permises par la loi.

On the droplet after guix pull:

   # guix --version
   guix (GNU Guix) 04b83678653fda3c66e600e88f54f5108290ec1c
   Copyright (C) 2020 the Guix authors
   License GPLv3+: GNU GPL version 3 or later <
   http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

I have no clue how to provide more info (logs, traces, …) but I would
be very happy to do so if anyone can lead me a bit on that.

Cheers,

Jeko
[ynm-machine-declaration.scm (text/x-scheme, attachment)]
[ynm-system-decalaration.scm (text/x-scheme, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#44999; Package guix. (Thu, 03 Dec 2020 16:47:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
Cc: 44999 <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Thu, 03 Dec 2020 17:45:57 +0100
Hi Jérémy,

Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:

> I am trying to deploy a system on DigitalOcean droplet using `guix
> deploy`. But I am facing the following issue :
>
>    $ guix deploy ynm-machine-declaration.scm 
>    La (1) machine suivante sera d.ploy.e :
>      ynm
>
>    guix deploy: d.ploiement vers ynm...
>    ;;; [2020/12/02 00:15:48.683027, 0] read_from_channel_port: [GSSH
>    ERROR] Error reading from the channel: #<unknown channel (freed)
>    7f3ca3ef80a0>
>
> Then I decided to Ctrl-C the process.

Does it fail like this every time?

Your message suggests deployment on the droplet eventually succeeded
since you were able to run ‘guix pull’ there, is that correct?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#44999; Package guix. (Fri, 04 Dec 2020 14:54:01 GMT) Full text and rfc822 format available.

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

From: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 44999 <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Fri, 04 Dec 2020 15:53:22 +0100
Le jeudi 03 décembre 2020 à 17:45 +0100, Ludovic Courtès a écrit :
> Does it fail like this every time?
> 
> Your message suggests deployment on the droplet eventually succeeded
> since you were able to run ‘guix pull’ there, is that correct?
> 
> Thanks,
> Ludo’.

Hello Ludo !

I made some more attempts. I was unable to reproduce the previous
scenario… Looks like with my ssh connections I put myself in an
exceptionnal situation.

All I got is `guix deploy` running forever (I let it more than 2 hours)

   $ guix deploy ynm-droplet-declaration.scm
   La (1) machine suivante sera déployée :
     ynm1607086083

   guix deploy: déploiement vers ynm1607086083...

I have to kill it myself. There is no guix on the target system.

As soon as I get some time I will try to determine where it stops.

Jérémy







Information forwarded to bug-guix <at> gnu.org:
bug#44999; Package guix. (Thu, 17 Dec 2020 11:38:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
Cc: 44999 <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Thu, 17 Dec 2020 12:37:26 +0100
Hi Jérémy,

Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:

> I made some more attempts. I was unable to reproduce the previous
> scenario… Looks like with my ssh connections I put myself in an
> exceptionnal situation.
>
> All I got is `guix deploy` running forever (I let it more than 2 hours)
>
>    $ guix deploy ynm-droplet-declaration.scm
>    La (1) machine suivante sera déployée :
>      ynm1607086083
>
>    guix deploy: déploiement vers ynm1607086083...
>
> I have to kill it myself. There is no guix on the target system.
>
> As soon as I get some time I will try to determine where it stops.

Did it eventually succeed?  Or do you keep hitting hangs?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#44999; Package guix. (Thu, 17 Dec 2020 13:22:02 GMT) Full text and rfc822 format available.

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

From: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 44999 <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Thu, 17 Dec 2020 14:20:49 +0100
Hey Ludo' !

Thank you for asking !

I apologize to have not taken the time to investigate on this
(understand: put 'pk' commands everywhere haha. I don't know what else
to do).

Just did a retry. The command line still hangs with :

   $ guix deploy ynm-droplet-declaration.scm 
   La (1) machine suivante sera déployée :
     kitchen

   guix deploy: déploiement vers kitchen...

The droplet is created with the right hostname (kitchen in ynm / 1 GB
Memory  / 25 GB Disk  / FRA1 - Debian 9 x64)

So I SSH to the machine and ran some commands :

$ ssh root <at> 165.22.28.15 -p 22 -i /home/jeko/.ssh/id_rsa.pub
The authenticity of host '165.22.28.15 (165.22.28.15)' can't be
established.
ECDSA key fingerprint is
SHA256:7dACwKdFtebnZB/vs/pMcChgsp3yoITOvATZFtXki+c.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
yes
Warning: Permanently added '165.22.28.15' (ECDSA) to the list of known
hosts.
Linux kitchen 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05)
x86_64

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
# ls /root/
guix-binary-1.0.1.x86_64-linux.tar.xz
# ls /tmp/
guix-infect.sh	var
# guix --version
guix (GNU Guix) 1.0.1
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

While I was writing this message, I've been disconnected from SSH

   root <at> kitchen:~# Connection to 165.22.28.15 closed by remote host.
   Connection to 165.22.28.15 closed.

And the following trace appeared on the hanging deploy command

   ;;; [2020/12/17 14:10:55.445770, 0] read_from_channel_port: [GSSH
   ERROR] Error reading from the channel: #<unknown channel (freed)
   7f2cf28b86c0>

If I want to SSH again to the machine, I get this message :

   $ ssh root <at> 165.22.28.15 -p 22 -i /home/jeko/.ssh/id_rsa.pub
   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
   @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
   IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
   Someone could be eavesdropping on you right now (man-in-the-middle
   attack)!
   It is also possible that a host key has just been changed.
   The fingerprint for the ECDSA key sent by the remote host is
   SHA256:52FacP3UGfdq4zggEVW5cbCzlbqSepkZhki5qMo0bnQ.
   Please contact your system administrator.
   Add correct host key in /home/jeko/.ssh/known_hosts to get rid of
   this message.
   Offending ECDSA key in /home/jeko/.ssh/known_hosts:36
     remove with:
     ssh-keygen -f "/home/jeko/.ssh/known_hosts" -R "165.22.28.15"
   ECDSA host key for 165.22.28.15 has changed and you have requested
   strict checking.
   Host key verification failed.

That's all I can bring on the table right know ! 

To be continued…

Jérémy





Added tag(s) moreinfo. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 16 Jan 2021 14:26:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#44999; Package guix. (Fri, 23 Jul 2021 21:34:02 GMT) Full text and rfc822 format available.

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

From: Jérémy Korwin-Zmijowski
 <jeremy <at> korwin-zmijowski.fr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 44999 <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Fri, 23 Jul 2021 23:33:49 +0200
[Message part 1 (text/plain, inline)]
Hi !

With more recent Guix version the error is slightly different.

I think we could close this issue.

I will open a new one later.

Jérémy

[Message part 2 (text/html, inline)]
[OpenPGP_0x700F5E0CCBB2E2D1.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 25 Jul 2021 17:02:01 GMT) Full text and rfc822 format available.

Notification sent to Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>:
bug acknowledged by developer. (Sun, 25 Jul 2021 17:02:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
Cc: 44999-done <at> debbugs.gnu.org
Subject: Re: bug#44999: guix deploy Error reading from the channel
Date: Sun, 25 Jul 2021 19:01:42 +0200
Hi,

Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:

> With more recent Guix version the error is slightly different.
>
> I think we could close this issue.
>
> I will open a new one later.

Alright, closing this one.

Ludo’.




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

This bug report was last modified 2 years and 247 days ago.

Previous Next


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