Describe the bug
rathole server端频繁出现error日志
client和server可以正常通信
To Reproduce
Steps to reproduce the behavior:
- 启动server端之后一段时间就会出现这种情况
Configuration
Configuration used to reproduce the behavior:
#server.toml
[server]
bind_addr = "0.0.0.0:7000" # `2333` specifies the port that rathole listens for clients
[server.services.my_nas_ssh]
token = "K8twY" # Token that is used to authenticate the client for the service. Change to a arbitrary value.
bind_addr = "0.0.0.0:5000" # `5202` specifies the port that exposes `my_nas_ssh` to the Internet
[server.services.my_asus]
token = "K8twY"
bind_addr = "0.0.0.0:5001"
[server.services.my_haikang]
token = "K8twY"
bind_addr = "0.0.0.0:5002"
[client]
remote_addr = "xxxx:7000"
default_token = "K8twY"
[client.services.my_nas_ssh]
local_addr = "192.168.0.1:1025"
[client.services.my_asus]
local_addr = "192.168.0.1:80"
Logs
nohup: ignoring input
Feb 11 15:19:21.776 INFO rathole::server: Listening at 0.0.0.0:7000
Feb 11 15:19:21.776 INFO config_watcher{path="server.toml"}: rathole::config_watcher: Start watching the config
Feb 11 15:19:22.637 INFO connection{addr=221.216.117.118:60892}: rathole::server: Try to handshake a control channel
Feb 11 15:19:22.645 INFO connection{addr=221.216.117.118:50017}: rathole::server: Try to handshake a control channel
Feb 11 15:19:22.655 INFO connection{addr=221.216.117.118:60892}: rathole::server: Control channel established service=my_nas_ssh
Feb 11 15:19:22.655 INFO connection{addr=221.216.117.118:60892}:handle{service=my_nas_ssh}:run_tcp_connection_pool: rathole::server: Listening at 0.0.0.0:5000
Feb 11 15:19:22.663 INFO connection{addr=221.216.117.118:50017}: rathole::server: Control channel established service=my_asus
Feb 11 15:19:22.663 INFO connection{addr=221.216.117.118:50017}:handle{service=my_asus}:run_tcp_connection_pool: rathole::server: Listening at 0.0.0.0:5001
Feb 11 16:22:31.616 ERROR connection{addr=139.59.11.135:33886}: rathole::server: Failed to read hello: early eof
Feb 11 20:43:04.271 ERROR connection{addr=147.182.231.53:51530}: rathole::server: Failed to read hello: early eof
Feb 11 21:22:48.898 ERROR connection{addr=83.97.20.34:32033}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 21:22:59.348 ERROR connection{addr=83.97.20.34:44769}: rathole::server: Failed to read hello: early eof
Feb 11 21:22:59.600 ERROR connection{addr=83.97.20.34:58508}: rathole::server: Failed to deserialize hello: invalid value: integer `671088768`, expected variant index 0 <= i < 2
Feb 11 21:23:10.762 ERROR connection{addr=83.97.20.34:10343}: rathole::server: Failed to read hello: early eof
Feb 11 21:36:30.045 ERROR connection{addr=213.6.168.218:53265}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 21:36:31.087 ERROR connection{addr=213.6.168.218:53355}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 21:36:31.531 ERROR connection{addr=213.6.168.218:53558}: rathole::server: Failed to deserialize hello: invalid value: integer `197398`, expected variant index 0 <= i < 2
Feb 11 22:31:59.848 ERROR connection{addr=8.142.23.67:60030}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 22:32:08.322 ERROR connection{addr=8.142.23.67:36068}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:15.952 ERROR connection{addr=8.142.23.67:46508}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:19.203 ERROR connection{addr=8.142.23.67:55428}: rathole::server: Failed to deserialize hello: invalid value: integer `638`, expected variant index 0 <= i < 2
Feb 11 22:32:25.176 ERROR connection{addr=8.142.23.67:60604}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:33.467 ERROR connection{addr=8.142.23.67:42594}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:40.569 ERROR connection{addr=8.142.23.67:54110}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:41.813 ERROR connection{addr=8.142.23.67:34752}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 22:32:50.190 ERROR connection{addr=8.142.23.67:38882}: rathole::server: Failed to read hello: early eof
Feb 11 22:32:52.098 ERROR connection{addr=8.142.23.67:45594}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 22:33:02.363 ERROR connection{addr=8.142.23.67:50432}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:06.202 ERROR connection{addr=8.142.23.67:35838}: rathole::server: Failed to deserialize hello: invalid value: integer `1229407554`, expected variant index 0 <= i < 2
Feb 11 22:33:15.711 ERROR connection{addr=8.142.23.67:44772}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:23.291 ERROR connection{addr=8.142.23.67:52748}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:32.425 ERROR connection{addr=8.142.23.67:33012}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:34.242 ERROR connection{addr=8.142.23.67:41710}: rathole::server: Failed to deserialize hello: invalid value: integer `66326`, expected variant index 0 <= i < 2
Feb 11 22:33:42.033 ERROR connection{addr=8.142.23.67:46484}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:44.908 ERROR connection{addr=8.142.23.67:54124}: rathole::server: Failed to deserialize hello: invalid value: integer `671088768`, expected variant index 0 <= i < 2
Feb 11 22:33:52.979 ERROR connection{addr=8.142.23.67:57382}: rathole::server: Failed to read hello: early eof
Feb 11 22:33:59.953 ERROR connection{addr=8.142.23.67:37312}: rathole::server: Failed to read hello: early eof
Feb 11 22:34:07.715 ERROR connection{addr=8.142.23.67:47338}: rathole::server: Failed to read hello: early eof
Feb 11 22:34:08.732 ERROR connection{addr=8.142.23.67:55454}: rathole::server: Failed to deserialize hello: invalid value: integer `58`, expected variant index 0 <= i < 2
Feb 11 22:34:13.274 ERROR connection{addr=8.142.23.67:59080}: rathole::server: Failed to deserialize hello: invalid value: integer `1230262351`, expected variant index 0 <= i < 2
Feb 11 22:34:17.082 ERROR connection{addr=8.142.23.67:36534}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 11 22:34:25.484 ERROR connection{addr=8.142.23.67:40924}: rathole::server: Failed to read hello: early eof
Feb 11 22:34:31.826 ERROR connection{addr=8.142.23.67:49032}: rathole::server: Failed to read hello: early eof
Feb 11 22:34:39.139 ERROR connection{addr=8.142.23.67:58018}: rathole::server: Failed to read hello: early eof
Feb 12 01:06:58.354 ERROR connection{addr=45.155.205.127:63305}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 02:35:44.661 ERROR connection{addr=89.248.165.24:64736}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 03:08:53.713 ERROR connection{addr=83.97.20.34:42403}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 12 03:09:04.493 ERROR connection{addr=83.97.20.34:55301}: rathole::server: Failed to read hello: early eof
Feb 12 03:09:04.794 ERROR connection{addr=83.97.20.34:12143}: rathole::server: Failed to deserialize hello: invalid value: integer `671088768`, expected variant index 0 <= i < 2
Feb 12 03:09:15.160 ERROR connection{addr=83.97.20.34:31433}: rathole::server: Failed to read hello: early eof
Feb 12 04:07:05.687 ERROR connection{addr=31.220.3.140:34398}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 12 05:20:57.872 ERROR connection{addr=89.248.163.191:33924}: rathole::server: Failed to read hello: early eof
Feb 12 06:46:23.682 ERROR connection{addr=47.101.200.71:33674}: rathole::server: Failed to deserialize hello: invalid value: integer `197398`, expected variant index 0 <= i < 2
Feb 12 09:06:28.299 ERROR connection{addr=83.97.20.34:19879}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 12 09:06:39.169 ERROR connection{addr=83.97.20.34:45711}: rathole::server: Failed to read hello: early eof
Feb 12 09:06:40.430 ERROR connection{addr=83.97.20.34:55052}: rathole::server: Failed to deserialize hello: invalid value: integer `671088768`, expected variant index 0 <= i < 2
Feb 12 09:06:52.572 ERROR connection{addr=83.97.20.34:2330}: rathole::server: Failed to read hello: early eof
Feb 12 12:24:59.340 ERROR connection{addr=185.215.167.205:49752}: rathole::server: Failed to read hello: early eof
Feb 12 12:27:52.476 ERROR connection{addr=193.106.29.74:64831}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 14:13:59.870 ERROR connection{addr=164.92.228.73:52560}: rathole::server: Failed to read hello: early eof
Feb 12 14:46:57.080 ERROR connection{addr=195.54.167.183:64072}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 15:01:00.158 ERROR connection{addr=83.97.20.34:59847}: rathole::server: Failed to deserialize hello: invalid value: integer `542393671`, expected variant index 0 <= i < 2
Feb 12 15:01:11.738 ERROR connection{addr=83.97.20.34:54290}: rathole::server: Failed to read hello: early eof
Feb 12 15:01:11.925 ERROR connection{addr=83.97.20.34:35659}: rathole::server: Failed to deserialize hello: invalid value: integer `671088768`, expected variant index 0 <= i < 2
Feb 12 15:01:22.576 ERROR connection{addr=83.97.20.34:3118}: rathole::server: Failed to read hello: early eof
Feb 12 15:24:27.210 ERROR connection{addr=45.155.205.127:64391}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 15:43:15.551 ERROR connection{addr=45.155.205.127:64559}: rathole::server: Failed to deserialize hello: invalid value: integer `788529155`, expected variant index 0 <= i < 2
Feb 12 15:44:07.719 ERROR connection{addr=80.66.88.12:7161}: rathole::server: Failed to deserialize hello: invalid value: integer `872415506`, expected variant index 0 <= i < 2
Environment:
- OS: CentOS Linux release 7.9.2009 (Core)
rathole --version
output:
rathole
Build Timestamp: 2022-01-21T16:24:41.600163352+00:00
Build Version: 0.3.9
Commit SHA: Some("3cab131fc4294e689cd42f0eb4070e71b0e13537")
Commit Date: Some("2022-01-21T16:18:37+00:00")
Commit Branch: Some("detached HEAD")
cargo Target Triple: x86_64-unknown-linux-musl
cargo Profile: release
cargo Features: base64,client,default,hot_reload,noise,notify,server,snowstorm,tls,tokio_native_tls
- CPU architecture:
Linux iZg7370jfvwvncZ 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux