mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3804] stcp点对点模式下存在注册proxy被判定存在导致无法二次上线的BUG #3025
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#3025
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 @Xyberonz on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3804
Bug Description
当运行3到5天左右,偶发出现,会发现proxier会报错:
new [p2p_xxx] already exist!
此时需要杀掉frps,然后重启frps,否则proxier永远无法注册proxies,导致隧道无法使用,影响正常使用。
上述情况已经出现两次,怀疑是frps实现proxies掉线后没有注销掉,导致proxies二次上线被判定重复进而拒绝了注册~!
frpc Version
0.52.3
frps Version
0.52.3
System Architecture
linux/amd64
Configurations
server
serverAddr = "x"
serverPort = x
auth.method = "token"
auth.token = "xx"
transport.tls.enable = true
visitor
visitors
name = "p2p_xxx_visitor"
type = "stcp"
serverName = "p2p_xxx"
secretKey = "xx"
bindAddr = "xx"
bindPort = xx
keepTunnelOpen = false
proxier
proxies
name = "p2p_xxx"
type = "stcp"
secretKey = "x"
localIP = "127.0.0.1"
localPort = x
Logs
No response
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Nov 28, 2023):
我也发现这个问题了,不过过一阵子会恢复然后连上。
怀疑是某些启动脚本使用 SIGKILL 信号杀frpc进程引起的。我在梅林固件上发现shell脚本写的是killall -9 ,kill -9这些,我现在在前面使用默认信号先杀一次,杀不掉再用-9。或者使用start-stop-daemon 默认信号停止。
正常停止服务,frpc会有日志 gracefully shutdown visitor manager出现,这样就很好
@github-actions[bot] commented on GitHub (Dec 29, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.