<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 28/07/2013 02:55, Roland Giesler
wrote:<br>
<br>
Before continuing, I upgrade the client and server to the latest
stable version:<br>
<br>
<meta name="qrichtext" content="1">
<blockquote>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><big><font
face="monospace">X2Go client 4.0.1.0 (Qt - 4.8.3)<br>
</font></big></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><big><font
face="monospace">X2Go Server 4.0.1.5-0~709~precise1<br>
</font></big><!--EndFragment--></p>
<big><br>
</big></blockquote>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>After installation, I restarted the x2goserver.<br>
<br>
On the client, I connect to the server (client Ubuntu 12.10,
server Ubuntu 12.04)<br>
<br>
After displaying a message that a connection has been made,
finally the error message pops up.<br>
<br>
Since I started x2goclient from the command line, this output was
produced:<br>
<br>
<blockquote><big><font face="monospace">$ x2goclient </font></big><br>
<big><font face="monospace">ONMainWindow constructor </font></big><br>
<br>
<big><font face="monospace">Can't load translator
(:/x2goclient_en_za) !</font></big><br>
<br>
<big><font face="monospace">Can't load translator :/qt_en_ZA </font></big><br>
<big><font face="monospace">remove apps</font></big><br>
<big><font face="monospace"> </font></big><br>
<big><font face="monospace">plugging apps</font></big><br>
<big><font face="monospace"> </font></big><br>
<big><font face="monospace">ONMainWindows constructor finished,
home Directory is: "/home/roland" </font></big><br>
<br>
<big><font face="monospace">read 1 sessions from config file </font></big><br>
<big><font face="monospace">remove apps</font></big><br>
<big><font face="monospace"> </font></big><br>
<big><font face="monospace">start new ssh connection to server:
"aaa.fff.co.za" : "22" krb: false </font></big><br>
<br>
<big><font face="monospace">ssh connection ok </font></big><br>
<br>
<big><font face="monospace">continue normal x2go session </font></big><br>
<br>
<big><font face="monospace">remove apps</font></big><br>
<big><font face="monospace"> </font></big><br>
<font color="#3366ff"><big><font face="monospace">"x2gostartagent
1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 D
UNITY" </font></big></font><br>
<br>
<big><font face="monospace">Agent output: "50</font></big><br>
<big><font face="monospace">8f9f6270723f48e0a98a21254639cf9a</font></big><br>
<big><font face="monospace">5177</font></big><br>
<big><font face="monospace">roland-50-1375013942_stDUNITY_dp24</font></big><br>
<big><font face="monospace">30001</font></big><br>
<big><font face="monospace">30002</font></big><br>
<big><font face="monospace">30003</font></big><br>
<big><font face="monospace">" </font></big><br>
<big><font face="monospace">starting nxproxy with: "nxproxy -S
nx/nx,options=/home/roland/.x2go/S-roland-50-1375013942_stDUNITY_dp24/options:50"
</font></big><br>
<br>
<big><font face="monospace">"</font></big><br>
<big><font face="monospace">NXPROXY - Version 3.5.0</font></big><br>
<br>
<big><font face="monospace">Copyright (C) 2001, 2011 NoMachine.</font></big><br>
<big><font face="monospace">See <a class="moz-txt-link-freetext" href="http://www.nomachine.com/">http://www.nomachine.com/</a> for
more information.</font></big><br>
<br>
<big><font face="monospace">Info: Proxy running in client mode
with pid '28293'.</font></big><br>
<big><font face="monospace">Session: Starting session at 'Sun
Jul 28 14:19:00 2013'.</font></big><br>
<big><font face="monospace">Info: Connecting to remote host
'localhost:31001'.</font></big><br>
<big><font face="monospace">Info: Connection to remote proxy
'localhost:31001' established.</font></big><br>
<big><font face="monospace">" </font></big><br>
<br>
<big><font face="monospace">"Error: The remote NX proxy closed
the connection.</font></big><br>
<big><font face="monospace">Error: Failure negotiating the
session in stage '7'.</font></big><br>
<big><font face="monospace">Error: Wrong version or invalid
session authentication cookie.</font></big><br>
<big><font face="monospace">Session: Terminating session at 'Sun
Jul 28 14:19:06 2013'.</font></big><br>
<big><font face="monospace">Session: Session terminated at 'Sun
Jul 28 14:19:06 2013'.</font></big><br>
<big><font face="monospace">" </font></big><br>
<br>
<big><font face="monospace">deleting proxy </font></big><br>
<br>
<big><font face="monospace">nxproxy not running </font></big><br>
<br>
<big><font face="monospace">proxy deleted </font></big><br>
<br>
<big><font face="monospace">checking exit status </font></big><br>
<big><font face="monospace">check command message </font></big><br>
<br>
<big><font face="monospace">X Error: BadWindow (invalid Window
parameter) 3</font></big><br>
<big><font face="monospace"> Major opcode: 20 (X_GetProperty)</font></big><br>
<big><font face="monospace"> Resource id: 0x4004bbc</font></big><br>
<big><font face="monospace">X Error: BadWindow (invalid Window
parameter) 3</font></big><br>
<big><font face="monospace"> Major opcode: 15 (X_QueryTree)</font></big><br>
<big><font face="monospace"> Resource id: 0x4004bbc</font></big><br>
<big><font face="monospace">close event </font></big><br>
<big><font face="monospace">saving settings </font></big><br>
<big><font face="monospace">done </font></big><br>
</blockquote>
Things that I noticed above:<br>
<br>
1. The line <big><font face="monospace"><font color="#3366ff">"x2gostartagent
1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 D
UNITY"</font><font face="sans-serif"> seems to be asking for
a KDE session despite the fact that I set Gnome as the session
in my client config.</font></font></big><br>
<br>
Here is my config in /home/roland/.x2goclient/sessions:<br>
<br>
<blockquote><big><font face="monospace">[20130701230755080]</font></big><br>
<big><font face="monospace">speed=2</font></big><br>
<big><font face="monospace">pack=16m-jpeg</font></big><br>
<big><font face="monospace">quality=9</font></big><br>
<big><font face="monospace">fstunnel=true</font></big><br>
<big><font face="monospace">export=</font></big><br>
<big><font face="monospace">iconvto=UTF-8</font></big><br>
<big><font face="monospace">iconvfrom=ISO8859-1</font></big><br>
<big><font face="monospace">useiconv=false</font></big><br>
<big><font face="monospace">fullscreen=false</font></big><br>
<big><font face="monospace">width=1440</font></big><br>
<big><font face="monospace">multidisp=false</font></big><br>
<big><font face="monospace">display=1</font></big><br>
<big><font face="monospace">height=900</font></big><br>
<big><font face="monospace">dpi=96</font></big><br>
<big><font face="monospace">setdpi=false</font></big><br>
<big><font face="monospace">xinerama=false</font></big><br>
<big><font face="monospace">usekbd=true</font></big><br>
<big><font face="monospace">layout=us</font></big><br>
<big><font face="monospace">type=pc105/us</font></big><br>
<big><font face="monospace">sound=true</font></big><br>
<big><font face="monospace">soundsystem=pulse</font></big><br>
<big><font face="monospace">startsoundsystem=true</font></big><br>
<big><font face="monospace">soundtunnel=true</font></big><br>
<big><font face="monospace">defsndport=true</font></big><br>
<big><font face="monospace">sndport=4713</font></big><br>
<big><font face="monospace">print=true</font></big><br>
<big><font face="monospace">name=Ashton</font></big><br>
<big><font face="monospace">icon=:icons/128x128/x2gosession.png</font></big><br>
<big><font face="monospace">host=aaa.fff.co.za</font></big><br>
<big><font face="monospace">user=roland</font></big><br>
<big><font face="monospace">key=</font></big><br>
<big><font face="monospace">sshport=22</font></big><br>
<big><font face="monospace">autologin=false</font></big><br>
<big><font face="monospace">krblogin=false</font></big><br>
<big><font face="monospace">rootless=false</font></big><br>
<big><font face="monospace">published=false</font></big><br>
<big><font face="monospace">applications=WWWBROWSER, MAILCLIENT,
OFFICE, TERMINAL</font></big><br>
<big><font face="monospace">command=GNOME</font></big><br>
<big><font face="monospace">rdpoptions=</font></big><br>
<big><font face="monospace">rdpserver=</font></big><br>
<big><font face="monospace">xdmcpserver=localhost</font></big><br>
<big><font face="monospace">maxdim=false</font></big><br>
<big><font face="monospace">rdpclient=rdesktop</font></big><br>
<big><font face="monospace">directrdpsettings=</font></big><br>
<big><font face="monospace">rdpport=3389</font></big><br>
<big><font face="monospace">directrdp=false</font></big><br>
<big><font face="monospace">usesshproxy=false</font></big><br>
<big><font face="monospace">sshproxytype=SSH</font></big><br>
<big><font face="monospace">sshproxyuser=</font></big><br>
<big><font face="monospace">sshproxykeyfile=</font></big><br>
<big><font face="monospace">sshproxyhost=</font></big><br>
<big><font face="monospace">sshproxyport=22</font></big><br>
<big><font face="monospace">sshproxysamepass=false</font></big><br>
</blockquote>
<br>
At the server:<br>
<br>
<blockquote><big><font face="monospace">$ ls -la
/home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/</font></big><br>
<big><font face="monospace">total 32</font></big><br>
<big><font face="monospace">drwxrwxr-x 4 roland roland 4096 Jul
28 15:43 .</font></big><br>
<big><font face="monospace">drwxrwxr-x 24 roland roland 4096 Jul
28 15:43 ..</font></big><br>
<big><font face="monospace">drwx------ 2 roland roland 4096 Jul
28 15:43 C-roland-50-1375019027_stDGNOME_dp24</font></big><br>
<big><font face="monospace">drwxrwxr-x 2 roland roland 4096 Jul
28 15:43 keyboard</font></big><br>
<big><font face="monospace">-rw-rw-r-- 1 roland roland 405 Jul
28 15:43 options</font></big><br>
<big><font face="monospace">-rw-rw-r-- 1 roland roland 100 Jul
28 15:43 .pulse-client.conf</font></big><br>
<big><font face="monospace">-rw------- 1 roland roland 256 Jul
28 15:43 .pulse-cookie</font></big><br>
<big><font face="monospace">lrwxrwxrwx 1 roland roland 66 Jul
28 15:43 session.log ->
/tmp/.x2go-roland/session-C-roland-50-1375019027_stDGNOME_dp24.log</font></big><br>
</blockquote>
<br>
And the contents of session log above is:<br>
<br>
<blockquote><big><font face="monospace">$ cat
.x2go/C-roland-50-1375019027_stDGNOME_dp24/session.log </font></big><br>
<br>
<big><font face="monospace">running as X2Go Agent</font></big><br>
<br>
<big><font face="monospace">NXAGENT - Version 3.5.0</font></big><br>
<br>
<big><font face="monospace">Copyright (C) 2001, 2011 NoMachine.</font></big><br>
<big><font face="monospace">See <a class="moz-txt-link-freetext" href="http://www.nomachine.com/">http://www.nomachine.com/</a> for
more information.</font></big><br>
<br>
<big><font face="monospace">Info: Agent running with pid
'27929'.</font></big><br>
<big><font face="monospace">Session: Starting session at 'Sun
Jul 28 15:43:48 2013'.</font></big><br>
<big><font face="monospace">Info: Proxy running in server mode
with pid '27929'.</font></big><br>
<big><font face="monospace">Info: Waiting for connection from
'localhost' on port '30001'.</font></big><br>
<big><font face="monospace"><font color="#3366ff">Warning:
Refusing connection from '192.168.1.3'</font>.</font></big><br>
<big><font face="monospace">Error: Connection with remote host
'localhost' could not be established.</font></big><br>
<big><font face="monospace">Error: Aborting session with 'Unable
to open display
'nx/nx,options=/home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/options:50''.</font></big><br>
<big><font face="monospace">Session: Aborting session at 'Sun
Jul 28 15:44:38 2013'.</font></big><br>
<big><font face="monospace">Session: Session aborted at 'Sun Jul
28 15:44:38 2013'.</font></big><br>
</blockquote>
What I do notice is the "refusing connection from 192.168.1.3".
This is the ADSL router port, which forwards port 22 to the
x2goserver. <br>
<br>
In the following file<br>
<blockquote><big><font face="monospace">$ cat
.x2go/C-roland-50-1375019027_stDGNOME_dp24/options <br>
nx/nx,link=adsl,pack=16m-jpeg-9,limit=0,root=/home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24,cache=8M,images=32M,type=unix-kde-depth_24,id=roland-50-1375019027_stDGNOME_dp24,cookie=72bfbf8ddda3489cab3462411822a417,errors=/tmp/.x2go-roland/session-C-roland-50-1375019027_stDGNOME_dp24.log,kbtype=pc105/us,geometry=1440x900,resize=0,fullscreen=0,accept=localhost,listen=30001,client=linux,menu=0:50<br>
</font></big></blockquote>
It seems that "accept=localhost" should be "accept=192.168.1.3",
but the this file seems to be created for each session, so
changing it, doesn't fix the problem. <br>
<br>
I have added "192.168.1.3 localhost" to /etc/hosts as well as
changed /etc/x2go/x2goagent.conf as follows:<br>
<blockquote><big><font face="monospace">X2GO_NXAGENT_DEFAULT_OPTIONS+="
-extension GLX -from 192.168.1.3"</font></big><br>
</blockquote>
This doesn't seem to change the session options in <big><font
face="monospace">.x2go/C-roland-50-1375019027_stDGNOME_dp24/options</font></big><br>
<br>
in /var/log/syslog, the following is logged:<br>
<blockquote><small><font face="monospace"><big><big>Jul 28
14:17:01 Ashton CRON[4353]: (root) CMD ( cd /
&& run-parts --report /etc/cron.hourly)</big><br>
<big>Jul 28 14:19:01 Ashton
/usr/bin/x2golistsessions[4987]: x2golistsessions has
been called with no option</big><br>
<big>Jul 28 14:19:01 Ashton /usr/bin/x2gostartagent:
x2gostartagent called with options: 1440x900 adsl
16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 D UNITY</big><br>
<big>Jul 28 14:19:01 Ashton /usr/bin/x2gostartagent:
client announced itself as ,,105.236.170.173''</big><br>
<big>Jul 28 14:19:01 Ashton
/usr/bin/x2gosessionlimit[5009]: x2gosessionlimit has
been called</big><br>
<big>Jul 28 14:19:01 Ashton
/usr/bin/x2golistsessions[5012]: x2golistsessions has
been called with options: --all-servers</big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2gogetdisplays[5027]: db_getdisplays
called, server: Ashton; return value: </big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2gogetports[5036]: db_getports called,
server: Ashton; return value: </big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2goinsertsession[5054]: db_insertsession
called, session ID: roland-50-1375013942_stDUNITY_dp24,
server: Ashton, session ID:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2gogetports[5072]: db_getports called,
server: Ashton; return value: </big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2goinsertport[5086]: db_insertport
called, session ID: roland-50-1375013942_stDUNITY_dp24,
server: Ashton, SSH port: 30001</big><br>
<big>Jul 28 14:19:02 Ashton
/usr/lib/x2go/x2gogetports[5095]: db_getports called,
server: Ashton; return value: |30001|</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/lib/x2go/x2goinsertport[5109]: db_insertport
called, session ID: roland-50-1375013942_stDUNITY_dp24,
server: Ashton, SSH port: 30002</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/lib/x2go/x2gogetports[5118]: db_getports called,
server: Ashton; return value: |30001| |30002|</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/lib/x2go/x2goinsertport[5132]: db_insertport
called, session ID: roland-50-1375013942_stDUNITY_dp24,
server: Ashton, SSH port: 30003</big><br>
<big>Jul 28 14:19:03 Ashton /usr/bin/x2gofeature:
x2gofeature called with options: X2GO_RUN_EXTENSIONS</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features:
x2goserver-extensions.features called with options:
X2GO_RUN_EXTENSIONS</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/bin/x2goserver-run-extensions:
x2goserver-run-extensions called with options:
roland-50-1375013942_stDUNITY_dp24 pre-start</big><br>
<big>Jul 28 14:19:03 Ashton /usr/bin/x2gostartagent:
successfully started X2Go agent session with ID
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:03 Ashton /usr/bin/x2gofeature:
x2gofeature called with options: X2GO_RUN_EXTENSIONS</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features:
x2goserver-extensions.features called with options:
X2GO_RUN_EXTENSIONS</big><br>
<big>Jul 28 14:19:03 Ashton
/usr/bin/x2goserver-run-extensions:
x2goserver-run-extensions called with options:
roland-50-1375013942_stDUNITY_dp24 post-start</big><br>
<big>Jul 28 14:19:04 Ashton
/usr/lib/x2go/x2gocreatesession[5210]: db_createsession
called, session ID: roland-50-1375013942_stDUNITY_dp24,
cookie: 8f9f6270723f48e0a98a21254639cf9a, client:
105.236.170.173, pid: 5177, graphics port: 30001, sound
port: 30002, file sharing port: 30003</big><br>
<big>Jul 28 14:19:04 Ashton /usr/bin/x2gostartagent:
blocking creation of agent's keyboard file
/home/roland/.x2go/C-roland-50-1375013942_stDUNITY_dp24/keyboard
as requested by session startup command</big><br>
<big>Jul 28 14:19:10 Ashton /usr/bin/x2gocmdexitmessage:
x2gocmdexitmessage called with options:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/lib/x2go/x2gochangestatus[5660]: db_changestatus
called, session ID: roland-50-1375013942_stDUNITY_dp24,
new status: F</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24, pid 5177 does not
exist, changing status from R to F</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24: unmounting all
shares</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/bin/x2goumount-session[5683]: x2goumount-session
has been called with options:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/bin/x2goumount-session[5683]: db_getdisplay called,
session ID: roland-50-1375013942_stDUNITY_dp24; return
value: 50</big><br>
<big>Jul 28 14:19:54 Ashton
/usr/bin/x2goumount-session[5683]: db_getmounts called,
session ID: roland-50-1375013942_stDUNITY_dp24; return
value: </big><br>
<big>Jul 28 14:19:56 Ashton
/usr/lib/x2go/x2golistsessions_sql[5699]:
dbsys_deletemounts called, session ID:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:56 Ashton
/usr/lib/x2go/x2golistsessions_sql[5699]: Purging
finished session from X2Go db, session ID:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:56 Ashton
/usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24 is blocked</big><br>
<big>Jul 28 14:19:56 Ashton
/usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24: unmounting all
shares</big><br>
<big>Jul 28 14:19:57 Ashton
/usr/bin/x2goumount-session[5718]: x2goumount-session
has been called with options:
roland-50-1375013942_stDUNITY_dp24</big><br>
<big>Jul 28 14:19:57 Ashton
/usr/bin/x2goumount-session[5718]: db_getdisplay called,
session ID: roland-50-1375013942_stDUNITY_dp24; return
value: </big><br>
<big>Jul 28 14:19:57 Ashton
/usr/bin/x2goumount-session[5718]: db_getmounts called,
session ID: roland-50-1375013942_stDUNITY_dp24; return
value: </big></big></font></small><br>
</blockquote>
This problem has been persistent for a long time and I have not
been able to find any solution.<br>
<br>
I'd really appreciate if anyone would be able to help me find and
fix this issue.<br>
<br>
thanks again<br>
<br>
Roland<br>
<br>
<br>
</div>
<blockquote cite="mid:51F46BE4.10209@giesler.za.net" type="cite">
<pre wrap="">On 17/07/2013 11:18, Kjell Otto wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hey Roland,
I'm sorry but I'm quite busy right now.
Following things to try:
Kill all sessions on your server.
Use the root command to list all users sessions with:
sudo x2golistsessions_root
Delete all involved users .Xauthority files.
If you've got hanging sessions left, manually execute
x2goterminatesessions with the ID.
Make the x2goserver logging level to debug in /etc/x2go/x2xgoserver.conf
Reboot the machine.
</pre>
</blockquote>
<pre wrap="">
I finally got around to trying this out tonight. There are no sessions
running and I deleted all the .Xauthority file from the users' home
directories.
Then I rebooted.
</pre>
<blockquote type="cite">
<pre wrap="">
Then open a new Master Session -> KDE or xterm, whatever..
</pre>
</blockquote>
<pre wrap="">
I've have searched high and low. What is a new Master Session? I
cannot find anything about it. I have logged in on the server console,
but it makes not difference?
</pre>
<blockquote type="cite">
<pre wrap="">Use the root command again to make sure it's known by the x2goserver.
Then start the Shadow Session to the Master Session.
</pre>
</blockquote>
<pre wrap="">And of course, what is a Shadow Session?
I'm not trying to connect to a logged-in user at this stage, I just want
to start a new X-session when I connect with x2goclient.
thanks again
Roland
</pre>
</blockquote>
<br>
</body>
</html>