On Fri, Mar 27, 2015 at 5:28 PM, Mihai Moldovan <ionic@ionic.de> wrote:
On 27.03.2015 10:13 PM, Michael Stauffer wrote:
> I've just setup a new x2go server (CentOS Linux release 7.0.1406). I
> installed using yum and the epel repo. I can ssh to the server without
> trouble. I'm running x2goclient on Max OS X 10.8.5. I have XQuartz
> installed and it works with other X apps.

What x2goclient version are you using exactly?

Thanks for the reply, Mihai.
I'm using:

X2Go Client V. 4.0.3.2 (Qt - 4.8.6)

XQuartz 2.7.7
 

> === When I try to connect, I get this in the x2goclient window:
>
> NXPROXY - Version 3.5.0
>
>
> Copyright (C) 2001, 2010 NoMachine.
>
> See http://www.nomachine.com/ for more information.
>
>
> Info: Proxy running in client mode with pid '55900'x2go-WARNING-1>
> "Can't load translator: :/x2goclient_en_us"
>
> x2go-WARNING-2> "Can't load translator: :/qt_en_US"
>
> Connection timeout, abortingInfo: Aborting the procedure due to signal
> '15'.
>

This is SIGTERM. The process was killed.


> Session: Session terminated at 'Fri Mar 27 16:53:57 2015'.
>
> .
>
> Session: Starting session at 'Fri Mar 27 16:53:27 2015'.
>
> Info: Connecting to remote host 'localhost:31009'.
>
>
> === I found x2go logs on the client:
>
>
> .x2go/C-mgstauff-52-1427489600_stDGNOME_dp32/session.log
>
>
> running as X2Go Agent
>
>
> NXAGENT - Version 3.5.0
>
>
> Copyright (C) 2001, 2011 NoMachine.
>
> See http://www.nomachine.com/ for more information.
>
>
> Info: Agent running with pid '4746'.
>
> Session: Starting session at 'Fri Mar 27 16:53:24 2015'.
>
> Info: Proxy running in server mode with pid '4746'.
>
> Info: Waiting for connection from 'localhost' on port '30009'.
>
> Info: Aborting the procedure due to signal '1'.
>
> Error: Aborting session with 'Unable to open display
> 'nx/nx,options=/tmp/.x2go-mgstauff/C-mgstauff-52-1427489600_stDGNOME_dp32/options:52''.
>
> Session: Aborting session at 'Fri Mar 27 16:54:14 2015'.
>
> Session: Session aborted at 'Fri Mar 27 16:54:14 2015'.
>

