<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 19/01/2013 03:17:26:<br>
<br>
> I'm getting sporadic behavior trying to connect NoMachine Player <br>
> (the replacement for NX Client in the 4.x NoMachine release) with
a <br>
> FreeNX-based server. First, let me state that getting NX Player
<br>
> working with FreeNX is a must - we need to connect Mac clients to
<br>
> our servers, and, since the only Intel-based version of the NX <br>
> Client for Mac is NX Player 4.x, going back to the 3.5 client is not<br>
> an option, at least for Mac-based clients.</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>NoMachine player should of course connect to v3 OK</font></tt>
<br><tt><font size=2>but</font></tt>
<br><tt><font size=2>it is a lower priority for nomachine than getting
v4 out . . .</font></tt>
<br>
<br><tt><font size=2>so</font></tt>
<br>
<br><tt><font size=2>your best bet is probably to try Fritz (et alii)'s
OpenNX client</font></tt>
<br><tt><font size=2> for Mac</font></tt>
<br>
<br><tt><font size=2> </font></tt><a href="http://sourceforge.net/projects/opennx/files/opennx/CI/OpenNX-0.16.0.724.dmg/download"><tt><font size=2>http://sourceforge.net/projects/opennx/files/opennx/CI/OpenNX-0.16.0.724.dmg/download</font></tt></a>
<br>
<br>
<br><tt><font size=2>Note FYI</font></tt>
<br>
<br><tt><font size=2>There is an open "X" font rendering bug
between</font></tt>
<br><tt><font size=2> OpenSuse
12.2 and the Nomachine Windows client</font></tt>
<br><tt><font size=2>which</font></tt>
<br><tt><font size=2> the OpenNX
cliient doesn't have . . . </font></tt>
<br>
<br><tt><font size=2>so Nomachine aren't worrying too much about Suse</font></tt>
<br>
<br>
<br><tt><font size=2>> So, for those who would <br>
> suggest using the "known good" versions of NX Client 3.5.x,
that's <br>
> not really feasible in my situation.<br>
> <br>
> So, here are the software versions I'm using:<br>
> - OpenSuSE 12.1<br>
> - FreeNX 0.7.3, plus a few patches<br>
> - NX 3.5.0<br>
> - NX Player 4.0.181 Preview 6 (currently on Linux)<br>
</font></tt>
<br>
<br>
<br><tt><font size=2>If you mean to USE OS-X you really should TEST/FIX
on OS-X</font></tt>
<br><tt><font size=2> else you may have
it all to do again . . </font></tt>
<br>
<br>
<br>
<br><tt><font size=2> <br>
> As far as the client goes, I can successfully connect my NX Player
<br>
> client to the NoMachine Virtual Workstation for Linux 4.x preview
<br>
> software, so I'm fairly certain that network issues can be ruled out<br>
> here. Also, I can successfully connect to FreeNX running on
<br>
> CentOS5, so it actually seems to be some interaction here between
<br>
> FreeNX and something in OpenSuSE. Hopefully someone can point
out <br>
</font></tt>
<br>
<br><tt><font size=2>Do you have FreeNX AND Nomachine V4 on the same Suse
machine ??</font></tt>
<br>
<br><tt><font size=2>Do you have connections to both at the same time ???</font></tt>
<br>
<br><tt><font size=2>Is thete any overlap of resorces . . .</font></tt>
<br>
<br>
<br><tt><font size=2>> what, or at least help me better nail it down.
Here's what I'm seeing:<br>
> <br>
> - Connections fail *most* of the time - maybe 1 connection in 10 <br>
> works perfectly fine, but the rest fail with the exact same error.<br>
> - It does not matter what Window Manager I try to use - KDE4, XFCE4,<br>
> GNOME - all seem to fail equally well.<br>
> - This is not trying to resume an existing session, just create a
new one.<br>
> - I've tried local users and network users on my systems, and that
<br>
> doesn't really seem to make a difference, either, so not a home <br>
> directory, LDAP, or NFS issue.<br>
> - I see the following message on the screen on NXPlayer when I try
<br>
> to create a new, GNOME, for example, session:<br>
> The connection with the server was lost.<br>
> Error is 22: Invalid argument.<br>
> <br>
> - If I choose the option to save the logs and then go look at the
<br>
> session logs, I see the following:<br>
> 28343 5201 19:57:45 290.914 ProxyParser/ProxyParser: ERROR! Invalid
<br>
> protocol string 'bye<br>
> NXPROXY-1.5.0-3.5.0' in remote options.<br>
> Error: Invalid protocol string 'bye<br>
> NXPROXY-1.5.0-3.5.0' in remote options.<br>
[SNIP]</font></tt>
<br><tt><font size=2>> 28343 5201 19:57:45 291.001 ProxySession/Threadable:
Restoring <br>
> context from threadable 0xb4e28c60.<br>
> 28343 5201 19:57:45 291.064 Entropy: FM T 0
<br>
> Session: Session terminated at 'Fri Jan 18 19:57:45 2013'.<br>
> 28343 5201 19:57:45 291.234 ClientTransResetCallback: WARNING! The
<br>
> NX transport terminated with error '22' 'Invalid argument'.<br>
> 28343 5201 19:57:45 291.250 Dispatcher: ERROR! Bad pointer '0' in
<br>
> method 'Dispatcher::removeObject()' context [A].</font></tt>
<br>
<br>
<br><tt><font size=2>Something went wrong . . .</font></tt>
<br>
<br><tt><font size=2>( after it got a "bye" from FreeNX as a
"remote option" (so it thought) </font></tt>
<br><tt><font size=2>
and the ssh session stopped )</font></tt>
<br>
<br>
<br><tt><font size=2>Strange that it would work at all unless . . . see
a bit later . . .</font></tt>
<br>
<br><tt><font size=2><br>
> Error: Bad pointer '0' in method 'Dispatcher::removeObject()' context
[A].<br>
> 28343 28343 19:57:45 329.305 ClientSession: Exiting from the client
<br>
> transport loop.<br>
> 28343 28343 19:57:45 329.362 ClientSession: The transport closed <br>
> with reset '1' error '22'.<br>
> 28343 28343 19:57:45 329.395 ClientSession: Session at 0x82cff28 failed.<br>
> 28343 28343 19:57:45 329.413 ClientSession: Failing reason is 'The
<br>
> connection with the server was lost.<br>
> <br>
> Error is 22: Invalid argument.'.<br>
> <br>
> - If I look at the logs on the server (with logging turned up a bit),
I see:<br>
> bye<br>
> Bye<br>
> NX> 999 Bye<br>
> Info: Closing connection to slave with pid 27540.<br>
> nxnode_reader: 1001 Bye.<br>
> 1001 Bye.<br>
> nxnode_reader: NX> 1004 Error: NX Agent exited with exit status
1. <br>
> To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate<br>
> "/home/nxtest/.nx/F-C-<br>
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session". You
might <br>
> also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test
<br>
> the basic functionality. Session log follows:<br>
> NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot
<br>
> set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/nxtest/.<br>
> nx/F-C-se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session".
You<br>
> might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to
<br>
> test the basic functionality. Session log follows:<br>
> nxnode_reader: NX> 1006 Session status: closed<br>
> NX> 1006 Session status: closed<br>
> server_nxnode_echo: NX> 596 Session startup failed.<br>
> NX> 596 Session startup failed.<br>
> server_nxnode_echo: NX> 1004 Error: NX Agent exited with exit status<br>
> 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and <br>
> investigate "/home/nxtest/.nx/F-C-<br>
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session". You
might <br>
> also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test
<br>
> the basic functionality. Session log follows:<br>
> session_close 7CE6ABAB93B40AE2CB8303E679FBE39C<br>
> server_nxnode_echo: NX> 1006 Session status: closed<br>
> nxnode_reader: NX> 1001 Bye.<br>
> NX> 1001 Bye.<br>
> server_nxnode_echo: NX> 1001 Bye.<br>
> Info: Closing connection to slave with pid 27540.<br>
> <br>
> - Finally, if I look at the user-specific logs mentioned, I see:<br>
> Error: The remote NX proxy closed the connection.<br>
> Error: Failure negotiating the session in stage '10'.<br>
> Error: Aborting session with 'Unable to open display 'nx/nx,<br>
> options=/home/nxtest/.nx/C-<br>
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/options:11000''.<br>
> Session: Aborting session at 'Fri Jan 18 19:57:45 2013'.<br>
> Session: Session aborted at 'Fri Jan 18 19:57:45 2013'.<br>
> xrdb: Connection refused<br>
> xrdb: Can't open display ':11000'<br>
> /usr/bin/startxfce4: X server already running on display :11000<br>
</font></tt>
<br><tt><font size=2>already running . . . XAuth issue probably</font></tt>
<br>
<br>
<br><tt><font size=2>Update the FreeNX server</font></tt>
<br>
<br><tt><font size=2>
#DISPLAY_BASE=1000 ( or whatever. if it's #
ed out, the value is set by nxloadconfig )</font></tt>
<br><tt><font size=2>
DISPLAY_BASE=(your value)</font></tt>
<br>
<br><tt><font size=2>parameterin /etc/nxserver/node.conf</font></tt>
<br>
<br><tt><font size=2>and try a value other than 11000 or 1000</font></tt>
<br>
<br>
<br>
<br>
<br>
<br><tt><font size=2>> xrdb: Connection refused<br>
> xrdb: Can't open display ':11000'<br>
> xscreensaver: 19:57:45: Can't open display: :11000<br>
> xscreensaver: 19:57:45: running as nxtest/users (120/100)<br>
> <br>
> xscreensaver: 19:57:45: Errors at startup are usually authorization
problems.<br>
> But you're not logging
in as root (good!) so something<br>
> else must be wrong.
Did you read the manual and the FAQ?<br>
> <br>
> </font></tt><a href=http://www.jwz.org/xscreensaver/faq.html><tt><font size=2>http://www.jwz.org/xscreensaver/faq.html</font></tt></a><tt><font size=2><br>
> </font></tt><a href=http://www.jwz.org/xscreensaver/man.html><tt><font size=2>http://www.jwz.org/xscreensaver/man.html</font></tt></a><tt><font size=2><br>
> <br>
> <br>
> ** ERROR **: Cannot open display: <br>
> /etc/xdg/xfce4/xinitrc: line 159: 28167 Trace/breakpoint trap
xfce4-session<br>
> <br>
> <br>
> So, can anyone shed any light on what's going on here?? First,
it <br>
> seems like the server and client are both pointing the finger at <br>
> each other saying it's the other's fault. But then there's this
<br>
> error about Unable to open display?? I should also note that
I have<br>
> tried and successfully been able to do the "ssh -X <hostname>
<br>
> nxagent" test - works fine, once it's running I can open up items
<br>
> inside that display, etc. Also, on NXPlayer, if I do a custom
<br>
> session and specify xterm as the command to run, that seems to work
<br>
> every time. So, perhaps it's a timing thing - the window manager
<br>
</font></tt>
<br><tt><font size=2>It might be timing i.e nxagent hasn't had time to
start</font></tt>
<br><tt><font size=2> rather than
it can't because :11000 is in use</font></tt>
<br>
<br><tt><font size=2>Test . . .</font></tt>
<br><tt><font size=2>If you try a number of connections one after the other</font></tt>
<br><tt><font size=2> does it fail to
connect a few times</font></tt>
<br><tt><font size=2> then connect eventually</font></tt>
<br><tt><font size=2> and keep connecting
if you disconnect/re-cconect</font></tt>
<br><tt><font size=2> a few times ??</font></tt>
<br>
<br>
<br><tt><font size=2>> trying to start before X is available, or maybe
X is timing out too <br>
> fast before the window manager can start? Also, what happens
in <br>
> "Stage '10'"? This is a fairly consistent error -
failure <br>
> negotiating the session in stage '10' - but I cannot find any <br>
> reference to this error around, nor can I figure out what stage 10
<br>
> is supposed to be.<br>
> <br>
> Thanks, in advance,<br>
> Nick<br>
</font></tt>
<br>
<br><tt><font size=2>Let us know how you get on . . .</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>London is snowed in ( well 2" ) this weekend,
so I'm working a saturday . . .</font></tt>
<br>