nacos-sdk-nodejs icon indicating copy to clipboard operation
nacos-sdk-nodejs copied to clipboard

在项目中使用nacos-sdk-nodejs后,服务一段时间后会挂掉

Open kingchary opened this issue 2 years ago • 2 comments

各位大神,你们好。

我遇到个奇怪的问题,服务会突然断掉。 奇怪的是自己电脑没问题,但有两台测试服务器就出现这个问题。ping和crul nacos服务都正常。

代码截图 image

启动日志 2022-05-30 21:39:51,286 WARN 112165 nodejs.ResponseTimeoutError: register to channel: DiamondClient@undefined failed, will retry after 3s, Server no response in 3000ms, address#127.0.0.1:7777 at Timeout._onTimeout (/www/wwwroot/test/node_modules/tcp-base/lib/base.js:225:21) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) socketMeta: {"id":2,"dataLength":91,"bufferSize1":0,"bufferSize2":0,"startTime":1653917988281,"endTime":1653917988282,"writeSuccess":true} name: "ResponseTimeoutError" pid: 112165 hostname: localhost.localdomain

2022-05-30 21:39:57,292 WARN 112165 nodejs.ResponseTimeoutError: register to channel: DiamondClient@undefined failed, will retry after 3s, Server no response in 3000ms, address#127.0.0.1:7777 at Timeout._onTimeout (/www/wwwroot/test/node_modules/tcp-base/lib/base.js:225:21) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) socketMeta: {"id":3,"dataLength":91,"bufferSize1":0,"bufferSize2":0,"startTime":1653917994291,"endTime":1653917994291,"writeSuccess":true} name: "ResponseTimeoutError" pid: 112165 hostname: localhost.localdomain

2022-05-30 21:40:03,299 WARN 112165 nodejs.ResponseTimeoutError: register to channel: DiamondClient@undefined failed, will retry after 3s, Server no response in 3000ms, address#127.0.0.1:7777 at Timeout._onTimeout (/www/wwwroot/test/node_modules/tcp-base/lib/base.js:225:21) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) socketMeta: {"id":4,"dataLength":91,"bufferSize1":0,"bufferSize2":0,"startTime":1653918000296,"endTime":1653918000296,"writeSuccess":true} name: "ResponseTimeoutError" pid: 112165 hostname: localhost.localdomain

kingchary avatar May 30 '22 09:05 kingchary

解决了吗,我也遇到这个问题了

wmvm0 avatar Sep 26 '22 14:09 wmvm0

我也遇到过这个问题,最后发现node项目停止时 端口号没有释放,把端口号释放了,问题就消失了。

helloyxw avatar May 15 '23 10:05 helloyxw