Normal, nxproxy died (which it shouldn't have), so nxagent got SIGHUP.


> When I terminate the failed x2goclient session, the app crashes.
>
>
> Does anyone have any suggestions about this? Thanks!
>

Can you please start x2goclient manually from a terminal with the
--debug option?

Normally by starting /Applications/Utilities/Terminal.app and issuing
/Applications/x2goclient.app/Contents/MacOS/x2goclient --debug.

The last path may differ depending on where you put x2goclient.app.

Here's the output from running x2goclient --debug. I terminated previous sessions, quite x2goclient, then restarted with --debug to get this output. After I give login credentials, it posts messages to the gui window and then reverts to the new session login window. Thanks!

x2go-INFO-1> "Starting x2goclient..."
x2go-WARNING-1> "Can't load translator: :/x2goclient_en_us"
x2go-WARNING-2> "Can't load translator: :/qt_en_US"
x2go-INFO-3> "Started  x2goclient."
x2go-DEBUG-onmainwindow.cpp:495> "$HOME=/Users/michael"
x2go-DEBUG-onmainwindow.cpp:2123> Reading 1 sessions from config file.
x2go-DEBUG-onmainwindow.cpp:5822> set focus

x2go-INFO-8> "Starting connection to server: 170.212.169.239:22"
x2go-DEBUG-onmainwindow.cpp:2702> Start new ssh connection to server:"170.212.169.239":"22" krbLogin: false
x2go-DEBUG-sshmasterconnection.cpp:202> starting ssh connection without kerberos authentication

x2go-DEBUG-sshmasterconnection.cpp:206> SshMasterConnection, instance SshMasterConnection(0x10402cb10)  created 
x2go-DEBUG-sshmasterconnection.cpp:442> SshMasterConnection, instance SshMasterConnection(0x10402cb10)  entering thread 
x2go-DEBUG-sshmasterconnection.cpp:478> libSsh not inited yet, initting

x2go-DEBUG-sshmasterconnection.cpp:789> cserverAuth
 
x2go-DEBUG-sshmasterconnection.cpp:804> state: 1

x2go-DEBUG-sshmasterconnection.cpp:963> Password authentication

x2go-DEBUG-sshmasterconnection.cpp:654> user auth OK

x2go-DEBUG-onmainwindow.cpp:2797> SSH connection established.
x2go-DEBUG-onmainwindow.cpp:3060> Continue normal x2go session
x2go-DEBUG-sshprocess.cpp:189> executing remote command via SshProcess object (0): "export HOSTNAME && x2golistsessions"

x2go-DEBUG-sshmasterconnection.cpp:1434> creating new channel

x2go-DEBUG-sshmasterconnection.cpp:1438> new channel:0x10693dde0

x2go-DEBUG-sshmasterconnection.cpp:1469> executing remote: "sh -c 'echo X2GODATABEGIN:293fa8eb-7405-4ba3-bec8-0cfea74f4c27; PATH=/usr/local/bin:/usr/bin:/bin export HOSTNAME && x2golistsessions; echo X2GODATAEND:293fa8eb-7405-4ba3-bec8-0cfea74f4c27;'"

x2go-DEBUG-sshmasterconnection.cpp:1492>  new exec channel created

x2go-DEBUG-sshmasterconnection.cpp:1541> EOF ON CHANNEL 0x10693dde0 (SshProcess: 0)

x2go-DEBUG-sshmasterconnection.cpp:1664> eof sent

x2go-DEBUG-sshmasterconnection.cpp:1668> channel closed

x2go-DEBUG-sshprocess.cpp:449> ssh finished: true - "" (0).

x2go-DEBUG-onmainwindow.cpp:3404> ""
x2go-DEBUG-onmainwindow.cpp:3923> Executing remote command: "X2GODPI=72 x2gostartagent 800x600 wan 16m-jpeg-9 unix-kde-depth_32 us query 0 D GNOME both"
x2go-DEBUG-sshprocess.cpp:189> executing remote command via SshProcess object (1): "X2GODPI=72 x2gostartagent 800x600 wan 16m-jpeg-9 unix-kde-depth_32 us query 0 D GNOME both"

x2go-DEBUG-sshmasterconnection.cpp:1434> creating new channel

x2go-DEBUG-sshmasterconnection.cpp:1438> new channel:0x10693dde0

x2go-DEBUG-sshmasterconnection.cpp:1469> executing remote: "sh -c 'echo X2GODATABEGIN:3bf96d30-efb4-4d60-aeec-341e78e1e7fa; PATH=/usr/local/bin:/usr/bin:/bin X2GODPI=72 x2gostartagent 800x600 wan 16m-jpeg-9 unix-kde-depth_32 us query 0 D GNOME both; echo X2GODATAEND:3bf96d30-efb4-4d60-aeec-341e78e1e7fa;'"

x2go-DEBUG-sshmasterconnection.cpp:1492>  new exec channel created

x2go-DEBUG-sshmasterconnection.cpp:1596> EOF ON CHANNEL 0x10693dde0 (SshProcess: 1)

x2go-DEBUG-sshmasterconnection.cpp:1664> eof sent

x2go-DEBUG-sshmasterconnection.cpp:1668> channel closed

x2go-DEBUG-sshprocess.cpp:449> ssh finished: true - "55
3e727081407dd051a36720a0b101e551
12801
mgstauff-55-1427918194_stDGNOME_dp32
30018
30019
30020
" (1).

x2go-DEBUG-onmainwindow.cpp:4727> Agent output: "55
3e727081407dd051a36720a0b101e551
12801
mgstauff-55-1427918194_stDGNOME_dp32
30018
30019
30020
"
x2go-DEBUG-sshprocess.cpp:294> Starting tunnel via SshProcess object (2): "localhost":30018 -> "localhost":31018

x2go-DEBUG-onmainwindow.cpp:5337> "Starting NX proxy, command: "/Applications/x2goclient.app/Contents/exe/"nxproxy -S nx/nx,options=/Users/michael/.x2go/S-mgstauff-55-1427918194_stDGNOME_dp32/options:55"
x2go-DEBUG-sshprocess.cpp:157> Direct tunnel: waiting for connections on "localhost":31018

x2go-DEBUG-sshprocess.cpp:244> copying file via SshProcess object (3): "/Users/michael/.esd_auth" -> "$HOME/.esd_auth"

x2go-DEBUG-sshmasterconnection.cpp:1273> SSH Master Connection copy - dst path:"$HOME" file:".esd_auth"

x2go-DEBUG-sshprocess.cpp:294> Starting tunnel via SshProcess object (4): "localhost":30019 -> "127.0.0.1":30019

x2go-DEBUG-sshmasterconnection.cpp:388> Requesting reverse tunnel from port 30019 to 30019
x2go-DEBUG-onmainwindow.cpp:5662> Proxy wrote on stderr: "
NXPROXY - Version 3.5.0

Copyright (C) 2001, 2010 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '82945'.
Session: Starting session at 'Wed Apr  1 15:56:41 2015'.
Error: Failed to resolve address of 'localhost'.
Error: Unknown remote host 'localhost'.
Session: Session terminated at 'Wed Apr  1 15:56:41 2015'.
"
QProcess: Destroyed while process is still running.
x2go-DEBUG-onmainwindow.cpp:5519> Deleting Proxy.
x2go-DEBUG-onmainwindow.cpp:5568> Waiting for proxy to exit.
x2go-DEBUG-onmainwindow.cpp:5588> Checking exit status.
x2go-DEBUG-sshprocess.cpp:189> executing remote command via SshProcess object (5): "x2gocmdexitmessage mgstauff-55-1427918194_stDGNOME_dp32"

x2go-DEBUG-onmainwindow.cpp:5645> Finished Proxy.
x2go-DEBUG-sshmasterconnection.cpp:1434> creating new channel

x2go-DEBUG-sshmasterconnection.cpp:1438> new channel:0x10693dde0

x2go-DEBUG-sshmasterconnection.cpp:1469> executing remote: "sh -c 'echo X2GODATABEGIN:bf398e9e-ef83-4388-be35-c937c6b22ba3; PATH=/usr/local/bin:/usr/bin:/bin x2gocmdexitmessage mgstauff-55-1427918194_stDGNOME_dp32; echo X2GODATAEND:bf398e9e-ef83-4388-be35-c937c6b22ba3;'"

x2go-DEBUG-sshmasterconnection.cpp:1492>  new exec channel created

x2go-DEBUG-sshmasterconnection.cpp:277> Listening for TCP/IP connections on 30019
x2go-DEBUG-sshmasterconnection.cpp:1596> EOF ON CHANNEL 0x10693dde0 (SshProcess: 5)

x2go-DEBUG-sshmasterconnection.cpp:1664> eof sent

x2go-DEBUG-sshmasterconnection.cpp:1668> channel closed

x2go-DEBUG-sshprocess.cpp:449> ssh finished: true - "" (5).

x2go-DEBUG-onmainwindow.cpp:8944> "Command Message: "
x2go-DEBUG-sshmasterconnection.cpp:708> SshMasterConnection, instance SshMasterConnection(0x10402cb10)  waiting for thread to finish 
x2go-DEBUG-sshmasterconnection.cpp:1353> Disconnecting...

x2go-DEBUG-sshmasterconnection.cpp:1364> Deleting channel connections

x2go-DEBUG-sshmasterconnection.cpp:1372> Disconnect session

x2go-DEBUG-sshmasterconnection.cpp:1378> Delete sockets

x2go-DEBUG-sshmasterconnection.cpp:1385> All channels closed, session disconnected, quiting session loop

x2go-DEBUG-sshmasterconnection.cpp:712> SshMasterConnection, instance SshMasterConnection(0x10402cb10)  thread finished 
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshprocess.cpp:52> ssh process destructor
x2go-DEBUG-sshmasterconnection.cpp:719> SshMasterConnection, instance SshMasterConnection(0x10402cb10)  SshMasterConnection, instance  SshMasterConnection(0x7fce7c008aa0) deleted 
x2go-DEBUG-onmainwindow.cpp:5822> set focus

x2go-DEBUG-onmainwindow.cpp:1503> Quitting tray icon and closing application.

x2go-INFO-6> "Closing x2goclient..."
x2go-DEBUG-onmainwindow.cpp:1332> Saving settings...
x2go-DEBUG-onmainwindow.cpp:1341> Saved  settings.
x2go-DEBUG-sshmasterconnection.cpp:736> libssh finalized

x2go-INFO-7> "Closed  x2goclient."
x2go-DEBUG-onmainwindow.cpp:508> Destroying x2goclient...
x2go-DEBUG-onmainwindow.cpp:511> Destroyed  x2goclient.