lost and found ( for me ? )

Fedora 16 : freenx error : xrdb: Connection refused , can’t open display

After upgrading to a newer kernel and boot that kernel on Fedora 16 64bit , I can’t always connect to Fedora 16 from Windows NX client.

Fedora 16 64bit

freenx-server-0.7.3-23.fc16.x86_64


Windows 7 64bit NX client : 3.5.0-7

NX Client error logs.
NX> 203 NXSSH running with pid: 5888
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.11.150 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: hattori
NX> 102 Password:
NX> 103 Welcome to: fc16.localdomain user: hattori
NX> 105 listsession --user="hattori" --status="suspended,running" --geometry="1280x1024x32+render" --type="unix-gnome"
NX> 127 Sessions list of user 'hattori' for reconnect:

Display Type             Session ID                       Options  Depth Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: hattori
NX> 105 startsession  --link="lan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="Fedora16%20notebook" --type="unix-gnome" --geometry="1024x768" --client="winnt" --keyboard="pc105/us" --screeninfo="1024x768x32+render"

NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 700 Session id: fc16.localdomain-3000-D6D8E6C7FC1E5BE64B128ADD311F7FFD
NX> 705 Session display: 3000
NX> 703 Session type: unix-gnome
NX> 701 Proxy cookie: f9d2c96a45538be6010e66c640e2f1d8
NX> 702 Proxy IP: 192.168.11.150
NX> 706 Agent cookie: f9d2c96a45538be6010e66c640e2f1d8
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 1
NX> 105 /usr/libexec/nx/nxserver: line 1585:  1941 Terminated              sleep $AGENT_STARTUP_TIMEOUT
NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/hattori/.nx/F-C-fc16.localdomain-3000-D6D8E6C7FC1E5BE64B128ADD311F7FFD/session". You might also want to try: ssh -X myserver; /usr/libexec/nx/nxnode --agent to test the basic functionality. Session log follows:
Can't open /var/lib/nxserver/db/running/sessionId{D6D8E6C7FC1E5BE64B128ADD311F7FFD}: No such file or directory.
NX> 1006 Session status: closed
NX> 1001 Bye.
mv: cannot stat `/var/lib/nxserver/db/running/sessionId{D6D8E6C7FC1E5BE64B128ADD311F7FFD}': No such file or directory
/usr/libexec/nx/nxserver: line 578: kill: (1615) - No such process
NX> 280 Exiting on signal: 15


edit node.conf to debug
[root@fc16 ~]# egrep -i nx_log /etc/nxserver/node.conf | grep -v ^#
NX_LOG_LEVEL=6
NX_LOGFILE=/var/log/nx/nxserver.log


make nxserver.log file and change an owner of that file to nx.nx ( user.group )
[root@fc16 ~]# touch /var/log/nx/nxserver.log
[root@fc16 ~]# chown nx.nx /var/log/nx/nxserver.log


see logs.
[root@fc16 .nx]# cd /home/hattori/.nx/
[root@fc16 .nx]# ls
F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D  cache-gnome

[root@fc16 .nx]# cd F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D/
[root@fc16 F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D]# ls
authority  options  pids  scripts  session


can’t open display :3000.
[root@fc16 F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D]# cat session
xrdb: Connection refused
xrdb: Can't open display ':3000'

** (gnome-session:3381): WARNING **: ディスプレイをオープンできません:



xrdb: Connection refused …. why ? …
before upgrading to the newer kernel , I could connect to the Fedora w/o problems.
[root@fc16 failed]# cat /var/log/nx/nxserver.log

-- NX SERVER START: -c /usr/libexec/nx/nxserver - ORIG_COMMAND=
-- NX SERVER START:  - ORIG_COMMAND=
Info: Using fds #4 and #3 for communication with nxnode.
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: hattori
NX> 102 Password:
Info: Auth method: ssh hattori@127.0.0.1's password:
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 716 Slave mode started successfully.
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
nxnode_reader: NX> 716 finished
nxnode_reader: NX> 1001 Bye.

NX> 103 Welcome to: fc16.localdomain user: hattori
NX> 105 listsession --user="hattori" --status="suspended,running" --geometry="1280x1024x32+render" --type="unix-gnome"
NX> 127 Sessions list of user 'hattori' for reconnect:

Display Type             Session ID                       Options  Depth Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: hattori
NX> 105 startsession  --link="lan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="Fedora16%20notebook" --type="unix-gnome" --geometry="1024x768" --client="winnt" --keyboard="pc105/us" --screeninfo="1024x768x32+render"

&link=lan&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=Fedora16 notebook&type=unix-gnome&geometry=1024x768&client=winnt&keyboard=pc105/us&screeninfo=1024x768x32+render&clientproto=3.2.0&login_method=SSH&user=hattori&userip=192.168.11.5&uniqueid=8041B6AC6751F47AD9EF47BC2DA52E8D&display=3000&host=127.0.0.1
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
server_nxnode_echo: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
nxnode_reader: NX> 700 Session id: fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D
nxnode_reader: NX> 705 Session display: 3000
server_nxnode_echo: NX> 700 Session id: fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D
nxnode_reader: NX> 703 Session type: unix-gnome
NX> 700 Session id: fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D
nxnode_reader: NX> 701 Proxy cookie: 331206324b12d4063f2d05078b623ea6
server_nxnode_echo: NX> 705 Session display: 3000
nxnode_reader: NX> 702 Proxy IP: 192.168.11.150
server_nxnode_echo: NX> 703 Session type: unix-gnome
NX> 705 Session display: 3000
NX> 703 Session type: unix-gnome
nxnode_reader: NX> 706 Agent cookie: 331206324b12d4063f2d05078b623ea6
nxnode_reader: NX> 704 Session cache: unix-gnome
server_nxnode_echo: NX> 701 Proxy cookie: 331206324b12d4063f2d05078b623ea6
nxnode_reader: NX> 707 SSL tunneling: 1
server_nxnode_echo: NX> 702 Proxy IP: 192.168.11.150
NX> 701 Proxy cookie: 331206324b12d4063f2d05078b623ea6
NX> 702 Proxy IP: 192.168.11.150
server_nxnode_echo: NX> 706 Agent cookie: 331206324b12d4063f2d05078b623ea6
server_nxnode_echo: NX> 704 Session cache: unix-gnome
server_nxnode_echo: NX> 707 SSL tunneling: 1
NX> 706 Agent cookie: 331206324b12d4063f2d05078b623ea6
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 1
nxnode_reader: /usr/libexec/nx/nxnode: 606 行:  3359 Terminated              PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3
/usr/libexec/nx/nxnode: 606 行:  3359 Terminated              PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3
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/hattori/.nx/F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D/session". You might also want to try: ssh -X myserver; /usr/libexec/nx/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/hattori/.nx/F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D/session". You might also want to try: ssh -X myserver; /usr/libexec/nx/nxnode --agent to test the basic functionality. Session log follows:
NX> 105 nxnode_reader: xrdb: Connection refused
xrdb: Connection refused
nxnode_reader: xrdb: Can't open display ':3000'
xrdb: Can't open display ':3000'
nxnode_reader:

nxnode_reader: ** (gnome-session:3381): WARNING **: ディスプレイをオープンできません:
** (gnome-session:3381): WARNING **: ディスプレイをオープンできません:
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/hattori/.nx/F-C-fc16.localdomain-3000-8041B6AC6751F47AD9EF47BC2DA52E8D/session". You might also want to try: ssh -X myserver; /usr/libexec/nx/nxnode --agent to test the basic functionality. Session log follows:
session_close 8041B6AC6751F47AD9EF47BC2DA52E8D
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 2754.
Info: Closing connection to slave with pid 2754.


[root@fc16 failed]# pwd
/var/lib/nxserver/db/failed
[root@fc16 failed]#

[root@fc16 failed]# cat sessionId{8041B6AC6751F47AD9EF47BC2DA52E8D}
sessionName=Fedora16 notebook
display=3000
status=Failed
startTime=1329407510
foreignAddress=192.168.11.5
sessionRootlessMode=0
type=unix-gnome
sessionId=8041B6AC6751F47AD9EF47BC2DA52E8D
creationTime=1329407510
userName=hattori
serverPid=
screeninfo=1024x768x32+render
geometry=1024x768
host=127.0.0.1
shadowcookie=none


after removing /home/hattori/.nx/* directory , I can connect to the Fedora.
[root@fc16 .nx]# rm -rf *
[root@fc16 .nx]# ls


nnn , strange behavior … I use same display number ( :3000 )
cache problem ???
[root@fc16 ~]# cat /var/log/nx/nxserver.log

-- NX SERVER START: -c /usr/libexec/nx/nxserver - ORIG_COMMAND=
-- NX SERVER START:  - ORIG_COMMAND=
Info: Using fds #4 and #3 for communication with nxnode.
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: hattori
NX> 102 Password:
Info: Auth method: ssh hattori@127.0.0.1's password:
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 716 Slave mode started successfully.
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
nxnode_reader: NX> 716 finished
nxnode_reader: NX> 1001 Bye.

NX> 103 Welcome to: fc16.localdomain user: hattori
NX> 105 listsession --user="hattori" --status="suspended,running" --geometry="1280x1024x32+render" --type="unix-gnome"
NX> 127 Sessions list of user 'hattori' for reconnect:

Display Type             Session ID                       Options  Depth Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: hattori
NX> 105 startsession  --link="lan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="Fedora16%20notebook" --type="unix-gnome" --geometry="1024x768" --client="winnt" --keyboard="pc105/us" --screeninfo="1024x768x32+render"

&link=lan&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=Fedora16 notebook&type=unix-gnome&geometry=1024x768&client=winnt&keyboard=pc105/us&screeninfo=1024x768x32+render&clientproto=3.2.0&login_method=SSH&user=hattori&userip=192.168.11.5&uniqueid=6F2CB10EAF10D873348ECE739A042D6F&display=3000&host=127.0.0.1
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
server_nxnode_echo: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
nxnode_reader: NX> 700 Session id: fc16.localdomain-3000-6F2CB10EAF10D873348ECE739A042D6F
nxnode_reader: NX> 705 Session display: 3000
server_nxnode_echo: NX> 700 Session id: fc16.localdomain-3000-6F2CB10EAF10D873348ECE739A042D6F
nxnode_reader: NX> 703 Session type: unix-gnome
NX> 700 Session id: fc16.localdomain-3000-6F2CB10EAF10D873348ECE739A042D6F
nxnode_reader: NX> 701 Proxy cookie: 766f194bee78d16500ccd0c2f201a260
server_nxnode_echo: NX> 705 Session display: 3000
nxnode_reader: NX> 702 Proxy IP: 192.168.11.150
server_nxnode_echo: NX> 703 Session type: unix-gnome
nxnode_reader: NX> 706 Agent cookie: 766f194bee78d16500ccd0c2f201a260
NX> 705 Session display: 3000
NX> 703 Session type: unix-gnome
nxnode_reader: NX> 704 Session cache: unix-gnome
server_nxnode_echo: NX> 701 Proxy cookie: 766f194bee78d16500ccd0c2f201a260
nxnode_reader: NX> 707 SSL tunneling: 1
server_nxnode_echo: NX> 702 Proxy IP: 192.168.11.150
NX> 701 Proxy cookie: 766f194bee78d16500ccd0c2f201a260
NX> 702 Proxy IP: 192.168.11.150
server_nxnode_echo: NX> 706 Agent cookie: 766f194bee78d16500ccd0c2f201a260
server_nxnode_echo: NX> 704 Session cache: unix-gnome
server_nxnode_echo: NX> 707 SSL tunneling: 1
NX> 706 Agent cookie: 766f194bee78d16500ccd0c2f201a260
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 1
nxnode_reader: NX> 1009 Session status: starting
NX> 1009 Session status: starting
server_nxnode_echo: NX> 1009 Session status: starting
nxnode_reader: NX> 710 Session status: running
nxnode_reader: NX> 1002 Commit
nxnode_reader: NX> 1006 Session status: running
NX> 710 Session status: running
NX> 1002 Commit
NX> 1006 Session status: running
server_nxnode_echo: NX> 710 Session status: running
server_nxnode_echo: NX> 1002 Commit
NX> 105 session_status 6F2CB10EAF10D873348ECE739A042D6F Running
server_nxnode_echo: NX> 1006 Session status: running
bye
Bye
NX> 999 Bye

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.