[FreeNX-kNX] FreeNX & NoMachine Player - Connection Issues

chris at ccburton.com chris at ccburton.com
Sat Jan 19 11:57:06 UTC 2013


freenx-knx-bounces at kde.org wrote on 19/01/2013 03:17:26:

> I'm getting sporadic behavior trying to connect NoMachine Player 
> (the replacement for NX Client in the 4.x NoMachine release) with a 
> FreeNX-based server.  First, let me state that getting NX Player 
> working with FreeNX is a must - we need to connect Mac clients to 
> our servers, and, since the only Intel-based version of the NX 
> Client for Mac is NX Player 4.x, going back to the 3.5 client is not
> an option, at least for Mac-based clients.



NoMachine player should of course connect to v3 OK
but
it is a lower priority for nomachine than getting v4 out . . .

so

your best bet is probably to try Fritz (et alii)'s OpenNX client
        for Mac

        
http://sourceforge.net/projects/opennx/files/opennx/CI/OpenNX-0.16.0.724.dmg/download


Note FYI

There is an open "X" font rendering bug between
         OpenSuse 12.2 and the Nomachine Windows client
which
         the OpenNX cliient doesn't have . . . 

so Nomachine aren't worrying too much about Suse


>  So, for those who would 
> suggest using the "known good" versions of NX Client 3.5.x, that's 
> not really feasible in my situation.
> 
> So, here are the software versions I'm using:
> - OpenSuSE 12.1
> - FreeNX 0.7.3, plus a few patches
> - NX 3.5.0
> - NX Player 4.0.181 Preview 6 (currently on Linux)



If you mean to USE OS-X you really should TEST/FIX on OS-X
        else you may have it all to do again . . 



 
> As far as the client goes, I can successfully connect my NX Player 
> client to the NoMachine Virtual Workstation for Linux 4.x preview 
> software, so I'm fairly certain that network issues can be ruled out
> here.  Also, I can successfully connect to FreeNX running on 
> CentOS5, so it actually seems to be some interaction here between 
> FreeNX and something in OpenSuSE.  Hopefully someone can point out 


Do you have FreeNX AND Nomachine V4 on the same Suse machine ??

Do you have connections to both at the same time ???

Is thete any overlap of resorces . . .


> what, or at least help me better nail it down.  Here's what I'm seeing:
> 
> - Connections fail *most* of the time - maybe 1 connection in 10 
> works perfectly fine, but the rest fail with the exact same error.
> - It does not matter what Window Manager I try to use - KDE4, XFCE4,
> GNOME - all seem to fail equally well.
> - This is not trying to resume an existing session, just create a new 
one.
> - I've tried local users and network users on my systems, and that 
> doesn't really seem to make a difference, either, so not a home 
> directory, LDAP, or NFS issue.
> - I see the following message on the screen on NXPlayer when I try 
> to create a new, GNOME, for example, session:
> The connection with the server was lost.
> Error is 22: Invalid argument.
> 
> - If I choose the option to save the logs and then go look at the 
> session logs, I see the following:
> 28343 5201 19:57:45 290.914 ProxyParser/ProxyParser: ERROR! Invalid 
> protocol string 'bye
> NXPROXY-1.5.0-3.5.0' in remote options.
> Error: Invalid protocol string 'bye
> NXPROXY-1.5.0-3.5.0' in remote options.
[SNIP]
> 28343 5201 19:57:45 291.001 ProxySession/Threadable: Restoring 
> context from threadable 0xb4e28c60.
> 28343 5201 19:57:45 291.064 Entropy:       FM T 0 
> Session: Session terminated at 'Fri Jan 18 19:57:45 2013'.
> 28343 5201 19:57:45 291.234 ClientTransResetCallback: WARNING! The 
> NX transport terminated with error '22' 'Invalid argument'.
> 28343 5201 19:57:45 291.250 Dispatcher: ERROR! Bad pointer '0' in 
> method 'Dispatcher::removeObject()' context [A].


Something went wrong . . .

( after it got a "bye" from FreeNX as a "remote option" (so it thought) 
                and the ssh session stopped  )


Strange that it would work at all unless . . .  see a bit later  . . .


