技术文章 - CS325403
远程访问客户端 (RAC) 与 ThingWorx 服务器的连接超时并出现错误“未捕获错误:连接 ETIMEDOUT”
已修改: 08-Sep-2023
适用于
- ThingWorx Asset Advisor for Service 8.1 F000
- ThingWorx Platform 9.0 to 9.4
- Axeda - Connectivity 6.9.4
- ThingWorx Edge MicroServer 5.4.10
说明
- 如果网络质量较差,远程访问客户端 (RAC)无法成功连接到ThingWorx Server。
- 这将导致与边缘设备的远程桌面连接失败,并在tw-ra-client.log 中报告错误:
[xxxx-xx-xxTxx:xx:xx.xxx] [ERROR] main - Uncaught error: connect ETIMEDOUT <IP:PORT> [xxxx-xx-xxTxx:xx:xx.xxx] [ERROR] main - { ChannelError: connect ETIMEDOUT <IP:PORT> at AlwaysOnProtocol.channel.on._.bind (<RAC_CLIENT_ROOT>\tw-ra-client\resources\app.asar\node_modules\tw-javascript-sdk\src\js\AlwaysOnProtocol.js:154:32) at emitOne (events.js:116:13) at Channel.emit (events.js:211:7) at NodeWebSocket.socket.on (<RAC_CLIENT_ROOT>\tw-ra-client\resources\app.asar\node_modules\tw-javascript-sdk\src\js\Channel.js:198:14) at emitOne (events.js:116:13) at NodeWebSocket.emit (events.js:211:7) at NodeWebSocket.handleError (<RAC_CLIENT_ROOT>\tw-ra-client\resources\app.asar\node_modules\tw-javascript-sdk\src\js\websocket\NodeWebSocket.js:117:14) at emitOne (events.js:116:13) at WebSocket.emit (events.js:211:7) at ClientRequest.onerror (<RAC_CLIENT_ROOT>\tw-ra-client\resources\app.asar\node_modules\tw-javascript-sdk\node_modules\ws\lib\WebSocket.js:711:10) name: 'ChannelError', message: 'connect ETIMEDOUT <IP:PORT>' }
- 当RAC客户端用户尝试通过 ThingWorx 从公共网络连接到资产的远程桌面,而 ThingWorx 部署在内部网络中时,尤其会发生这种情况。
- /TWS和/twTunnelClient URL 可以从RAC客户端用户访问,因此不会被防火墙阻止,但它们仍然无法连接到 ThingWorx,这导致对资产的远程访问也失败。
- 这将导致与边缘设备的远程桌面连接失败,并在tw-ra-client.log 中报告错误:
这是文章 325403 的 PDF 版本,可能已过期。最新版本 CS325403