yoshkur / neatx

Automatically exported from code.google.com/p/neatx
0 stars 0 forks source link

Internal Error have not been able to connect #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install neatx on an LFS install
2. Install a client on a Ubuntu machine
3. Try to connect

What is the expected output? What do you see instead?

The expected output is a working nx session
Instead I get NX> 500 Internal Error

What version of the product are you using? On what operating system?

The server is running on our company's embedded linux system, which is 
built from scratch. And the client is running on Ubuntu 9.10

Everything is up to date with the SVN

Please provide any additional information below.

Here is what I am able to get from the /var/log/user.log

(p.s. logging in as root is not the issue, this happens for any user)

May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 
'HELLO NXSERVER - Version 3.3.0 - GPL\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
105 '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:227 <<< 
'hello NXCLIENT - Version 3.3.0\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 
'Hello nxclient - version 3.3.0\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG nxserver_login:111 Got 
client protocol version 3030000 ('3.3.0'), want 3030000
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
134 Accepted protocol: 3.3.0\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
105 '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:227 <<< 'SET 
SHELL_MODE SHELL\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'Set 
SHELL_MODE: SHELL\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
105 '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:227 <<< 'SET 
AUTH_MODE PASSWORD\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'Set 
AUTH_MODE: PASSWORD\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
105 '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:227 <<< 
'login\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 
'Login\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
101 User: '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:227 <<< 
'root\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 
'root\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
102 Password: '
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:225 <<< 
[hidden]
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 
'**********\n'
May 31 17:05:31 angelini nxserver-login[4455]: INFO nxserver_login:253 
Trying login for user 'root' using auth method 'su'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG auth:50 Authenticating 
as 'root', running ['/usr/lib/neatx/nxserver', '--proto=3030000', '--', 
'root']
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG auth:53 Auth command 
['/usr/lib/neatx/ttysetup', '/bin/su', 'root', '-c', 'cd && 
/usr/lib/neatx/nxserver --proto=3030000 -- root']
May 31 17:05:31 angelini nxserver-login[4455]: ERROR protocol:165 Error 
while handling line 'login'
May 31 17:05:31 angelini nxserver-login[4455]: Traceback (most recent call 
last):
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/neatx/protocol.py", line 161, in 
_HandleLine
May 31 17:05:31 angelini nxserver-login[4455]:     self._handler(line)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/neatx/app/nxserver_login.py", line 76, in 
__call__
May 31 17:05:31 angelini nxserver-login[4455]:     return self._Login(args)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/neatx/app/nxserver_login.py", line 173, 
in _Login
May 31 17:05:31 angelini nxserver-login[4455]:     self._TryLogin(username, 
password)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/neatx/app/nxserver_login.py", line 263, 
in _TryLogin
May 31 17:05:31 angelini nxserver-login[4455]:     
authenticator.AuthenticateAndRun(username, password, args)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/neatx/auth.py", line 71, in 
AuthenticateAndRun
May 31 17:05:31 angelini nxserver-login[4455]:     timeout=30)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/pexpect.py", line 429, in __init__
May 31 17:05:31 angelini nxserver-login[4455]:     self._spawn (command, 
args)
May 31 17:05:31 angelini nxserver-login[4455]:   File 
"/usr/lib/python2.6/site-packages/pexpect.py", line 529, in _spawn
May 31 17:05:31 angelini nxserver-login[4455]:     raise 
ExceptionPexpect('Error! pty.fork() failed: ' + str(e))
May 31 17:05:31 angelini nxserver-login[4455]: ExceptionPexpect: Error! 
pty.fork() failed: out of pty devices
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
500 Internal error\n'
May 31 17:05:31 angelini nxserver-login[4455]: DEBUG protocol:172 >>> 'NX> 
999 Bye.\n'
May 31 17:05:31 angelini nxserver-login-wrapper[4452]: EOF on stderr, 
exiting

Original issue reported on code.google.com by alex.lou...@gmail.com on 31 May 2010 at 9:15

GoogleCodeExporter commented 8 years ago
I'm doing a similiar thing, but client side is ubuntu 9.10 64bit desktop, and 
server is 10.04 x86 desktop with neatx.

