[GH-ISSUE #3107] connection write timeout #2492

Closed
opened 2026-05-05 13:36:10 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @pxzhang94 on GitHub (Sep 23, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3107

Bug Description

[W] [service.go:97] login to server failed: connection write timeout
connection write timeout

frpc Version

0.29.1

frps Version

0.29.1

System Architecture

linux/amd64

Configurations

default

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @pxzhang94 on GitHub (Sep 23, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3107 ### Bug Description [W] [service.go:97] login to server failed: connection write timeout connection write timeout ### frpc Version 0.29.1 ### frps Version 0.29.1 ### System Architecture linux/amd64 ### Configurations default ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:36:10 -06:00
Author
Owner

@Becods commented on GitHub (Sep 23, 2022):

Update your frp, and

CM6PHS7AGGJPN31Y2DI83MS

<!-- gh-comment-id:1256066332 --> @Becods commented on GitHub (Sep 23, 2022): Update your frp, and ![CM6PHS7AGGJPN31Y2DI83MS](https://user-images.githubusercontent.com/35525491/191945776-ba7bbee1-e086-4289-ac0e-ea1783f5cfd7.png)
Author
Owner

@pxzhang94 commented on GitHub (Sep 23, 2022):

I already update my frp to version 0.44.0, and the only information in log file is "2022/09/23 22:32:07 [W] [service.go:128] login to server failed: connection write timeout", and the configuration of frpc.ini is "
[common]
tls_enable = true
server_addr = XXX
server_port = 7000
log_file = ./frpc.log
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = XXX"

Update your frp, and

CM6PHS7AGGJPN31Y2DI83MS

<!-- gh-comment-id:1256297554 --> @pxzhang94 commented on GitHub (Sep 23, 2022): I already update my frp to version 0.44.0, and the only information in log file is "2022/09/23 22:32:07 [W] [service.go:128] login to server failed: connection write timeout", and the configuration of frpc.ini is " [common] tls_enable = true server_addr = XXX server_port = 7000 log_file = ./frpc.log [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = XXX" > Update your frp, and > > ![CM6PHS7AGGJPN31Y2DI83MS](https://user-images.githubusercontent.com/35525491/191945776-ba7bbee1-e086-4289-ac0e-ea1783f5cfd7.png)
Author
Owner

@Becods commented on GitHub (Sep 23, 2022):

Paste your startup command.

<!-- gh-comment-id:1256356938 --> @Becods commented on GitHub (Sep 23, 2022): Paste your startup command.
Author
Owner

@pxzhang94 commented on GitHub (Sep 23, 2022):

Paste your startup command.

Do you mean this "./frpc -c ./frpc.ini"?

<!-- gh-comment-id:1256370538 --> @pxzhang94 commented on GitHub (Sep 23, 2022): > Paste your startup command. Do you mean this "./frpc -c ./frpc.ini"?
Author
Owner

@Becods commented on GitHub (Sep 23, 2022):

Check if your server port is open and can be connected properly.

Use tcping.

<!-- gh-comment-id:1256439935 --> @Becods commented on GitHub (Sep 23, 2022): Check if your server port is open and can be connected properly. Use tcping.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2022):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1288255407 --> @github-actions[bot] commented on GitHub (Oct 24, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@yudonglin commented on GitHub (Dec 31, 2022):

Check if your server port is open and can be connected properly.

Use tcping.

Ok so @Becods 's suggestion makes me realize what is the problem here... make sure to go to "Security Group" on the server end and switch your 7000 port protocol type from "customize tcp" to "customize udp". This fix my problem.

<!-- gh-comment-id:1368270337 --> @yudonglin commented on GitHub (Dec 31, 2022): > Check if your server port is open and can be connected properly. > > Use tcping. Ok so @Becods 's suggestion makes me realize what is the problem here... make sure to go to "Security Group" on the server end and switch your 7000 port protocol type from "customize tcp" to "customize udp". This fix my problem.
Author
Owner

@kaifeiji commented on GitHub (Jan 28, 2023):

Try changing your bind_port in frps.ini and server_port in frpc.ini to another port number, like 6789. Works for me.
A rough guess: GFW or your ISP monitored some "unusual" network traffic on this port, and then block or restrict the port.

<!-- gh-comment-id:1407450591 --> @kaifeiji commented on GitHub (Jan 28, 2023): Try changing your bind_port in frps.ini and server_port in frpc.ini to another port number, like 6789. Works for me. A rough guess: GFW or your ISP monitored some "unusual" network traffic on this port, and then block or restrict the port.
Author
Owner

@wk989898 commented on GitHub (Jun 16, 2023):

Try to use kcp protocol

<!-- gh-comment-id:1594303704 --> @wk989898 commented on GitHub (Jun 16, 2023): Try to use kcp protocol
Author
Owner

@N-E-E commented on GitHub (Oct 12, 2024):

Try to use kcp protocol

correct. I fix the problem by using kcp protocol

<!-- gh-comment-id:2408376731 --> @N-E-E commented on GitHub (Oct 12, 2024): > Try to use kcp protocol correct. I fix the problem by using kcp protocol
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2492
No description provided.