Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection reset by peer, end this service #927

Open
MiKing233 opened this issue Nov 12, 2021 · 12 comments
Open

connection reset by peer, end this service #927

MiKing233 opened this issue Nov 12, 2021 · 12 comments
Labels
bug Something isn't working

Comments

@MiKing233
Copy link

NPS服務端一直正常工作, NPC報錯如下, 最後又會自己連接上, 另一臺同時連綫的Windows設備NPC連綫一直正常
出現該問題的NPC為linux_arm64_client.tar.gz
設備為RasberryPi4B, OS為Ubuntu21.10, 此現象在更新到21.10后出現尤爲頻繁

2021/11/12 07:34:08.124 [D] [client.go:216] new tcp connection with the goal of 127.0.0.1:8080, remote address:127.0.0.1:45554
2021/11/12 07:35:15.976 [E] [client.go:92] Accept server data error read tcp 192.168.0.100:60182->...:8026: read: connection reset by peer, end this service
2021/11/12 07:35:15 close mux
2021/11/12 07:35:15.976 [W] [client.go:165] accpet error,the conn has closed
2021/11/12 07:35:15.976 [I] [npc.go:236] Client closed! It will be reconnected in five seconds
2021/11/12 07:35:41.460 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:36:07.094 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:36:17.175 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:36:58.768 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:37:08.856 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:37:50.501 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:38:16.106 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:38:26.201 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:38:36.293 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:39:17.844 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:39:27.929 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:39:38.023 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:40:03.606 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:40:13.706 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:40:23.795 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:40:33.879 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:40:59.420 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:41:09.502 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:42:23.658 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:42:33.748 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF
2021/11/12 07:42:46.083 [I] [client.go:72] Successful connection with server ...:8026
2021/11/12 07:44:17 mux: read session unpack from connection err read tcp 192.168.0.100:60184->...:8026: use of closed network connection
2021/11/12 07:54:14.968 [D] [client.go:216] new tcp connection with the goal of 127.0.0.1:8085, remote address:127.0.0.1:45640

@MiKing233 MiKing233 added the bug Something isn't working label Nov 12, 2021
@hanwinbi
Copy link

我碰到了和你一样的问题,也是一台 Windows 一台 Ubuntu,请问您解决了吗?

@hardy110
Copy link

我也遇到了,有解决办法吗?我用的是docker。也是ubuntu的客户端 会有这个问题。测试的ssh端口

@MiKing233
Copy link
Author

OS更換爲Ubuntu 20.04.3 LTS aarch64后似乎沒有再遇到過此問題

@hardy110
Copy link

hardy110 commented Dec 27, 2021

真的假的?我仔细查了下,应该是服务端先关闭的。
2021/12/27 02:53:37 mux: read session unpack from connection err EOF
2021/12/27 02:53:48 mux: ping time out, checktime 1201 threshold 1200
我先把disconnect_timeout=1200000 试试

@hardy110
Copy link

好像不行,客户端也会自动关闭
2021/12/27 03:08:20 close mux
2021/12/27 03:08:20.486 [E] [client.go:92] Accept server data error EOF, end this service
2021/12/27 03:08:20.487 [W] [client.go:165] accpet error,the conn has closed
2021/12/27 03:08:20.487 [I] [npc.go:236] Client closed! It will be reconnected in five seconds

@hardy110
Copy link

我的系统是 Ubuntu 20.04.2 LTS \n \l

@MiKing233
Copy link
Author

我目前是使用Ubuntu 20.04.3 LTS x86_64作爲服務機, Ubuntu 20.04.3 LTS aarch64作爲客戶機, 此前客戶機為Ubuntu 21.10經常性會看到此錯誤, 現在用了快一個月沒遇到過這問題, 個人判斷還是NPS本身軟體的問題,而且已經很久沒有更新過了...

@hardy110
Copy link

我客户端也添加 -disconnect_timeout 3600试试,感觉是bug,ping包有问题,所以客户端和服务端认为close自动关闭了。

@hardy110
Copy link

是的,主要是我们不方便升级系统。应该是软件bug

@hardy110
Copy link

测试也是不行的,看来要不只能换系统,要不只能等修复这个bug,要不就只能换软件了。

@hardy110
Copy link

后来测试centos7 好像没问题,看来真的是特定系统的bug,哎

@peaceanddemocracy
Copy link

后来测试centos7 好像没问题,看来真的是特定系统的bug,哎

centos7似乎也有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants