Hello,
I am unable to connect to the x2goserver. I have 3 almost same servers with Ubuntu 16.04, on two of them x2goserver is working, but on the third not. Version of the x2goserver packge is 4.1.0.3. I've tried all solutions I found. Here is the error message from the server (I replaced the IP address with X.X.X.X):
#> cat session-C-mbendzela-59-1556531225_stDXFCE_dp24.log
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
running as X2Go Agent
NXAGENT - Version 3.5.99.20
Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com <http://www.nomachine.com>) Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de <mailto:o.shneyder@phoca-gmbh.de>> Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de <mailto:mike.gabriel@das-netzwerkteam.de>> Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de <mailto:uli42@gmx.de>> Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de <mailto:ionic@ionic.de>> Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com <http://www.qindel.com>) See https://github.com/ArcticaProject/nx-libs <https://github.com/ArcticaProject/nx-libs> for more information.
Info: Agent running with pid '1602'. Session: Starting session at 'Mon Apr 29 11:47:06 2019'. Info: Proxy running in client mode with pid '1602'. Info: Using errors file '/tmp/.x2go-mbendzela/session-C-mbendzela-59-1556531225_stDXFCE_dp24.log'. Info: Using stats file '/home/mbendzela/.x2go/C-mbendzela-59-1556531225_stDXFCE_dp24/C-mbendzela-59-1556531225_stDXFCE_dp24/stats'. Loop: WARNING! Unrecognized session type 'unix-kde-depth_24'. Assuming agent session. Warning: Unrecognized session type 'unix-kde-depth_24'. Assuming agent session. Info: Waiting for connection from 'localhost' on socket 'tcp:*:30028'. Loop: WARNING! Refusing connection from 'X.X.X.X' on port '30028'. Warning: Refusing connection from 'X.X.X.X'. Loop: PANIC! Connection with remote host 'localhost' could not be established. Error: Connection with remote host 'localhost' could not be established. Error: Aborting session with 'Unable to open display 'nx/nx,options=/home/mbendzela/.x2go/C-mbendzela-59-1556531225_stDXFCE_dp24/options:59''. Session: Aborting session at 'Mon Apr 29 11:47:56 2019'. Session: Session aborted at 'Mon Apr 29 11:47:56 2019'.
Here is the error message from the X2goclient:
Loop: PANIC! The remote NX proxy closed the connection. Error: The remote NX proxy closed the connection. Loop: PANIC! Failure negotiating the session in stage '7'. Error: Failure negotiating the session in stage '7'. Loop: PANIC! Wrong version or invalid session authentication cookie. Error: Wrong version or invalid session authentication cookie. Session: Terminating session at 'Mon Apr 29 12:37:58 2019'. Session: Session terminated at 'Mon Apr 29 12:37:58 2019'.
When I connect to the server trough ssh with the -AX parameters (ssh -AX X.X.X.X), run command "x2goagent :10 &!" and then I run "/bin/bash /usr/bin/x2goruncommand 10 $(pgrep x2goagent|head -1) test 45342 xfce4-session nosnd R", it will start.