Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482548 - net-misc/x2goserver with net-misc/openssh[hpn]: x2goclient hangs at connect
Summary: net-misc/x2goserver with net-misc/openssh[hpn]: x2goclient hangs at connect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo NX Server project
URL:
Whiteboard:
Keywords:
Depends on: 488486
Blocks:
  Show dependency tree
 
Reported: 2013-08-26 12:50 UTC by Stefan Radermacher
Modified: 2014-08-28 08:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Radermacher 2013-08-26 12:50:13 UTC
When connecting to an installation of x2goserver on Gentoo, x2goclient never gets past the "connecting" stage.

The syslog on the sever indicates the shh connection is completed, and shows a regular logout when the client is shut down, but no session is actually started.

After some conversation with the developer on the #x2go Freenode channel it seems that some files or symlinks are not created correctly. It seems /usr/bin/x2goagent and /usr/lib/NX/x2goagent are missing.
Comment 1 Stefan Radermacher 2013-08-26 13:04:42 UTC
Versions used:

net-misc/nx-3.5.0.20-r1
net-misc/x2goserver-4.0.1.6
Comment 2 Bernard Cafarelli gentoo-dev 2013-08-28 13:15:51 UTC
Thanks for the report! My test setup hangs at x2goclient connection too, though it worked recently (and I did not update NX parts). I have a hunch on the culprit, let me do some tests.

For reference, in Gentoo we install /usr/bin/nxagent and /usr/lib/NX/nxagent (and update x2goserver accordingly) for historical compatibility with the "old" NX servers like nxserver-freenx or neatx. So these should work fine
Comment 3 Bernard Cafarelli gentoo-dev 2013-08-29 08:10:30 UTC
Confirmed, the problem comes from openssh[hpn]

When running x2goclient from console, it outputs the error message:
"channel_open_session failed" :  "SSH_KEXINIT received in wrong state" 

The workaround is to rebuild (on the server) openssh with USE=-hpn, etc-update/dispatch-conf and restart sshd

This looks like bug #477506 (xpra design is close to NX), CC-ing base-system for opinion here
Comment 4 Stefan Radermacher 2013-08-29 08:24:15 UTC
(In reply to Bernard Cafarelli from comment #3)
> The workaround is to rebuild (on the server) openssh with USE=-hpn,
> etc-update/dispatch-conf and restart sshd


This workaround works fine for me, thanks! 

Am I missing something not using high performance support for openssh?
Comment 5 Bernard Cafarelli gentoo-dev 2013-08-30 11:33:10 UTC
You go back to "standard" SSH performance, so not too bad :) It'd be nice that hpn worked here though
Comment 6 Bernard Cafarelli gentoo-dev 2013-09-12 12:59:13 UTC
For now I have modified x2goserver ebuilds to depend on openssh[-hpn], so users do not have to dig the x2go wiki or this bug to get a working setup
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-10-18 13:47:10 UTC
net-libs/libssh-0.6.0_rc1 seems to have this problem fixed. I requested a version bump in bug #488486.
Comment 8 Bernard Cafarelli gentoo-dev 2013-10-21 09:15:37 UTC
Thanks Lars! I was sure I had tested 0.6.0_rc1, probably mixed a few things between client and server. This test setup works fine indeed

Updated both packages to:
* still require openssh[-hpn] on arch x2goserver
* warn users with <libssh-0.6.0_rc1 on arch x2goclient
* allow openssh[hpn] on ~arch x2goserver
* require libssh-0.6.0_rc1 on ~arch x2goclient
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-28 08:16:25 UTC
Just for the record. This is still a problem when someone is using a windows build of x2goclient as these builds are still being shipped with libssh-0.5.5