> Error: Bad pointer '0' in method 'Dispatcher::removeObject()' context 
[A].
> 28343 28343 19:57:45 329.305 ClientSession: Exiting from the client 
> transport loop.
> 28343 28343 19:57:45 329.362 ClientSession: The transport closed 
> with reset '1' error '22'.
> 28343 28343 19:57:45 329.395 ClientSession: Session at 0x82cff28 failed.
> 28343 28343 19:57:45 329.413 ClientSession: Failing reason is 'The 
> connection with the server was lost.
> 
> Error is 22: Invalid argument.'.
> 
> - If I look at the logs on the server (with logging turned up a bit), I 
see:
> bye
> Bye
> NX> 999 Bye
> Info: Closing connection to slave with pid 27540.
> nxnode_reader: 1001 Bye.
> 1001 Bye.
> nxnode_reader: NX> 1004 Error: NX Agent exited with exit status 1. 
> To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate
> "/home/nxtest/.nx/F-C-
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session". You might 
> also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test 
> the basic functionality. Session log follows:
> NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot 
> set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/nxtest/.
> nx/F-C-se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session". You
> might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to 
> test the basic functionality. Session log follows:
> nxnode_reader: NX> 1006 Session status: closed
> NX> 1006 Session status: closed
> server_nxnode_echo: NX> 596 Session startup failed.
> NX> 596 Session startup failed.
> server_nxnode_echo: NX> 1004 Error: NX Agent exited with exit status
> 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and 
> investigate "/home/nxtest/.nx/F-C-
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/session". You might 
> also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test 
> the basic functionality. Session log follows:
> session_close 7CE6ABAB93B40AE2CB8303E679FBE39C
> server_nxnode_echo: NX> 1006 Session status: closed
> nxnode_reader: NX> 1001 Bye.
> NX> 1001 Bye.
> server_nxnode_echo: NX> 1001 Bye.
> Info: Closing connection to slave with pid 27540.
> 
> - Finally, if I look at the user-specific logs mentioned, I see:
> Error: The remote NX proxy closed the connection.
> Error: Failure negotiating the session in stage '10'.
> Error: Aborting session with 'Unable to open display 'nx/nx,
> options=/home/nxtest/.nx/C-
> se003945-11000-7CE6ABAB93B40AE2CB8303E679FBE39C/options:11000''.
> Session: Aborting session at 'Fri Jan 18 19:57:45 2013'.
> Session: Session aborted at 'Fri Jan 18 19:57:45 2013'.
> xrdb: Connection refused
> xrdb: Can't open display ':11000'
> /usr/bin/startxfce4: X server already running on display :11000

already running . . . XAuth issue probably


Update the FreeNX server

                #DISPLAY_BASE=1000  ( or whatever. if it's # ed out, the 
value is set by nxloadconfig )
                DISPLAY_BASE=(your value)

parameterin /etc/nxserver/node.conf

and try a value other than 11000 or 1000





> xrdb: Connection refused
> xrdb: Can't open display ':11000'
> xscreensaver: 19:57:45: Can't open display: :11000
> xscreensaver: 19:57:45: running as nxtest/users (120/100)
> 
> xscreensaver: 19:57:45: Errors at startup are usually authorization 
problems.
>               But you're not logging in as root (good!) so something
>               else must be wrong.  Did you read the manual and the FAQ?
> 
>               http://www.jwz.org/xscreensaver/faq.html
>               http://www.jwz.org/xscreensaver/man.html
> 
> 
> ** ERROR **: Cannot open display: 
> /etc/xdg/xfce4/xinitrc: line 159: 28167 Trace/breakpoint trap 
xfce4-session
> 
> 
> So, can anyone shed any light on what's going on here??  First, it 
> seems like the server and client are both pointing the finger at 
> each other saying it's the other's fault.  But then there's this 
> error about Unable to open display??  I should also note that I have
> tried and successfully been able to do the "ssh -X <hostname> 
> nxagent" test - works fine, once it's running I can open up items 
> inside that display, etc.  Also, on NXPlayer, if I do a custom 
> session and specify xterm as the command to run, that seems to work 
> every time.  So, perhaps it's a timing thing - the window manager 

It might be timing i.e nxagent hasn't had time to start
         rather than it can't because :11000 is in use

Test . . .
If you try a number of connections one after the other
        does it fail to connect a few times
        then connect eventually
        and keep connecting if you disconnect/re-cconect
        a few times ??


> trying to start before X is available, or maybe X is timing out too 
> fast before the window manager can start?  Also, what happens in 
> "Stage '10'"?  This is a fairly consistent error - failure 
> negotiating the session in stage '10' - but I cannot find any 
> reference to this error around, nor can I figure out what stage 10 
> is supposed to be.
> 
> Thanks, in advance,
> Nick


Let us know how you get on . . .



London is snowed in ( well 2" ) this weekend, so I'm working a saturday . 
. .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130119/d514f140/attachment.html>


More information about the FreeNX-kNX mailing list