2

嗨,我成功地使用 Windows 机器(版本)中的 NX 客户端连接到 Ubuntu 机器上的 NX 服务器,但突然间,我收到超时连接错误,来自 Windows 无机器客户端的以下日志信息

NX> 203 NXSSH running with pid: 5284
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.13.125 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.5.0-11 - LFE
NX> 105 Hello NXCLIENT - Version 3.5.0
NX> 134 Accepted protocol: 3.5.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login 
NX> 101 User: wshowair
NX> 102 Password: ***
NX> 103 Welcome to: enb-test user: wshowair
NX> 105 Listsession --user="wshowair" --status="suspended\054running" --geometry="1366x768x32+render" --type="unix-gnome" 
NX> 127 Available sessions: 

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

NX> 148 Server capacity: not reached for user: wshowair
NX> 105 Start session with: --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="NX> 280 Exiting on signal: 15

同时,我在 Ubuntu 上收到以下日志消息,我从 /var/log/messages 获得以下输出:

wshowair@enb-test:~$ tail -n30 /var/log/messages
Jan 15 11:05:51 enb-test NXSERVER-3.5.0-11[11475]: Session '3CFE5967E8DC57A0EA75FE19ACC9ACE6' started by user 'wshowair'. 'NXShell::handler_session_start'
Jan 15 11:05:51 enb-test NXNODE-3.5.0-9[11620]: Using port '1001' on node 'enb-test' for session 'unix-gnome'. Logger::log nxnode 6243
Jan 15 11:05:51 enb-test NXNODE-3.5.0-9[11620]: Using host from available host list: '10.10.13.125'. Logger::log nxnode 6244
Jan 15 11:06:49 enb-test NXSERVER-3.5.0-11[11475]: Received 'PIPE' signal: this signal is ignored by NX Server 'main::Static'
Jan 15 11:06:49 enb-test NXSERVER-3.5.0-11[11475]: Cannot read from stdin: NX client disconnected before the 'bye' message: exiting cleanly 'NXShell::handleExitRequests'
Jan 15 11:06:49 enb-test NXSERVER-3.5.0-11[11475]: User 'wshowair' from '192.168.101.225' logged out. 'NXLogin::reset'
Jan 15 11:06:49 enb-test NXSERVER-3.5.0-11[11475]: Received 'PIPE' signal: this signal is ignored by NX Server 'main::Static'
Jan 15 11:06:51 enb-test NXNODE-3.5.0-9[11620]: ERROR: run command: process: 11644 finished with: 1 Logger::log nxnode 3907
Jan 15 11:06:51 enb-test NXNODE-3.5.0-9[11653]: ERROR: Error when monitoring session: Unexpected termination of nxagent 'NXSessionMonitor::__setSessionStatus'
Jan 15 11:06:52 enb-test NXNODE-3.5.0-9[11653]: Directory '/home/wshowair/.nx/C-enb-test-1001-3CFE5967E8DC57A0EA75FE19ACC9ACE6' renamed into '/home/wshowair/.nx/F-C-enb-test-1001-3CFE5967E8DC57A0EA75FE19ACC9ACE6' for further investigation Logger::log nxnode 6432
Jan 15 11:06:53 enb-test NXNODE-3.5.0-9[11620]: Session 'unix-gnome' on port '1001' failed. Logger::log nxnode 6513
Jan 15 11:06:59 enb-test NXSERVER-3.5.0-11[11646]: ERROR: NXNodeExec: Cannot kill nxssh process: No such process 'NXNodeExec::exec'
Jan 15 11:06:59 enb-test NXSERVER-3.5.0-11[11646]: User 'wshowair' from '192.168.101.225' logged out. 'NXLogin::reset'
Jan 15 11:31:00 enb-test NXSERVER-3.5.0-11[12270]: User 'wshowair' logged in from '192.168.101.225'. 'NXLogin::set'
Jan 15 11:31:01 enb-test NXSERVER-3.5.0-11[12270]: Selected node host:localhost with port:22 'main::selectNode'
Jan 15 11:31:01 enb-test NXSERVER-3.5.0-11[12270]: Current selected node: localhost is in status: running  'main::selectNode'
Jan 15 11:31:01 enb-test NXSERVER-3.5.0-11[12270]: Selected session type: unix-gnome allowed in the profile of user: wshowair 'NXShell::Static'
Jan 15 11:31:03 enb-test NXSERVER-3.5.0-11[12270]: Session 'D038E20195545ACA3EBB4F14FDF14371' started by user 'wshowair'. 'NXShell::handler_session_start'
Jan 15 11:31:04 enb-test NXNODE-3.5.0-9[12415]: Using port '1002' on node 'enb-test' for session 'unix-gnome'. Logger::log nxnode 6243
Jan 15 11:31:04 enb-test NXNODE-3.5.0-9[12415]: Using host from available host list: '10.10.13.125'. Logger::log nxnode 6244
Jan 15 11:32:02 enb-test NXSERVER-3.5.0-11[12270]: Received 'PIPE' signal: this signal is ignored by NX Server 'main::Static'
Jan 15 11:32:02 enb-test NXSERVER-3.5.0-11[12270]: Cannot read from stdin: NX client disconnected before the 'bye' message: exiting cleanly 'NXShell::handleExitRequests'
Jan 15 11:32:02 enb-test NXSERVER-3.5.0-11[12270]: User 'wshowair' from '192.168.101.225' logged out. 'NXLogin::reset'
Jan 15 11:32:02 enb-test NXSERVER-3.5.0-11[12270]: Received 'PIPE' signal: this signal is ignored by NX Server 'main::Static'
Jan 15 11:32:03 enb-test NXNODE-3.5.0-9[12415]: ERROR: run command: process: 12439 finished with: 1 Logger::log nxnode 3907
Jan 15 11:32:04 enb-test NXNODE-3.5.0-9[12448]: ERROR: Error when monitoring session: Unexpected termination of nxagent 'NXSessionMonitor::__setSessionStatus'
Jan 15 11:32:04 enb-test NXNODE-3.5.0-9[12448]: Directory '/home/wshowair/.nx/C-enb-test-1002-D038E20195545ACA3EBB4F14FDF14371' renamed into '/home/wshowair/.nx/F-C-enb-test-1002-D038E20195545ACA3EBB4F14FDF14371' for further investigation Logger::log nxnode 6432
Jan 15 11:32:05 enb-test NXNODE-3.5.0-9[12415]: Session 'unix-gnome' on port '1002' failed. Logger::log nxnode 6513
Jan 15 11:32:11 enb-test NXSERVER-3.5.0-11[12441]: ERROR: NXNodeExec: Cannot kill nxssh process: No such process 'NXNodeExec::exec'
Jan 15 11:32:11 enb-test NXSERVER-3.5.0-11[12441]: User 'wshowair' from '192.168.101.225' logged out. 'NXLogin::reset'

