Problems getting OOOB nxserver working on SL BE x86 [Solved]

Discussions Regarding Software

Moderator: Moderators

Problems getting OOOB nxserver working on SL BE x86 [Solved]

Postby rikd » Thu Aug 02, 2007 0:08

Am trying to get the NXServer working on the Business Edition.
I'm pretty knew to NX, having mostly used VNC, but would like to give it a go.

Problem is in trying to get my NXClient (Windows) to connect to the server. It always appears to fail at user authenticating user "nx"

Performing an authcheck on user "nx" gives:
Code: Select all
apollo etc # ../bin/nxserver --userauth nx                                                                           
NX> 139 NX user DB is: off NX password DB is: off.
NX> 139 Authentication for user: nx is: system.
NX> 999 Bye.


I tired adding myself and things look pretty bad.
Code: Select all
apollo etc # ../bin/nxserver --useradd rik
NX> 801 User: rik uses SSHD authentication.
NX> 900 Adding public key for user: rik to the authorized keys file.
NXSERVER - Version 2.1.0-13 - LFE
Thu Aug  2 00:15:39 2007 running as user: 'root' (uid: 0, pid: 4567) on 'apollo'
Info: selected user 'rik' is authenticated (NXNodeExec)
Info: password for selected user is in 'unknown' mode (NXNodeExec)
Info: preferred auth method is '' (NXNodeExec)
Info: selected NX Node with host name '127.0.0.1', port '22' (NXNodeExec)
Info: selected su to access NX Node (NXNodeExec)
Info: nxssh command line is 'su rik -c /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 4569 (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 612 ERROR: No valid subscription found. Please visit the
NX> 612 ERROR: NoMachine Web site at http://www.nomachine.com/
NX> 612 ERROR: to acquire a valid subscription.
NX> 612 ERROR: The NX node can't perform the requested operation.
' (NXNodeExec)
Info: NX Node err channel was closed (NXNodeExec)
Info: NX Node out channel was closed (NXNodeExec)
Info: Removing not recognized buffer from stdout:[] (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 0) (NXNodeExec)
Error: no 'CONNECTED' message from NX Node (NXNodeExec)
NX> 595 ERROR: A fatal error occurred in NX Server.
NX> 595 ERROR: The exception id is: 7FB7AC94. To get detailed information about
NX> 595 ERROR: the error search for the string 7FB7AC94 in the system log
NX> 595 ERROR: file (usually '/var/log/messages').
NX> 500 ERROR: Last operation failed.


as mentioned in title - this is the out of the box configuration - I've done nothing to change config files, etc.

Any help in getting this operational would be greatly appreciated
Last edited by rikd on Sat Aug 04, 2007 16:51, edited 1 time in total.
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland

Postby Dark_MaGe » Thu Aug 02, 2007 10:26

you just need to active sshd deamon, then nxserver is configured to work with a system authorization, so you just need to login with the client that and it would take care of everything
Image
Dark_MaGe
Your Farmer
 
Posts: 1699
Joined: Thu Jun 29, 2006 8:19
Location: Catania Italy

Postby rikd » Thu Aug 02, 2007 20:53

sshd daemon is active (was out of the box) and working
I can ssh in from machine, but not nxserver...

Seems to be having a problem with the nx user, not my user -

this is the error from the client when just trying to connect on the local host.
Code: Select all
NX> 203 NXSSH running with pid: 12889
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 127.0.0.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland

Postby rikd » Thu Aug 02, 2007 21:22

Still not working yet, but some Progress...

changing ownership of /usr/NX/home/nx to the nx user got me over the authentication problem
Then I had permissions problems in /usr/NX/etc/ and /usr/NX/var so did
chown -R nx /usr/NX

This gets me very close, but still can't get fully there.
/var/log/messages contains:
Code: Select all
Aug  2 21:31:26 apollo sshd[14512]: Accepted publickey for nx from 192.168.1.13 port 43227 ssh2
Aug  2 21:31:26 apollo sshd[14514]: pam_unix(sshd:session): session opened for user nx by (uid=0)
Aug  2 21:31:27 apollo sshd[14521]: Accepted keyboard-interactive/pam for rik from 127.0.0.1 port 45764 ssh2
Aug  2 21:31:27 apollo 2.1.0-13[14515]: User 'rik' logged in from '192.168.1.13'. 'NXLogin::set'
Aug  2 21:31:27 apollo sshd[14524]: pam_unix(sshd:session): session opened for user rik by (uid=0)
Aug  2 21:31:27 apollo sshd[14524]: pam_unix(sshd:session): session closed for user rik
Aug  2 21:31:30 apollo 2.1.0-13[14515]: Selected node host:localhost with port:22 'main::selectNode'
Aug  2 21:31:30 apollo 2.1.0-13[14515]: Current selected node: localhost is in status: running  'main::selectNode'
Aug  2 21:31:33 apollo 2.1.0-13[14515]: ERROR: nxssh process exited with '255' 'NXNodeExec::exec'
Aug  2 21:31:33 apollo sshd[14531]: Accepted keyboard-interactive/pam for rik from 127.0.0.1 port 45766 ssh2
Aug  2 21:31:33 apollo sshd[14534]: pam_unix(sshd:session): session opened for user rik by (uid=0)
Aug  2 21:31:33 apollo sshd[14534]: pam_unix(sshd:session): session closed for user rik
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: nxssh process exited with '1' 'NXNodeExec::exec'
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) Error: no 'CONNECTED' message from NX Node
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) NXNodeExec::exec('startsession', 'user=rik&userip=192%2e168%2e1%2e13&uniqueid=E556342FA58786F8F96E...', 'localhost', 22) called at handlers/nxserver.pl line 2857
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) NXShell::handler_session_start('--link="lan" --backingstore="1" --streaming="1" --nodelay="1" --...') called at NXShell.pm line 374
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) NXShell::handle_command('startsession', '--link="lan" --backingstore="1" --streaming="1" --nodelay="1" --...') called at NXShell.pm line 145
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) NXShell::run() called at nxserver.pl line 4519
Aug  2 21:31:35 apollo 2.1.0-13[14515]: ERROR: (exception id A077BC90) eval {...} called at nxserver.pl line 4478
Aug  2 21:31:36 apollo sshd[14514]: pam_unix(sshd:session): session closed for user nx
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland

