mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3014] 4g设备重启后连接服务端失败 #2407
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaiwenl on GitHub (Jul 14, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3014
Bug Description
frpc Version
frpc version 0.43.0
frps Version
frps version 0.43.0
System Architecture
frps linux/amd64; frpc linux/arm64
Configurations
frps.ini
frpc.ini
Logs
服务端:
2022/07/14 09:04:03 [I] [root.go:200] frps uses config file: frps.ini
2022/07/14 09:04:03 [I] [service.go:194] frps tcp listen on 0.0.0.0:7000
2022/07/14 09:04:03 [I] [service.go:293] Dashboard listen on 0.0.0.0:7500
2022/07/14 09:04:03 [I] [root.go:209] frps started successfully
2022/07/14 09:04:32 [I] [dashboard_api.go:70] Http request: [/api/serverinfo]
2022/07/14 09:04:32 [I] [dashboard_api.go:63] Http response [/api/serverinfo]: code [200]
2022/07/14 09:04:35 [I] [dashboard_api.go:185] Http request: [/api/proxy/stcp]
2022/07/14 09:04:35 [I] [dashboard_api.go:179] Http response [/api/proxy/stcp]: code [200]
2022/07/14 09:04:39 [T] [service.go:396] start check TLS connection...
2022/07/14 09:04:39 [T] [service.go:405] check TLS connection success, isTLS: false custom: false
2022/07/14 09:04:39 [I] [service.go:450] [cd63c00e272f25fc] client login info: ip [221.178.127.151:53773] version [0.43.0] hostname [] os [linux] arch [arm64]
2022/07/14 09:04:39 [D] [control.go:219] [cd63c00e272f25fc] new work connection registered
2022/07/14 09:04:39 [I] [stcp.go:34] [cd63c00e272f25fc] [YX00000100] stcp proxy custom listen success
2022/07/14 09:04:39 [I] [control.go:465] [cd63c00e272f25fc] new proxy [YX00000100] type [stcp] success
2022/07/14 09:04:43 [I] [dashboard_api.go:185] Http request: [/api/proxy/stcp]
2022/07/14 09:04:43 [I] [dashboard_api.go:179] Http response [/api/proxy/stcp]: code [200]
2022/07/14 09:04:45 [I] [dashboard_api.go:319] Http request: [/api/traffic/YX00000100]
2022/07/14 09:04:45 [I] [dashboard_api.go:313] Http response [/api/traffic/YX00000100]: code [200]
2022/07/14 09:05:09 [D] [control.go:494] [cd63c00e272f25fc] receive heartbeat
客户端设备断电重启,重新获取4g网
2022/07/14 09:05:13 [D] [service.go:423] Accept new mux stream error: EOF
2022/07/14 09:05:13 [D] [control.go:335] [cd63c00e272f25fc] control connection closed
2022/07/14 09:05:13 [I] [control.go:307] [cd63c00e272f25fc] control writer is closing
2022/07/14 09:05:13 [I] [proxy.go:88] [cd63c00e272f25fc] [YX00000100] proxy closing
2022/07/14 09:05:13 [I] [control.go:396] [cd63c00e272f25fc] client exit success
2022/07/14 09:05:13 [W] [proxy.go:176] [cd63c00e272f25fc] [YX00000100] listener is closed: listener closed
2022/07/14 09:07:18 [T] [service.go:396] start check TLS connection...
2022/07/14 09:07:18 [T] [service.go:405] check TLS connection success, isTLS: false custom: false
2022/07/14 09:07:18 [I] [service.go:450] [e31e67ebd90a5a70] client login info: ip [221.178.127.151:53774] version [0.43.0] hostname [] os [linux] arch [arm64]
2022/07/14 09:07:18 [D] [control.go:219] [e31e67ebd90a5a70] new work connection registered
2022/07/14 09:07:32 [I] [dashboard_api.go:185] Http request: [/api/proxy/stcp]
2022/07/14 09:07:32 [I] [dashboard_api.go:179] Http response [/api/proxy/stcp]: code [200]
2022/07/14 09:07:34 [I] [dashboard_api.go:319] Http request: [/api/traffic/YX00000100]
2022/07/14 09:07:34 [I] [dashboard_api.go:313] Http response [/api/traffic/YX00000100]: code [200]
2022/07/14 09:07:55 [T] [service.go:396] start check TLS connection...
2022/07/14 09:07:55 [T] [service.go:405] check TLS connection success, isTLS: false custom: false
2022/07/14 09:07:55 [D] [service.go:423] Accept new mux stream error: invalid protocol version
2022/07/14 09:08:42 [D] [control.go:335] [e31e67ebd90a5a70] control connection closed
2022/07/14 09:08:42 [I] [control.go:307] [e31e67ebd90a5a70] control writer is closing
2022/07/14 09:08:42 [I] [control.go:396] [e31e67ebd90a5a70] client exit success
2022/07/14 09:08:42 [D] [service.go:423] Accept new mux stream error: EOF
客户端
2022/07/14 17:04:48 [T] [root.go:211] start frpc service for config file [frpc.ini]
2022/07/14 17:04:48 [I] [service.go:349] [cd63c00e272f25fc] login to server success, get run id [cd63c00e272f25fc], server udp port [0]
2022/07/14 17:04:48 [I] [proxy_manager.go:144] [cd63c00e272f25fc] proxy added: [YX00000100]
2022/07/14 17:04:48 [T] [proxy_wrapper.go:171] [cd63c00e272f25fc] [YX00000100] change status from [new] to [wait start]
2022/07/14 17:04:48 [I] [control.go:181] [cd63c00e272f25fc] [YX00000100] start proxy success
2022/07/14 17:05:18 [D] [control.go:360] [cd63c00e272f25fc] send heartbeat to server
2022/07/14 17:05:18 [D] [control.go:391] [cd63c00e272f25fc] receive heartbeat from server
客户端重启
2022/07/14 17:07:25 [T] [root.go:211] start frpc service for config file [frpc.ini]
2022/07/14 17:07:25 [I] [service.go:349] [e31e67ebd90a5a70] login to server success, get run id [e31e67ebd90a5a70], server udp port [0]
2022/07/14 17:07:25 [I] [proxy_manager.go:144] [e31e67ebd90a5a70] proxy added: [YX00000100]
2022/07/14 17:07:25 [T] [proxy_wrapper.go:171] [e31e67ebd90a5a70] [YX00000100] change status from [new] to [wait start]
2022/07/14 17:07:47 [T] [proxy_wrapper.go:171] [e31e67ebd90a5a70] [YX00000100] change status from [wait start] to [wait start]
2022/07/14 17:07:55 [D] [control.go:360] [e31e67ebd90a5a70] send heartbeat to server
2022/07/14 17:08:08 [T] [proxy_wrapper.go:171] [e31e67ebd90a5a70] [YX00000100] change status from [wait start] to [wait start]
2022/07/14 17:08:25 [D] [control.go:360] [e31e67ebd90a5a70] send heartbeat to server
2022/07/14 17:08:29 [T] [proxy_wrapper.go:171] [e31e67ebd90a5a70] [YX00000100] change status from [wait start] to [wait start]
注:
客户端因设置原因时间与服务器相差8小时;
Steps to reproduce
Affected area
@fatedier commented on GitHub (Jul 14, 2022):
google 尝试里面的一些方案看是否可行。
@kaiwenl commented on GitHub (Jul 14, 2022):
感谢大佬指点,仔细观察了下,等系统出现日志:random: crng init done后再启动frp就可以了,问题应该就出在系统的熵值上;