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.
Then open a new Master Session -> KDE or xterm, whatever.. Use the root command again to make sure it's known by the x2goserver. Then start the Shadow Session to the Master Session.
Include as many logfiles as possible into a new mail to the mailing list.
Greetings, Kjellski
2013/7/17 Roland Giesler <roland@giesler.za.net>
Kjell, thanks for your input so far. I was wondering if you have any other suggestions to try and track this pesky problem down?
regards
Roland
On Mon, Jul 15, 2013 at 12:32 PM, Roland Giesler <roland@giesler.za.net> wrote:
On Thu, Jul 11, 2013 at 8:07 PM, Kjell Otto <otto.kjell@gmail.com> wrote:
Have you tried to delete the .Xauthority File in the users Homefolder?
I have now.
On the client I log:
Loop: PANIC! The remote NX proxy closed the connection. Loop: PANIC! Failure negotiating the session in stage '7'. Loop: PANIC! Wrong version or invalid session authentication cookie.
On the server, the session log shows:
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 '2543'. Session: Starting session at 'Mon Jul 15 11:50:05 2013'. Info: Proxy running in server mode with pid '2543'. Info: Waiting for connection from 'localhost' on port '30001'. Warning: Refusing connection from '192.168.1.3'. Error: Connection with remote host 'localhost' could not be established. Error: Aborting session with 'Unable to open display
Session: Aborting session at 'Mon Jul 15 11:50:55 2013'. Session: Session aborted at 'Mon Jul 15 11:50:55 2013'.
This makes me think. I port forward port 22 through the ADSL router (which has 192.168.1.1 as LAN ethernet address and the server has 192.168.1.3). Could this have something to do with the problem? What is port 30001 used for and should I allow that through the firewall? Surely port 22 should be enough?
I have also turned apparmor off, but it makes no difference.
thanks again
Roland
Please Try that first. Your log seems to be completely normal so far...
Do
you have a Desktop you can shadow to? I mean if there is no MasterSession opened, then you can't shadow it...
Best regards, Kjellski
2013/7/11 Roland Giesler <roland@giesler.za.net>
On Thu, Jul 11, 2013 at 9:22 AM, Kjell Otto <otto.kjell@gmail.com>
wrote:
Hi Roland,
have you seen what's mentioned here:
http://developer.berlios.de/bugs/?func=detailbug&bug_id=18258&group_id=2978
Here's what my server log has.
Jul 11 15:14:54 Ashton /usr/bin/x2golistdesktops[30895]: x2golistdesktops has been called without options Jul 11 15:14:54 Ashton /usr/bin/x2golistsessions[30899]: x2golistsessions has been called with options: x2goserver Jul 11 15:14:58 Ashton /usr/bin/x2gostartagent: x2gostartagent called with options: 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 S 1XSHADrolandXSHAD:0 Jul 11 15:14:58 Ashton /usr/bin/x2gosessionlimit[30961]: x2gosessionlimit has been called Jul 11 15:14:58 Ashton /usr/bin/x2golistsessions[30964]: x2golistsessions has been called with options: --all-servers Jul 11 15:14:59 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 11 15:14:59 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 11 15:15:00 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24 pre-start Jul 11 15:15:00 Ashton /usr/bin/x2gostartagent: successfully started X2Go agent session with ID roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24 Jul 11 15:15:00 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 11 15:15:00 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 11 15:15:00 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24 post-start Jul 11 15:15:00 Ashton /usr/bin/x2gostartagent: blocking creation of agent's keyboard file
/home/roland/.x2go/C-roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24/keyboard
as requested by session startup command Jul 11 15:15:52 Ashton /usr/bin/x2goumount-session[31487]: x2goumount-session has been called with options: roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24 Jul 11 15:15:54 Ashton /usr/bin/x2goumount-session[31524]: x2goumount-session has been called with options: roland-50-1373548499_stS1XSHADrolandXSHADPP0_dp24 Jul 11 15:17:01 Ashton CRON[31876]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Jul 11 15:19:46 Ashton /usr/bin/x2golistdesktops[428]: x2golistdesktops has been called without options Jul 11 15:19:46 Ashton /usr/bin/x2golistsessions[432]: x2golistsessions has been called with options: x2goserver Jul 11 15:19:52 Ashton /usr/bin/x2gostartagent: x2gostartagent called with options: 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 S 1XSHADrolandXSHAD:0 Jul 11 15:19:52 Ashton /usr/bin/x2gostartagent: client announced itself as ,,105.237.13.183'' Jul 11 15:19:52 Ashton /usr/bin/x2gostartagent: shadow session requested: mode 1, user: roland, desktop: :0 Jul 11 15:19:52 Ashton /usr/bin/x2gosessionlimit[496]: x2gosessionlimit has been called Jul 11 15:19:52 Ashton /usr/bin/x2golistsessions[499]: x2golistsessions has been called with options: --all-servers Jul 11 15:19:52 Ashton /usr/lib/x2go/x2gogetdisplays[513]: db_getdisplays called, server: Ashton; return value: Jul 11 15:19:52 Ashton /usr/lib/x2go/x2gogetports[523]: db_getports called, server: Ashton; return value: Jul 11 15:19:53 Ashton /usr/lib/x2go/x2goinsertsession[550]: db_insertsession called, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24, server: Ashton, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24 Jul 11 15:19:53 Ashton /usr/lib/x2go/x2goinsertport[562]: db_insertport called, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24, server: Ashton, SSH port: 30001 Jul 11 15:19:53 Ashton /usr/lib/x2go/x2goinsertport[574]: db_insertport called, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24, server: Ashton, SSH port: 30002 Jul 11 15:19:53 Ashton /usr/lib/x2go/x2goinsertport[587]: db_insertport called, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24, server: Ashton, SSH port: 30003 Jul 11 15:19:53 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 11 15:19:53 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 11 15:19:53 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24 pre-start Jul 11 15:19:53 Ashton /usr/bin/x2gostartagent: successfully started X2Go agent session with ID roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24 Jul 11 15:19:53 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 11 15:19:54 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 11 15:19:54 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24 post-start Jul 11 15:19:54 Ashton /usr/lib/x2go/x2gocreatesession[680]: db_createsession called, session ID: roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24, cookie: 99946d36e5e8848f5f91951d5c1c6f67, client: xxx.yyy.13.183, pid: 645, graphics port: 30001, sound port: 30002, file sharing port: 30003 Jul 11 15:19:54 Ashton /usr/bin/x2gostartagent: blocking creation of agent's keyboard file
/home/roland/.x2go/C-roland-50-1373548792_stS1XSHADrolandXSHADPP0_dp24/keyboard
as requested by session startup command
That last line: Is that because of the error, or is it causing the error?
thanks
Roland
Wether it helps or not, it would be great to see the server side of this, so please post the corresponding entries of your /var/log/syslog after configuring the x2goserver for debugging(set it in /etc/x2go/x2goserver.conf).
Nevertheless, the only Cookies I can think used by x2go are the MIT magic cookies of X... maybe try to delete the .Xauthority of the user
to log in and retry...
Greetings, @Kjellski
2013/7/10 Roland Giesler <roland@giesler.za.net>
I must have read every mailing list and other posts I could find on Google regarding this problem. Nowhere was anyone able to identify the actual cause and fix for this problem.
How can this be? Does anyone know where the X2Go developer(s) hang out?
thanks
Roland Giesler +27 (0)72-450-2817 http://www.giesler.za.net
Disclaimer: The sender invokes the rule of "exemptus
responsibilitus"
pertaining to caffeine soluted inductions and/or decantations
into tactile communication interfaces and alternative apparatuses with respect to personal computation devices or otherwise implementations of electronic and/or bionic devices. This impartation is intended for the addressed party, unless conditions contrary to the aforementioned exist, in which case it is pertinent. Reduce without further ado to nothingness said impartation; alternatively "refrain from traversing the point of origination, be not enriched by 200 Randus and proceed without delay to enjailment".
On Thu, Jul 4, 2013 at 10:25 PM, Roland Giesler < roland@giesler.za.net> wrote: > bump. > > anyone with help? > > On Mon, Jul 1, 2013 at 11:36 PM, Roland Giesler > <roland@giesler.za.net> > wrote: >> This error is most annoying to say the least, since no-where on
'nx/nx,options=/home/roland/.x2go/C-roland-50-1373881804_stDUNITY_dp24/options:50''. trying thereof the
>> internet is an explaination of the cause nor the fix for it. Some >> people seem to have managed to get past it by luck. >> >> This is an Ubuntu 12.04 64bit server that had nxserver install. One >> day (probably after some update, but it was too long ago to undo of >> trace now) the nxclient just stopped working. >> >> I left it after many futile attempt to fix it. I have completely >> removed (purged) openssh-server and nxserver, nxnode and nxclient. >> Numerous times, apart from creating keys manually and more. >> >> So I though, let me switch to X2Go. And lo and behold, I get the >> same >> error. >> >> Strangely enough though, I can connect perfect to the server via SSH >> every time. >> >> What causes this and how does one fix this please? >> >> regards >> >> Roland
X2Go-User mailing list X2Go-User@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-user
On 17/07/2013 11:18, Kjell Otto wrote:
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.
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.
Then open a new Master Session -> KDE or xterm, whatever..
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?
Use the root command again to make sure it's known by the x2goserver. Then start the Shadow Session to the Master Session. 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
On 28/07/2013 02:55, Roland Giesler wrote:
Before continuing, I upgrade the client and server to the latest stable version:
X2Go client 4.0.1.0 (Qt - 4.8.3)
X2Go Server 4.0.1.5-0~709~precise1
After installation, I restarted the x2goserver.
On the client, I connect to the server (client Ubuntu 12.10, server Ubuntu 12.04)
After displaying a message that a connection has been made, finally the error message pops up.
Since I started x2goclient from the command line, this output was produced:
$ x2goclient
ONMainWindow constructor
Can't load translator (:/x2goclient_en_za) !
Can't load translator :/qt_en_ZA
remove apps
plugging apps
ONMainWindows constructor finished, home Directory is: "/home/roland"
read 1 sessions from config file
remove apps
start new ssh connection to server: "aaa.fff.co.za" : "22" krb: false
ssh connection ok
continue normal x2go session
remove apps
"x2gostartagent 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us
pc105/us 1 D UNITY"
Agent output: "50
8f9f6270723f48e0a98a21254639cf9a
5177
roland-50-1375013942_stDUNITY_dp24
30001
30002
30003
"
starting nxproxy with: "nxproxy -S
nx/nx,options=/home/roland/.x2go/S-roland-50-1375013942_stDUNITY_dp24/options:50"
"
NXPROXY - Version 3.5.0
Copyright (C) 2001, 2011 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '28293'.
Session: Starting session at 'Sun Jul 28 14:19:00 2013'.
Info: Connecting to remote host 'localhost:31001'.
Info: Connection to remote proxy 'localhost:31001' established.
"
"Error: The remote NX proxy closed the connection.
Error: Failure negotiating the session in stage '7'.
Error: Wrong version or invalid session authentication cookie.
Session: Terminating session at 'Sun Jul 28 14:19:06 2013'.
Session: Session terminated at 'Sun Jul 28 14:19:06 2013'.
"
deleting proxy
nxproxy not running
proxy deleted
checking exit status
check command message
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x4004bbc
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 15 (X_QueryTree)
Resource id: 0x4004bbc
close event
saving settings
done
Things that I noticed above:
Here is my config in /home/roland/.x2goclient/sessions:
[20130701230755080]
speed=2
pack=16m-jpeg
quality=9
fstunnel=true
export=
iconvto=UTF-8
iconvfrom=ISO8859-1
useiconv=false
fullscreen=false
width=1440
multidisp=false
display=1
height=900
dpi=96
setdpi=false
xinerama=false
usekbd=true
layout=us
type=pc105/us
sound=true
soundsystem=pulse
startsoundsystem=true
soundtunnel=true
defsndport=true
sndport=4713
print=true
name=Ashton
icon=:icons/128x128/x2gosession.png
host=aaa.fff.co.za
user=roland
key=
sshport=22
autologin=false
krblogin=false
rootless=false
published=false
applications=WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL
command=GNOME
rdpoptions=
rdpserver=
xdmcpserver=localhost
maxdim=false
rdpclient=rdesktop
directrdpsettings=
rdpport=3389
directrdp=false
usesshproxy=false
sshproxytype=SSH
sshproxyuser=
sshproxykeyfile=
sshproxyhost=
sshproxyport=22
sshproxysamepass=false
At the server:
$ ls -la /home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/
total 32
drwxrwxr-x 4 roland roland 4096 Jul 28 15:43 .
drwxrwxr-x 24 roland roland 4096 Jul 28 15:43 ..
drwx------ 2 roland roland 4096 Jul 28 15:43
C-roland-50-1375019027_stDGNOME_dp24
drwxrwxr-x 2 roland roland 4096 Jul 28 15:43 keyboard
-rw-rw-r-- 1 roland roland 405 Jul 28 15:43 options
-rw-rw-r-- 1 roland roland 100 Jul 28 15:43 .pulse-client.conf
-rw------- 1 roland roland 256 Jul 28 15:43 .pulse-cookie
lrwxrwxrwx 1 roland roland 66 Jul 28 15:43 session.log ->
/tmp/.x2go-roland/session-C-roland-50-1375019027_stDGNOME_dp24.log
And the contents of session log above is:
$ cat .x2go/C-roland-50-1375019027_stDGNOME_dp24/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 '27929'.
Session: Starting session at 'Sun Jul 28 15:43:48 2013'.
Info: Proxy running in server mode with pid '27929'.
Info: Waiting for connection from 'localhost' on port '30001'.
Warning: Refusing connection from '192.168.1.3'.
Error: Connection with remote host 'localhost' could not be established.
Error: Aborting session with 'Unable to open display
'nx/nx,options=/home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/options:50''.
Session: Aborting session at 'Sun Jul 28 15:44:38 2013'.
Session: Session aborted at 'Sun Jul 28 15:44:38 2013'.
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.
In the following file
$ cat .x2go/C-roland-50-1375019027_stDGNOME_dp24/options
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
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.
I have added "192.168.1.3 localhost" to /etc/hosts as well as changed /etc/x2go/x2goagent.conf as follows:
X2GO_NXAGENT_DEFAULT_OPTIONS+=" -extension GLX -from 192.168.1.3"
This doesn't seem to change the session options in .x2go/C-roland-50-1375019027_stDGNOME_dp24/options
in /var/log/syslog, the following is logged:
Jul 28 14:17:01 Ashton CRON[4353]: (root) CMD ( cd / && run-parts
--report /etc/cron.hourly)
Jul 28 14:19:01 Ashton /usr/bin/x2golistsessions[4987]:
x2golistsessions has been called with no option
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
Jul 28 14:19:01 Ashton /usr/bin/x2gostartagent: client announced
itself as ,,105.236.170.173''
Jul 28 14:19:01 Ashton /usr/bin/x2gosessionlimit[5009]:
x2gosessionlimit has been called
Jul 28 14:19:01 Ashton /usr/bin/x2golistsessions[5012]:
x2golistsessions has been called with options: --all-servers
Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetdisplays[5027]:
db_getdisplays called, server: Ashton; return value:
Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5036]: db_getports
called, server: Ashton; return value:
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
Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5072]: db_getports
called, server: Ashton; return value:
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
Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5095]: db_getports
called, server: Ashton; return value: |30001|
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
Jul 28 14:19:03 Ashton /usr/lib/x2go/x2gogetports[5118]: db_getports
called, server: Ashton; return value: |30001| |30002|
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
Jul 28 14:19:03 Ashton /usr/bin/x2gofeature: x2gofeature called with
options: X2GO_RUN_EXTENSIONS
Jul 28 14:19:03 Ashton
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features:
x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
Jul 28 14:19:03 Ashton /usr/bin/x2goserver-run-extensions:
x2goserver-run-extensions called with options:
roland-50-1375013942_stDUNITY_dp24 pre-start
Jul 28 14:19:03 Ashton /usr/bin/x2gostartagent: successfully started
X2Go agent session with ID roland-50-1375013942_stDUNITY_dp24
Jul 28 14:19:03 Ashton /usr/bin/x2gofeature: x2gofeature called with
options: X2GO_RUN_EXTENSIONS
Jul 28 14:19:03 Ashton
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features:
x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
Jul 28 14:19:03 Ashton /usr/bin/x2goserver-run-extensions:
x2goserver-run-extensions called with options:
roland-50-1375013942_stDUNITY_dp24 post-start
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
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
Jul 28 14:19:10 Ashton /usr/bin/x2gocmdexitmessage:
x2gocmdexitmessage called with options:
roland-50-1375013942_stDUNITY_dp24
Jul 28 14:19:54 Ashton /usr/lib/x2go/x2gochangestatus[5660]:
db_changestatus called, session ID:
roland-50-1375013942_stDUNITY_dp24, new status: F
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
Jul 28 14:19:54 Ashton /usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24: unmounting all shares
Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]:
x2goumount-session has been called with options:
roland-50-1375013942_stDUNITY_dp24
Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]:
db_getdisplay called, session ID:
roland-50-1375013942_stDUNITY_dp24; return value: 50
Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]:
db_getmounts called, session ID: roland-50-1375013942_stDUNITY_dp24;
return value:
Jul 28 14:19:56 Ashton /usr/lib/x2go/x2golistsessions_sql[5699]:
dbsys_deletemounts called, session ID:
roland-50-1375013942_stDUNITY_dp24
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
Jul 28 14:19:56 Ashton /usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24 is blocked
Jul 28 14:19:56 Ashton /usr/sbin/x2gocleansessions[3457]:
roland-50-1375013942_stDUNITY_dp24: unmounting all shares
Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]:
x2goumount-session has been called with options:
roland-50-1375013942_stDUNITY_dp24
Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]:
db_getdisplay called, session ID:
roland-50-1375013942_stDUNITY_dp24; return value:
Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]:
db_getmounts called, session ID: roland-50-1375013942_stDUNITY_dp24;
return value:
This problem has been persistent for a long time and I have not been able to find any solution.
I'd really appreciate if anyone would be able to help me find and fix this issue.
thanks again
Roland
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. 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
On 17/07/2013 11:18, Kjell Otto wrote: directories. Then I rebooted.
Then open a new Master Session -> KDE or xterm, whatever.. 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?
Use the root command again to make sure it's known by the x2goserver. Then start the Shadow Session to the Master Session. 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
Hi Roland,
sorry to let you down on this, I'm still busy doing other stuff all the time.
The error you're getting seems to be related to your X-Server installation. The KDE part of the agent starting is completely normal, it's just about setting your color depth AFAIK.
Sorry about messing arround with Master and Shadow stuff... What I ment was this: When you're starting a GNOME session. You can just close the window when you're leaving the desktop. Then just start the GNOME session again once you want to come back. And you'll see the old one is still running and resumable.
There is another way to connect to an opened session, via the desktopsharing feature of x2go. But that seems unrelated...
It seems that you've messed up a part of your X or X configuration. This is acutally what stops your x2go client from really doing something:
check command message
X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x4004bbc X Error: BadWindow (invalid Window parameter) 3 Major opcode: 15 (X_QueryTree) Resource id: 0x4004bbc
Try to find the problem related to this. It seems that your problem is not about x2go...
Greetings, Kjellski
2013/7/28 Roland Giesler <roland@giesler.za.net>
On 28/07/2013 02:55, Roland Giesler wrote:
Before continuing, I upgrade the client and server to the latest stable version:
X2Go client 4.0.1.0 (Qt - 4.8.3)
X2Go Server 4.0.1.5-0~709~precise1
After installation, I restarted the x2goserver.
On the client, I connect to the server (client Ubuntu 12.10, server Ubuntu 12.04)
After displaying a message that a connection has been made, finally the error message pops up.
Since I started x2goclient from the command line, this output was produced:
$ x2goclient ONMainWindow constructor
Can't load translator (:/x2goclient_en_za) !
Can't load translator :/qt_en_ZA remove apps
plugging apps
ONMainWindows constructor finished, home Directory is: "/home/roland"
read 1 sessions from config file remove apps
start new ssh connection to server: "aaa.fff.co.za" : "22" krb: false
ssh connection ok
continue normal x2go session
remove apps
"x2gostartagent 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 D UNITY"
Agent output: "50 8f9f6270723f48e0a98a21254639cf9a 5177 roland-50-1375013942_stDUNITY_dp24 30001 30002 30003 " starting nxproxy with: "nxproxy -S nx/nx,options=/home/roland/.x2go/S-roland-50-1375013942_stDUNITY_dp24/options:50"
" NXPROXY - Version 3.5.0
Copyright (C) 2001, 2011 NoMachine. See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '28293'. Session: Starting session at 'Sun Jul 28 14:19:00 2013'. Info: Connecting to remote host 'localhost:31001'. Info: Connection to remote proxy 'localhost:31001' established. "
"Error: The remote NX proxy closed the connection. Error: Failure negotiating the session in stage '7'. Error: Wrong version or invalid session authentication cookie. Session: Terminating session at 'Sun Jul 28 14:19:06 2013'. Session: Session terminated at 'Sun Jul 28 14:19:06 2013'. "
deleting proxy
nxproxy not running
proxy deleted
checking exit status check command message
X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x4004bbc X Error: BadWindow (invalid Window parameter) 3 Major opcode: 15 (X_QueryTree) Resource id: 0x4004bbc close event saving settings done
Things that I noticed above:
- The line "x2gostartagent 1440x900 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 D UNITY" seems to be asking for a KDE session despite the fact that I set Gnome as the session in my client config.
Here is my config in /home/roland/.x2goclient/sessions:
[20130701230755080] speed=2 pack=16m-jpeg quality=9 fstunnel=true export= iconvto=UTF-8 iconvfrom=ISO8859-1 useiconv=false fullscreen=false width=1440 multidisp=false display=1 height=900 dpi=96 setdpi=false xinerama=false usekbd=true layout=us type=pc105/us sound=true soundsystem=pulse startsoundsystem=true soundtunnel=true defsndport=true sndport=4713 print=true name=Ashton icon=:icons/128x128/x2gosession.png host=aaa.fff.co.za user=roland key= sshport=22 autologin=false krblogin=false rootless=false published=false applications=WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL command=GNOME rdpoptions= rdpserver= xdmcpserver=localhost maxdim=false rdpclient=rdesktop directrdpsettings= rdpport=3389 directrdp=false usesshproxy=false sshproxytype=SSH sshproxyuser= sshproxykeyfile= sshproxyhost= sshproxyport=22 sshproxysamepass=false
At the server:
$ ls -la /home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/ total 32 drwxrwxr-x 4 roland roland 4096 Jul 28 15:43 . drwxrwxr-x 24 roland roland 4096 Jul 28 15:43 .. drwx------ 2 roland roland 4096 Jul 28 15:43 C-roland-50-1375019027_stDGNOME_dp24 drwxrwxr-x 2 roland roland 4096 Jul 28 15:43 keyboard -rw-rw-r-- 1 roland roland 405 Jul 28 15:43 options -rw-rw-r-- 1 roland roland 100 Jul 28 15:43 .pulse-client.conf -rw------- 1 roland roland 256 Jul 28 15:43 .pulse-cookie lrwxrwxrwx 1 roland roland 66 Jul 28 15:43 session.log -> /tmp/.x2go-roland/session-C-roland-50-1375019027_stDGNOME_dp24.log
And the contents of session log above is:
$ cat .x2go/C-roland-50-1375019027_stDGNOME_dp24/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 '27929'. Session: Starting session at 'Sun Jul 28 15:43:48 2013'. Info: Proxy running in server mode with pid '27929'.
Info: Waiting for connection from 'localhost' on port '30001'. Warning: Refusing connection from '192.168.1.3'. Error: Connection with remote host 'localhost' could not be established. Error: Aborting session with 'Unable to open display 'nx/nx,options=/home/roland/.x2go/C-roland-50-1375019027_stDGNOME_dp24/options:50''. Session: Aborting session at 'Sun Jul 28 15:44:38 2013'. Session: Session aborted at 'Sun Jul 28 15:44:38 2013'.
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.
In the following file
$ cat .x2go/C-roland-50-1375019027_stDGNOME_dp24/options
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
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.
I have added "192.168.1.3 localhost" to /etc/hosts as well as changed /etc/x2go/x2goagent.conf as follows:
X2GO_NXAGENT_DEFAULT_OPTIONS+=" -extension GLX -from 192.168.1.3"
This doesn't seem to change the session options in .x2go/C-roland-50-1375019027_stDGNOME_dp24/options
in /var/log/syslog, the following is logged:
Jul 28 14:17:01 Ashton CRON[4353]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Jul 28 14:19:01 Ashton /usr/bin/x2golistsessions[4987]: x2golistsessions has been called with no option 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 Jul 28 14:19:01 Ashton /usr/bin/x2gostartagent: client announced itself as ,,105.236.170.173'' Jul 28 14:19:01 Ashton /usr/bin/x2gosessionlimit[5009]: x2gosessionlimit has been called Jul 28 14:19:01 Ashton /usr/bin/x2golistsessions[5012]: x2golistsessions has been called with options: --all-servers Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetdisplays[5027]: db_getdisplays called, server: Ashton; return value: Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5036]: db_getports called, server: Ashton; return value: 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 Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5072]: db_getports called, server: Ashton; return value: 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 Jul 28 14:19:02 Ashton /usr/lib/x2go/x2gogetports[5095]: db_getports called, server: Ashton; return value: |30001| 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 Jul 28 14:19:03 Ashton /usr/lib/x2go/x2gogetports[5118]: db_getports called, server: Ashton; return value: |30001| |30002| 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 Jul 28 14:19:03 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 28 14:19:03 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 28 14:19:03 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1375013942_stDUNITY_dp24 pre-start Jul 28 14:19:03 Ashton /usr/bin/x2gostartagent: successfully started X2Go agent session with ID roland-50-1375013942_stDUNITY_dp24 Jul 28 14:19:03 Ashton /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS Jul 28 14:19:03 Ashton /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS Jul 28 14:19:03 Ashton /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: roland-50-1375013942_stDUNITY_dp24 post-start 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 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 Jul 28 14:19:10 Ashton /usr/bin/x2gocmdexitmessage: x2gocmdexitmessage called with options: roland-50-1375013942_stDUNITY_dp24 Jul 28 14:19:54 Ashton /usr/lib/x2go/x2gochangestatus[5660]: db_changestatus called, session ID: roland-50-1375013942_stDUNITY_dp24, new status: F 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 Jul 28 14:19:54 Ashton /usr/sbin/x2gocleansessions[3457]: roland-50-1375013942_stDUNITY_dp24: unmounting all shares Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]: x2goumount-session has been called with options: roland-50-1375013942_stDUNITY_dp24 Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]: db_getdisplay called, session ID: roland-50-1375013942_stDUNITY_dp24; return value: 50 Jul 28 14:19:54 Ashton /usr/bin/x2goumount-session[5683]: db_getmounts called, session ID: roland-50-1375013942_stDUNITY_dp24; return value: Jul 28 14:19:56 Ashton /usr/lib/x2go/x2golistsessions_sql[5699]: dbsys_deletemounts called, session ID: roland-50-1375013942_stDUNITY_dp24 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 Jul 28 14:19:56 Ashton /usr/sbin/x2gocleansessions[3457]: roland-50-1375013942_stDUNITY_dp24 is blocked Jul 28 14:19:56 Ashton /usr/sbin/x2gocleansessions[3457]: roland-50-1375013942_stDUNITY_dp24: unmounting all shares Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]: x2goumount-session has been called with options: roland-50-1375013942_stDUNITY_dp24 Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]: db_getdisplay called, session ID: roland-50-1375013942_stDUNITY_dp24; return value: Jul 28 14:19:57 Ashton /usr/bin/x2goumount-session[5718]: db_getmounts called, session ID: roland-50-1375013942_stDUNITY_dp24; return value:
This problem has been persistent for a long time and I have not been able to find any solution.
I'd really appreciate if anyone would be able to help me find and fix this issue.
thanks again
Roland
On 17/07/2013 11:18, Kjell Otto wrote:
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.
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.
Then open a new Master Session -> KDE or xterm, whatever..
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?
Use the root command again to make sure it's known by the x2goserver. Then start the Shadow Session to the Master Session.
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
X2Go-User mailing list X2Go-User@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-user
On 29/07/2013 08:42, Kjell Otto wrote:
Hi Roland,
sorry to let you down on this, I'm still busy doing other stuff all the time.
No problem! We all have to pay the bills somehow, right? :-)
The error you're getting seems to be related to your X-Server installation. The KDE part of the agent starting is completely normal, it's just about setting your color depth AFAIK.
Sorry about messing arround with Master and Shadow stuff... What I ment was this: When you're starting a GNOME session. You can just close the window when you're leaving the desktop. Then just start the GNOME session again once you want to come back. And you'll see the old one is still running and resumable.
There is another way to connect to an opened session, via the desktopsharing feature of x2go. But that seems unrelated...
It seems that you've messed up a part of your X or X configuration. This is acutally what stops your x2go client from really doing something:
check command message
X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x4004bbc X Error: BadWindow (invalid Window parameter) 3 Major opcode: 15 (X_QueryTree) Resource id: 0x4004bbc
Try to find the problem related to this. It seems that your problem is not about x2go... I consider this good news! Let me see what I can do about this. You're right, the Xserver setup was having trouble at some stage, so I'll go through that in detail to see what's wrong there.
I have had a detailed analysis with Mike Gabriel over on IRC as well, and it also lead to x2go not being able to connect to screen:50 for some reason.
regards
Roland