NX> 203 NXSSH running with pid: 6212
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: 192.168.1.203 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.3.0 - GPL
NX> 105 Hello nxclient - version 3.3.0
NX> 134 Accepted protocol: 3.3.0
NX> 105 Set SHELL_MODE: SHELL
NX> 105 Set AUTH_MODE: PASSWORD
NX> 105 Login
NX> 101 User: xxxx
NX> 102 Password: **********
NX> 103 Welcome to: compaq user: xxxx
NX> 105 Listsession --user="con" --status="suspended,running" 
--geometry="1920x1200x24+render" --type="unix-gnome"
NX> 127 Session list of user 'xxxx':
Display Type             Session ID                       Options  Depth Screen 
        Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------
45      unix-gnome       M747U25A4E67X1682B9954453G1H4F79 -RD--PSA    24 
1920x1152      Suspended   Compaq

NX> 148 Server capacity: not reached for user: xxxx
NX> 105 Restoresession  --link="adsl" --backingstore="1" --encryption="1" 
--cache="16m" --images="64m" --shmem="1" --shpix="1" --strict="0" 
--composite="1" --media="0" --session="compaq" --type="unix-gnome" 
--geometry="800x600+560+288" --client="linux" --keyboard="pc105/us" 
--id="d747b25a4e67a1682b9954453d1d4f79"
NX> 500 Internal error
NX> 999 Bye.
NX> 280 Exiting on signal: 15

Original comment by kostas.m...@gmail.com on 10 Jun 2010 at 12:09

GoogleCodeExporter commented 8 years ago
I see the same problem.  Ubuntu 10.04 x86_64 server with both Ubuntu 10.04 
nxclient and Windows client.  (Implies problem may be with server?)  This log 
is from windows client, but linux output looks similar.

Is there any way of killing the session, so that I can regain graphical access 
to the server?  A reboot doesn't do it.

Thanks,

Chris.

NX> 203 NXSSH running with pid: 2596
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: x.x.x.x on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.3.0 - GPL
NX> 105 Hello nxclient - version 3.3.0
NX> 134 Accepted protocol: 3.3.0
NX> 105 Set SHELL_MODE: SHELL
NX> 105 Set AUTH_MODE: PASSWORD
NX> 105 Login
NX> 101 User: chris
NX> 102 Password: **********
Could not find ':' in DISPLAY: 
NX> 103 Welcome to: grey user: chris
NX> 105 Listsession --user="chris" --status="suspended,running" 
--geometry="1280x1024x32+render+fullscreen" --type="unix-gnome"
NX> 127 Session list of user 'chris':
Display Type             Session ID                       Options  Depth Screen 
        Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------
623     unix-gnome       76B7D24142C3898DE8A6F8C5BD4DED50 FRD--PSA    24 
1280x1024      Running     grey

NX> 148 Server capacity: not reached for user: chris
NX> 105 Restoresession  --link="lan" --backingstore="1" --encryption="1" 
--cache="16m" --images="64m" --shmem="1" --shpix="1" --strict="0" 
--composite="1" --media="0" --session="grey" --type="unix-gnome" 
--geometry="1274x962" --fullscreen="1" --client="winnt" --keyboard="pc102/gb" 
--id="76b7d24142c3898de8a6f8c5bd4ded50" --resize="1"
NX> 500 Internal error
NX> 999 Bye.
NX> 280 Exiting on signal: 15

Original comment by cms...@gmail.com on 23 Jun 2010 at 8:46

GoogleCodeExporter commented 8 years ago
I see the same problem.  Ubuntu 10.04 x86_64 server with NX for Windows client. 
 This log is from windows client:

NX> 203 NXSSH running with pid: 4936
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: 192.168.1.12 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.3.0 - GPL
NX> 105 Hello nxclient - version 3.3.0
NX> 134 Accepted protocol: 3.3.0
NX> 105 Set SHELL_MODE: SHELL
NX> 105 Set AUTH_MODE: PASSWORD
NX> 105 Login
NX> 101 User: pepe
NX> 102 Password: **********
Could not find ':' in DISPLAY: 
NX> 103 Welcome to: perdigon user: pepe
NX> 105 Listsession --user="pepe" --status="suspended,running" 
--geometry="1920x1200x32+render" --type="unix-gnome"
NX> 127 Session list of user 'pepe':
Display Type             Session ID                       Options  Depth Screen 
        Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------
