Хочется, но не можется.
Имеем: машину с настроенным openvpn сервером и стоящим на нем nxserver (тот что rx@etersoft), назавем ее "сервер".
По отдельности все работает. К nx-серверу удается подключиться с другой машины (назовем ее "клиент") находящейся в одной подсети, по OpenVPN клиент с сервером соединяется и машины друг друга прекрасно видят.
Но стоит все срастить, т. е. подключится клиентом к серверу по openvpn и попытаться поднять nx сессию, так сразу все не работает. Клиент виснет на 30 сек на этапе "Established the display connection", после чего отваливается.
Глубоководное погружение во все это г. к профиту не привело, идеи куда копать кончились. Помогите кто чем может.
Вобщем такое ощущение, что nxagent на сервере и nxproxy на клиенте висят и тупо ждут друг друга, а недождавшись отваливаются по таймауту.
И немножко логов в догонку (Не смотрите на разницу версий, пробовал 3.3 и 3.4 на сервере — результат одинаков):
Spoiler
На клиенте такое:
Код: Выделить всё
NXPROXY - Version 3.4.0
Copyright (C) 2001, 2010 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '21746'.
Session: Starting session at 'Fri Mar 11 00:31:44 2011'.
Warning: Connected to remote version 3.3.0 with local version 3.4.0.
Info: Connection with remote proxy completed.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-7' with session 'gnome'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: Using cache file '/home/denis/.nx/cache-gnome/S-1F568DE91352393FA73D2075592DF3F5'.
Info: Forwarding X11 connections to display ':0.0'.
Info: Listening to font server connections on port '12004'.
Session: Session started at 'Fri Mar 11 00:31:44 2011'.
Info: Established X server connection.
Info: Using shared memory parameters 1/4096K.
Warning: No data received from remote proxy within 32 seconds.
на сервере такое
nxnode.log
Код: Выделить всё
11.03 00:31:44: startsession (15735): starting with args ""
11.03 00:31:44: startsession (15735): generate "/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/options"
11.03 00:31:44: startsession (15735): write xauth script file
11.03 00:31:44: startsession (15735): call 'node_start_agent'
11.03 00:31:44: node_start_agent (15735): starting
11.03 00:31:44: startsession (15735): call 'node_start_applications'
11.03 00:31:44: node_start_agent (15735): source profile
11.03 00:31:44: node_start_monitor (15735): staring
11.03 00:31:44: node_start_applications (15735): starting
11.03 00:31:44: node_start_monitor (15735): call 'node_start_monitor_2_0_0 ""'
11.03 00:31:44: node_start_agent (15735): source bash profile
11.03 00:31:44: node_start_applications (15735): source profile
11.03 00:31:44: node_start_agent (15735): NXAgent session type
11.03 00:31:44: node_start_monitor_2_0_0 (15735): starting
11.03 00:31:44: node_start_applications (15735): source bash profile
11.03 00:31:44: node_start_applications (15735): DISPLAY is 2004
11.03 00:31:44: node_start_agent (15735): env start NX_CLIENT=/usr/bin/nxdialog
SHELL=/bin/bash
XDG_SESSION_COOKIE=33f01db15fa5ee3a4a11688500000012-1299792702.835349-1274209778
SSH_CLIENT=127.0.0.1 55669 22
USER=denis
LD_LIBRARY_PATH=/usr/lib:
NXSESSIONID=samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716
MAIL=/var/mail/denis
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHADOW_XAUTHORITY=/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/authority
PWD=/home/denis
LANG=ru_RU.UTF-8
SLAVE_PID=15421
SHLVL=3
HOME=/home/denis
LOGNAME=denis
SSH_CONNECTION=127.0.0.1 55669 127.0.0.1 22
DISPLAY=nx/nx,options=/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/options:2004
XAUTHORITY=/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/authority
_=/usr/bin/env
11.03 00:31:44: node_start_agent (15735): env end
11.03 00:31:44: node_start_agent (15735): Start nxagent by command: '/usr/bin/nxagent -persistent -D -name "NX - denis@samsungrv408:2004 - samsungrv408 (GPL Edition)" -option "/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/options" -nolisten tcp -dpi 96 :2004'
11.03 00:31:44: node_start_agent (15735): Wait for NODE_AGENT_PID (16168)
11.03 00:32:45: node_start_agent (15735): NODE_AGENT_EXIT_STATUS = "1"
11.03 00:32:45: node_start_agent (15735): NODE_FAILED = "failed"
11.03 00:32:45: node_start_agent (15735): close session
11.03 00:32:45: node_start_agent (15735): cleanup session information 'samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716'
11.03 00:32:45: node_start_agent (15735): remove agent pidfile -- '/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/pids/agent'
11.03 00:32:45: node_start_agent (15735): call 'node_terminate_session "samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716" "failed"'
11.03 00:32:45: node_terminate_session (15735): starting
11.03 00:32:45: node_terminate_session (15735): Start terminating session "samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716" with status "failed"
11.03 00:32:45: node_terminate_session (15735): call node_stop_services
11.03 00:32:45: node_stop_services (15735): starting
11.03 00:32:45: node_stop_services (15735): call node_umount_smb
11.03 00:32:46: node_umount_smb (15735): starting with ENABLE_SHARE_MULTIMOUNT == 0
11.03 00:32:46: node_umount_smb (15735): File scripts/mpoint not present. Abort umounting...
11.03 00:32:46: node_stop_services (15735): call node_cupsd_stop
11.03 00:32:46: node_stop_services (15735): end
11.03 00:32:46: node_terminate_session (15735): Remove display information
11.03 00:32:46: node_terminate_session (15735): Remove magic cookie information
11.03 00:32:46: node_terminate_session (15735): Preserve or remove session information
11.03 00:32:46: node_terminate_session (15735): Session failed. Rename session directory from "/home/denis/.nx/C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716/" to "/home/denis/.nx/F-C-samsungrv408-2004-A9CA1EB158D78DB3E50398CEBC88C716"
11.03 00:32:46: node_terminate_session (15735): end
11.03 00:32:46: node_start_agent (15735):remove /tmp/.X2004-lock
11.03 00:32:46: node_start_agent (15735): remove /tmp/.X11-unix/X2004
11.03 00:32:46: node_start_monitor_2_0_0 (15735): call node_stop_services
11.03 00:32:46: node_stop_services (15735): starting
11.03 00:32:46: node_stop_services (15735): call node_umount_smb
11.03 00:32:46: node_umount_smb (15735): starting with ENABLE_SHARE_MULTIMOUNT == 0
11.03 00:32:46: node_umount_smb (15735): File scripts/mpoint not present. Abort umounting...
11.03 00:32:46: node_stop_services (15735): call node_cupsd_stop
11.03 00:32:46: node_stop_services (15735): end
11.03 00:32:46: node_start_monitor_2_0_0 (15735): end
session
Код: Выделить всё
NXAGENT - Version 3.3.0
Copyright (C) 2001, 2007 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Agent running with pid '16168'.
Session: Starting session at 'Fri Mar 11 00:31:44 2011'.
Info: Proxy running in server mode with pid '16168'.
Info: Waiting for connection from '127.0.0.1' on port '6004'.
Info: Accepted connection from '127.0.0.1'.
Warning: Connected to remote version 3.4.0 with local version 3.3.0.
Warning: Consider checking http://www.nomachine.com/ for updates.
Info: Connection with remote proxy completed.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using agent parameters 5000/10/50/0/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-7' with session 'gnome'.
Info: Using product 'LFE/None/LFEN/None'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: Using cache file '/home/denis/.nx/cache-gnome/C-1F568DE91352393FA73D2075592DF3F5'.
Info: Listening to X11 connections on display ':2004'.
Info: Established X client connection.
Info: Using shared memory parameters 1/1/1/4096K.
Info: Using alpha channel in render extension.
Info: Not using local device configuration changes.
InitOutput: Set ru_RU.UTF-8 locale
Error: Aborting session with 'Could not open default font 'fixed''.
Session: Aborting session at 'Fri Mar 11 00:32:45 2011'.
Session: Session aborted at 'Fri Mar 11 00:32:45 2011'.
Warning: Signals were not blocked in process with pid '16168'.
Error: Connection with remote peer broken.
Error: Please check the state of your network and retry.
nxserver.log, я правда не уверен, что именно от той самой сессии, но принцип один.
Тут наблюдается интересная строчка "Proxy IP: 192.168.101.52". Путем редактирования hosts удалось увидеть там 127.0.0.1, но это не помогло.
Код: Выделить всё
-- NX SERVER START: -c /usr/bin/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.3.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: denis
NX> 102 Password:
Info: Auth method: ssh denis@127.0.0.1's password:
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
NX> 716 Slave mode started successfully.
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
nxnode_reader: NX> 716 finished
nxnode_reader: NX> 1001 Bye.
NX> 103 Welcome to: samsungrv408 user: denis
NX> 105 listsession --user="denis" --status="suspended,running" --geometry="1280x800x24+render" --type="unix-gnome"
NX> 127 Sessions list of user 'denis' for reconnect:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: denis
NX> 105 startsession --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="samsungrv408" --type="unix-gnome" --geometry="1024x650+109+74" --client="linux" --keyboard="pc105/us" --screeninfo="1024x650x24+render"
&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=samsungrv408&type=unix-gnome&geometry=1024x650+109+74&client=linux&keyboard=pc105/us&screeninfo=1024x650x24+render&clientproto=3.2.0&login_method=SSH&user=denis&userip=192.168.101.56&uniqueid=4BA14B387D495EE21BE0E4F1162CAF04&display=2004&host=127.0.0.1
nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
server_nxnode_echo: NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
nxnode_reader: NX> 700 Session id: samsungrv408-2004-4BA14B387D495EE21BE0E4F1162CAF04
nxnode_reader: NX> 705 Session display: 2004
nxnode_reader: NX> 703 Session type: unix-gnome
nxnode_reader: NX> 701 Proxy cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
nxnode_reader: NX> 702 Proxy IP: 192.168.101.52
nxnode_reader: NX> 706 Agent cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
nxnode_reader: NX> 704 Session cache: unix-gnome
nxnode_reader: NX> 707 SSL tunneling: 1
NX> 700 Session id: samsungrv408-2004-4BA14B387D495EE21BE0E4F1162CAF04
NX> 705 Session display: 2004
NX> 703 Session type: unix-gnome
NX> 701 Proxy cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
NX> 702 Proxy IP: 192.168.101.52
NX> 706 Agent cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 1
server_nxnode_echo: NX> 700 Session id: samsungrv408-2004-4BA14B387D495EE21BE0E4F1162CAF04
server_nxnode_echo: NX> 705 Session display: 2004
server_nxnode_echo: NX> 703 Session type: unix-gnome
server_nxnode_echo: NX> 701 Proxy cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
server_nxnode_echo: NX> 702 Proxy IP: 192.168.101.52
server_nxnode_echo: NX> 706 Agent cookie: 5c3b1a4c4af0b8a86638694a89ec7bc2
server_nxnode_echo: NX> 704 Session cache: unix-gnome
server_nxnode_echo: NX> 707 SSL tunneling: 1
nxnode_reader: NX> 1009 Session status: starting
NX> 1009 Session status: starting
nxnode_reader: NX> 710 Session status: running
server_nxnode_echo: NX> 1009 Session status: starting
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
session_status 4BA14B387D495EE21BE0E4F1162CAF04 Running
NX> 105 server_nxnode_echo: NX> 1006 Session status: running
bye
Bye
NX> 999 Bye
nxnode_reader: NX> 1009 Session status: terminating
NX> 1009 Session status: terminating
session_status 4BA14B387D495EE21BE0E4F1162CAF04 Terminating
server_nxnode_echo: NX> 1009 Session status: terminating
Info: Closing connection to slave with pid 13294.
nxnode_reader: 1001 Bye.
1001 Bye.
nxnode_reader: NX> 1006 Session status: closed
NX> 1006 Session status: closed
session_close 4BA14B387D495EE21BE0E4F1162CAF04
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 13294.