Postby rikd » Sat Aug 04, 2007 13:34

Narrowed things down to nxssh
this is the command line failing

Code: Select all
./nxssh -nxservermode -l rik localhost -p 22 -x -2 -i ../etc/keys/node.localhost.id_dsa


If I remove the -nxservermode it seems to create a valid ssh session (asks me for the password), etc. But with -nxservermode it just simply gives me:
Code: Select all
NX> 204 Authentication failed.


googling hasn't turned up much yet :(
Just have to keep looking...
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland

[SOLVED] nxserver on SL BE x86_64

Postby rikd » Sat Aug 04, 2007 16:48

After much playing around I managed to get it to a point where nxnode was giving out about an invalid license, despite one being available in the /usr/NX/etc dir.

Much googling turned up many comments about un-merging and emerging again.
So I did - but this time with the 3.0.0-r2 version.

And it works :)

Not sure what's up with the installed version - it just proved too difficult in the end.
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland

Postby goodnewz » Thu Aug 09, 2007 9:06

I seem to have the same problem. it all gets ruined with "nx server has refused the connection". Any ideas ? btw I have unmerge and remerged nxclient, nxnode, nxserver-freeedition but no luck

NX> 148 Server capacity: not reached for user: thoth
NX> 105 Start session with: --link="lan" --backingstore="1" --streaming="1" --nodelay="1" --cache="8M" --images="32M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="vlad" --type="unix-kde" --geometry="1024x737" --client="linux" --keyboard="pc105\057us" --screeninfo="1024x737x24+render"
NXSERVER - Version 2.1.0-22 - LFE
Thu Aug 9 10:59:04 2007 running as user: 'nx' (uid: 1002, pid: 9770) on 'DTS'
Info: user login is thoth (NXShell)
Info: user password is '******' (NXShell)
Info: using 'sshd authentication' (NXShell)
Info: selected user 'thoth' is authenticated (NXNodeExec)
Info: password for selected user is in 'text' mode (NXNodeExec)
Info: preferred auth method is '' (NXNodeExec)
Info: selected NX Node with host name 'localhost', port '22' (NXNodeExec)
Info: selected publickey method to login NX Node (NXNodeExec)
Info: nxssh command line is '/usr/NX/bin/nxssh -nxservermode -l thoth localhost -p 22 -x -2 -i /usr/NX/etc/keys/node.localhost.id_dsa -o 'PubkeyAuthentication yes' -o 'RSAAuthentication yes' -o 'RhostsAuthentication no' -o 'PasswordAuthentication no' -o 'RhostsRSAAuthentication no' -o 'StrictHostKeyChecking no' /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 9785 (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 204 Authentication failed.
' (NXNodeExec)
Error: received message 'Authentication Failure' from nxssh (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 1) (NXNodeExec)
Error: failed to authenticate on NX Node (NXNodeExec)
Info: trying next authentication method. (NXNodeExec)
Info: selected NX Node with host name 'localhost', port '22' (NXNodeExec)
Info: selected password method to login NX Node (NXNodeExec)
Info: now retrying to authenticate with 'password' on NX Node (NXNodeExec)
Info: nxssh command line is '/usr/NX/bin/nxssh -nxservermode -l thoth localhost -p 22 -x -2 -o 'PasswordAuthentication yes' -o 'PubkeyAuthentication no' -o 'RhostsAuthentication no' -o 'RSAAuthentication no' -o 'RhostsRSAAuthentication no' -o 'StrictHostKeyChecking no' /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 9791 (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 205 Password: ' (NXNodeExec)
Info: received request for password from nxssh, user password sent (NXNodeExec)
Info: received data in out channel from NX Node: '
' (NXNodeExec)
Info: Removing not recognized buffer from stdout:[
] (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 612 ERROR: No valid subscription found. Please visit the
NX> 612 ERROR: NoMachine Web site at http://www.nomachine.com/
NX> 612 ERROR: to acquire a valid subscription.
NX> 612 ERROR: The NX node can't perform the requested operation.
' (NXNodeExec)
Info: NX Node out channel was closed (NXNodeExec)
Info: Removing not recognized buffer from stdout:[] (NXNodeExec)
Info: NX Node err channel was closed (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 0) (NXNodeExec)
Error: no 'CONNECTED' message from NX Node (NXNodeExec)
Killed by signal 15.

User avatar
goodnewz
Young Hen
 
Posts: 28
Joined: Tue May 01, 2007 22:14

Postby rikd » Thu Aug 09, 2007 22:40

Looks like something going wrong in nxnode
what's in /var/log/messages on the server?

did you add the user to nxnode? i.e.
# /usr/NX/bin/nxnode --useradd thoth

Also, after emergeing again I first did an rm of .ssh and .nx in my homedir (~thoth in your case) on the server, just on case something was amiss...
rikd
Simple Hen
 
Posts: 47
Joined: Mon Mar 19, 2007 22:56
Location: Limerick, Ireland


Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest