mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4125] suddenly connect to server error: connection write timeout #3254
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#3254
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 @solo7773 on GitHub (Apr 3, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4125
Bug Description
I used version 0.51.0 and it worked as expected. But since Jan 2024, frpc cannot connect to frps.
I then tried the newest 0.56.0, the error is the same as that of 0.51.0
frpc Version
0.56.0
frps Version
0.56.0
System Architecture
linux/amd64, darwin/amd64
Configurations
Server, ubuntu 22.04
# frps.toml
bindPort = 7000
Client, macOS and cent os
# frpc.toml
serverAddr = "x.x.x.x"
serverPort = 7000
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
Logs
frps and frpc were run by non-root user
./frps -c ./frps.toml./frpc -c ./frpc.tomlfrps logging
2024-04-03 11:50:08.582 [I] [frps/root.go:105] frps uses config file: frps.toml
2024-04-03 11:50:09.044 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:7000
2024-04-03 11:50:09.044 [I] [frps/root.go:114] frps started successfully
frpc logging
2024-04-03 11:56:46.489 [I] [sub/root.go:142] start frpc service for config file [frpc.toml]
2024-04-03 11:56:46.490 [I] [client/service.go:294] try to connect to server...
2024-04-03 11:56:56.604 [W] [client/service.go:297] connect to server error: connection write timeout
2024-04-03 11:56:56.605 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped
login to the server failed: connection write timeout. With loginFailExit enabled, no additional retries will be attempted
follow up
I then checked server logging, but there is no in-connection from the client.
client to server connection is ok
nc -z x.x.x.x 7000
Connection to x.x.x.x port 7000 [tcp/*] succeeded!
Steps to reproduce
no
Affected area
@xqzr commented on GitHub (Apr 3, 2024):
@solo7773 commented on GitHub (Apr 4, 2024):
Hi @xqzr ,
Thanks! I run your command and get the output. Please see below and help me to solve the problem.
@solo7773 commented on GitHub (Apr 4, 2024):
Add the following setting to frpc solve the error
transport.tls.enable = false@xqzr commented on GitHub (Apr 4, 2024):
连接没有问题。
可能是 你所在的网络,对 TLS 存在过滤
@github-actions[bot] commented on GitHub (Apr 26, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.