mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4026] FRPS 运行一段时间之后,客户端没法连接上来。 #3186
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#3186
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 @1449489029 on GitHub (Feb 26, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4026
Bug Description
客户端会时不时的连接不上,每次都需要将FRPS和FRPC重启了之后才能恢复正常。这次是在 2024-02-08 重启的,节后每隔一两天测试都正常。今天再要测试时,又发现客户端连接不上了。客户端这次没有开启日志,能提供只有服务端的日志。我们想要知道的是如何避免这种情况?
frpc Version
0.33.0
frps Version
0.53.2
System Architecture
linux/amd64
Configurations
FRPC 的配置(ini格式):
[common]
server_addr = xx.xx.xx.xx
server_port = 7000
token =
[ssh_6002]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6002
[tcp_7830]
type = tcp
local_ip = 127.0.0.1
local_port = 8831
remote_port = 7831
FRPS 的配置(toml格式):
bindPort = 7000
auth.token=
Logs
2024/02/25 15:19:01 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58850][0m
2024/02/25 15:19:01 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58858][0m
2024/02/25 15:19:01 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:40348][0m
2024/02/25 15:19:01 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58860][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58870][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48344][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58886][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48300][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:37873][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58892][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58896][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58902][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58912][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:37525][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48312][0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58914][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48368][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58926][0m
2024/02/25 15:19:02 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:02 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58932][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:56287][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48374][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58936][0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58942][0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48358][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58954][0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:54573][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:58970][0m
2024/02/25 15:19:03 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:48392][0m
2024/02/25 15:19:03 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
...
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [49.52.46.232:37501][0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:42536][0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:42544][0m
2024/02/25 15:19:20 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [172.105.89.240:60212][0m
2024/02/25 15:19:20 [1;33m[W] [control.go:289] [700cc5281cd63e1a] timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: timeout trying to get work connection[0m
2024/02/25 15:19:20 [1;34m[I] [proxy.go:204] [700cc5281cd63e1a] [ssh_6002] get a user connection [185.125.50.214:37080][0m
2024/02/25 15:19:21 [1;34m[I] [proxy.go:115] [700cc5281cd63e1a] [ssh_6002] proxy closing[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:201] [700cc5281cd63e1a] [ssh_6002] listener is closed: accept tcp [::]:6002: use of closed network connection[0m
2024/02/25 15:19:21 [1;34m[I] [proxy.go:115] [700cc5281cd63e1a] [tcp_7830] proxy closing[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:201] [700cc5281cd63e1a] [tcp_7830] listener is closed: accept tcp [::]:7831: use of closed network connection[0m
2024/02/25 15:19:21 [1;34m[I] [control.go:359] [700cc5281cd63e1a] client exit success[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [proxy.go:128] [700cc5281cd63e1a] [ssh_6002] failed to get work connection: control is closed[0m
2024/02/25 15:19:21 [1;33m[W] [control.go:283] [700cc5281cd63e1a] no work connections available, control is closed[0m
Steps to reproduce
...
Affected area
@1449489029 commented on GitHub (Feb 28, 2024):
是还需要提供什么数据吗?
@heguangzhi commented on GitHub (Mar 9, 2024):
frps 和 fpc 版本是否一致?
@1449489029 commented on GitHub (Mar 11, 2024):
frps 和 fpc 版本不是一致的,FRPC:0.33.0,FRPS:0.53.2
@Puqns67 commented on GitHub (Mar 12, 2024):
更新 frpc 后能否复现?你这个 frpc 实在是有点太老了
@1449489029 commented on GitHub (Mar 13, 2024):
好的, 我试一下
@github-actions[bot] commented on GitHub (Apr 4, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.