我试图在服务器 Ubuntu 机器和 nomachine windows 客户端上重新安装 nxserver 和 nxnode,但仍然有相同的连接超时错误,任何想法

4

2 回答 2

0

这种类型的故障可能是由可能难以诊断的几种类型的问题引起的。NX 服务器通常工作正常,但服务器上的某些软件更新或配置更改会创建与 NX 不兼容的配置。

对于您在上面看到的症状,第一个检查是查看您的远程 Xsession 是否设置为 run xscreensaver。进入服务器并运行killall xscreensaver并尝试再次与 NX 连接。如果可行,请重新配置您的 Xsession,禁用屏幕保护程序功能。

您可以尝试的其他事情:

  • 删除${HOME}/.nx包含缓存会话信息的目录
  • 创建一个新用户并尝试以该用户身份连接。如果这有效,它确认您有一些 NX 无法容忍的本地 Xsession 设置。您可以尝试解决这些问题,或者如果您想采取严厉措施,您可以备份您的主目录并创建一个新目录,这将删除您的所有.*设置文件并恢复正常工作的 NX。
于 2013-11-05T00:33:51.540 回答
0

您必须验证您尝试在 NX 中启动的用户是否已添加到 nxserver

nxserver --adduser 用户

如果未在 nxserver 中添加,则不会启动会话。

问候

于 2019-04-25T21:25:58.393 回答