mdjurfeldt / neatx

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

nxserver-login-wrapper EOF on stderr #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.

Try to connect after rebooting with a suspended session

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

I get internal error instead of connecting. (log below)

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

Ubuntu 9.04 i386 (neatx svn)

Please provide any additional information below.

Here is my user.log:-

-------------------------------------------------------
root@defenbuntu:~# cat /var/log/user.log               
Oct 30 15:24:25 defenbuntu nxserver-login-wrapper[2912]: Started
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'HELLO NXSERVER - Version 3.3.0 - GPL\n'
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 105 '                              
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:227 <<<
'hello NXCLIENT - Version 3.3.0\n'      
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'Hello nxclient - version 3.3.0\n'      
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG nxserver_login:111
Got client protocol version 3030000 ('3.3.0'), want 3030000
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 134 Accepted protocol: 3.3.0\n'                         
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 105 '                                                   
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:227 <<<
'SET SHELL_MODE SHELL\n'                                     
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'Set SHELL_MODE: SHELL\n'                                    
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 105 '                                                   
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:227 <<<
'SET AUTH_MODE PASSWORD\n'                                   
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'Set AUTH_MODE: PASSWORD\n'                                  
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 105 '                                                   
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:227 <<<
'login\n'                                                    
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'Login\n'                                                    
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 101 User: '                                             
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:227 <<<
'morgan\n'                                                   
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'\n'                                                         
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'NX> 102 Password: '                                         
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:225 <<<
[hidden]                                                     
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG protocol:172 >>>
'**********\n'                                               
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: INFO nxserver_login:249
Trying login for user 'morgan' using auth method 'su'       
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG auth:50
Authenticating as 'morgan', running ['/usr/local/lib/neatx/nxserver',
'--proto=3030000', '--', 'morgan']
Oct 30 15:24:25 defenbuntu nxserver-login[2916]: DEBUG auth:53 Auth command
['/usr/local/lib/neatx/ttysetup', '/bin/su', 'morgan', '-c', 'cd &&
/usr/local/lib/neatx/nxserver --proto=3030000 -- morgan']                 

Oct 30 15:24:27 defenbuntu nxserver[2930]: INFO nxserver:689 Starting
nxserver for user morgan                                                  

Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 103
Welcome to: defenbuntu.local user: morgan\n'                              

Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 105 '
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:227 <<< '
listsession --user="morgan" --status="suspended,running"
--geometry="1600x1200x24+render" --type="unix-gnome"\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>>
'Listsession --user="morgan" --status="suspended,running"
--geometry="1600x1200x24+render" --type="unix-gnome"\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG nxserver:315 Looking for
sessions with types=['unix-gnome'], state=['suspended', 'running']
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG session:248 Loading
session 95B6E3A0C222A223919FE5D5A81D942E from
/usr/local/var/lib/neatx/sessions/95B6E3A0C222A223919FE5D5A81D942E/neatx.data
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG session:248 Loading
session C8A5CC28EC7420DAA0C129DE6AECF682 from
/usr/local/var/lib/neatx/sessions/C8A5CC28EC7420DAA0C129DE6AECF682/neatx.data
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> "NX> 127
Session list of user 'morgan':\n"
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'Display
Type             Session ID                       Options  Depth Screen   
     Status      Session Name\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> '-------
---------------- -------------------------------- -------- -----
-------------- ----------- ------------------------------\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> u'44    
 unix-gnome       95B6E3A0C222A223919FE5D5A81D942E -RD--PSA    24 1600x1150
     Suspended   ADSL\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> '\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 148
Server capacity: not reached for user: morgan\n'
Oct 30 15:24:27 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 105 '
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG protocol:227 <<<
'restoresession  --link="adsl" --backingstore="1" --encryption="1"
--cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0"
--composite="1" --media="0" --session="ADSL" --type="unix-gnome"
--geometry="1600x1172" --client="linux" --keyboard="pc102/gb"
--id="95B6E3A0C222A223919FE5D5A81D942E"\n'
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG protocol:172 >>>
'Restoresession  --link="adsl" --backingstore="1" --encryption="1"
--cache="16m" --images="64m" --shmem="1" --shpix="1" --strict="0"
--composite="1" --media="0" --session="adsl" --type="unix-gnome"
--geometry="1600x1172" --client="linux" --keyboard="pc102/gb"
--id="95b6e3a0c222a223919fe5d5a81d942e"\n'
Oct 30 15:24:28 defenbuntu nxserver[2930]: INFO nxserver:515 Restoring
session '95B6E3A0C222A223919FE5D5A81D942E'
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG session:248 Loading
session 95B6E3A0C222A223919FE5D5A81D942E from
/usr/local/var/lib/neatx/sessions/95B6E3A0C222A223919FE5D5A81D942E/neatx.data
Oct 30 15:24:28 defenbuntu nxserver[2930]: INFO nxserver:524 Found session
u'95B6E3A0C222A223919FE5D5A81D942E' in session database
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG nxserver:645 Connecting to
nxnode
Oct 30 15:24:28 defenbuntu nxserver[2930]: INFO node:514 Connecting to
u'/usr/local/var/lib/neatx/sessions/95B6E3A0C222A223919FE5D5A81D942E/nxnode.sock
'
Oct 30 15:24:28 defenbuntu nxserver[2930]: ERROR protocol:165 Error while
handling line 'restoresession  --link="adsl" --backingstore="1"
--encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1"
--strict="0" --composite="1" --media="0" --session="ADSL"
--type="unix-gnome" --geometry="1600x1172" --client="linux"
--keyboard="pc102/gb" --id="95B6E3A0C222A223919FE5D5A81D942E"'
Oct 30 15:24:28 defenbuntu nxserver[2930]: Traceback (most recent call last):
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/protocol.py", line 161, in
_HandleLine
Oct 30 15:24:28 defenbuntu nxserver[2930]:     self._handler(line)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/app/nxserver.py", line 209,
in __call__
Oct 30 15:24:28 defenbuntu nxserver[2930]:     return
self._RestoreSession(args)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/app/nxserver.py", line 527,
in _RestoreSession
Oct 30 15:24:28 defenbuntu nxserver[2930]:     nodeclient =
self._GetNodeClient(sessid, False)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/app/nxserver.py", line 646,
in _GetNodeClient
Oct 30 15:24:28 defenbuntu nxserver[2930]:     nodeclient.Connect(retry)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/node.py", line 528, in Connect
Oct 30 15:24:28 defenbuntu nxserver[2930]:     self._InnerConnect(sock, False)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/node.py", line 493, in
_InnerConnect
Oct 30 15:24:28 defenbuntu nxserver[2930]:     sock.connect(self._address)
Oct 30 15:24:28 defenbuntu nxserver[2930]:   File "<string>", line 1, in
connect
Oct 30 15:24:28 defenbuntu nxserver[2930]: error: [Errno 111] Connection
refused
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 500
Internal error\n'
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG protocol:172 >>> 'NX> 999
Bye.\n'
Oct 30 15:24:28 defenbuntu nxserver[2930]: DEBUG nxserver:701 No nxagent
port, not starting netcat
Oct 30 15:24:29 defenbuntu nxserver-login[2916]: DEBUG auth:133 fdcopy
exited (exitstatus=0, signum=None)
Oct 30 15:24:29 defenbuntu nxserver-login[2916]: INFO auth:142 Waiting for
authenticated program to finish
Oct 30 15:24:29 defenbuntu nxserver-login[2916]: DEBUG auth:152
Authenticated program finished (exitstatus=0, signalstatus=None)
Oct 30 15:24:29 defenbuntu nxserver-login-wrapper[2912]: EOF on stderr, exiting

Original issue reported on code.google.com by morganco...@gmail.com on 30 Oct 2009 at 3:27

GoogleCodeExporter commented 8 years ago
Basically, this is issue #23 / issue #21. If the server reboots, the session is 
gone,
so there's no way of reconnecting. However, we don't currently cleanup the 
session
metadata, so neatx isn't aware the session is dead.

The fix for now is to remove the session directory manually (it'll be in 
somewhere
like /usr/local/var/lib/neatx/sessions/<sessionid>)

Original comment by kormat on 1 Dec 2009 at 8:40

GoogleCodeExporter commented 8 years ago
I have just installed this from ppa:freenx-team for Ubuntu (lucid) and have this
issue also. I think this is a high priority issue. This can be replicated by 
logging
in via an nx client, opening a terminal and shutting down the host. On reboot 
the
server cannot be connected as per this issue.

thanks.

Original comment by nicho...@gmail.com on 3 Jun 2010 at 11:17