517     unix-gnome       F0E9A556161C051176929C971DE8DB94 -RD--PSA    24 
1024x768       Suspended   Perdigon

NX> 148 Server capacity: not reached for user: pepe
NX> 105 Restoresession  --link="lan" --backingstore="1" --encryption="1" 
--cache="16m" --images="64m" --shmem="1" --shpix="1" --strict="0" 
--composite="1" --media="0" --session="perdigon" --type="unix-gnome" 
--geometry="1280x1024" --client="winnt" --keyboard="pc102/es" 
--id="f0e9a556161c051176929c971de8db94" --resize="1"
NX> 500 Internal error
NX> 999 Bye.
NX> 280 Exiting on signal: 15

Original comment by jmgru...@gmail.com on 18 Jul 2010 at 10:53

GoogleCodeExporter commented 8 years ago
NX> 203 NXSSH running with pid: 2702
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: IP on port: 2222
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
/usr/bin/X11/xauth:  timeout in locking authority file 
/var/lib/nxserver/home//.Xauthority
HELLO NXSERVER - Version 3.3.0 - GPL
NX> 105 Hello nxclient - version 3.3.0
NX> 134 Accepted protocol: 3.3.0
NX> 105 Set SHELL_MODE: SHELL
NX> 105 Set AUTH_MODE: PASSWORD
NX> 105 Login
NX> 101 User: xxxx
NX> 102 Password: **********
X11 connection rejected because of wrong authentication.
NX> 103 Welcome to: hostname user: xxxx
NX> 105 Listsession --user="xxxx" --status="suspended,running" 
--geometry="1280x1024x24+render" --type="unix-gnome"
NX> 500 Internal error
NX> 999 Bye.
NX> 280 Exiting on signal: 15

Original comment by repi...@gmail.com on 8 Oct 2010 at 1:13

GoogleCodeExporter commented 8 years ago
NX> 203 NXSSH running with pid: 5788
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: 10.10.51.68 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.3.0 - GPL
NX> 105 Hello nxclient - version 3.3.0
NX> 134 Accepted protocol: 3.3.0
NX> 105 Set SHELL_MODE: SHELL
NX> 105 Set AUTH_MODE: PASSWORD
NX> 105 Login
NX> 101 User: kal
NX> 102 Password: **********
Could not find ':' in DISPLAY: 
NX> 103 Welcome to: kal-desktop user: kal
NX> 105 Listsession --user="kal" --status="suspended,running" 
--geometry="1920x1200x32+render" --type="unix-gnome"
NX> 127 Session list of user 'kal':
Display Type             Session ID                       Options  Depth Screen 
        Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------
178     unix-gnome       795E9EF524AC98749F3852B72E0F51F0 FRD--PSA    24 
1914x1119      Running     FullDesktop

NX> 148 Server capacity: not reached for user: kal
NX> 105 Restoresession  --link="lan" --backingstore="1" --encryption="1" 
--cache="16m" --images="64m" --shmem="1" --shpix="1" --strict="0" 
--composite="1" --media="0" --session="fulldesktop" --type="unix-gnome" 
--geometry="1914x1119" --client="winnt" --keyboard="pc102/en_us" 
--id="795e9ef524ac98749f3852b72e0f51f0" --resize="1"
NX> 500 Internal error
NX> 999 Bye.
NX> 280 Exiting on signal: 15

Original comment by sparklin...@gmail.com on 23 Dec 2010 at 9:58

GoogleCodeExporter commented 8 years ago
to restart session i'm doing this:
cd /var/lib/neatx/sessions && rm -rf *

then reboot to kill all X app's and after that connecting again.

Original comment by taz.ins...@gmail.com on 10 May 2011 at 2:31

GoogleCodeExporter commented 8 years ago
on Debian/testing, getting the same generic nondescript "500 Internal error" 
when I try to reconnect to a session I've been disconnected from. tried using 
various wm's; openbox, awesome, i don't see a gnome 2.x to try and add in 
debian.

i'm afraid no one on this chain really knows what to do to generate more useful 
debugging information for this ticket. :( the 500 Internal error is so generic. 
:(

Original comment by rektide on 27 Nov 2011 at 3:55