[GH-ISSUE #2827] [W] [service.go:105] login to server failed: i/o deadline reached #2260

Closed
opened 2026-05-05 13:27:22 -06:00 by gitea-mirror · 12 comments
Owner

Originally created by @huangchengbuhuang on GitHub (Mar 6, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2827

Bug Description

frpc客户端程序运行不起来

frpc Version

frp_0.39.1_linux_amd64.tar.gz

frps Version

frp_0.39.1_linux_amd64.tar.gz

System Architecture

centos7

Configurations

server_addr = 101.200.222.209
server_port = 9090

[ssh]
type = tcp
local_ip = 10.170.24.249
local_port = 221
remote_port = 9999

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 @huangchengbuhuang on GitHub (Mar 6, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2827 ### Bug Description frpc客户端程序运行不起来 ### frpc Version frp_0.39.1_linux_amd64.tar.gz ### frps Version frp_0.39.1_linux_amd64.tar.gz ### System Architecture centos7 ### Configurations server_addr = 101.200.222.209 server_port = 9090 [ssh] type = tcp local_ip = 10.170.24.249 local_port = 221 remote_port = 9999 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
Author
Owner

@Becods commented on GitHub (Mar 7, 2022):

请提供LOG

另外你9090端口未开放,请前往防火墙进行设置

<!-- gh-comment-id:1060642951 --> @Becods commented on GitHub (Mar 7, 2022): **请提供LOG** 另外你9090端口未开放,请前往防火墙进行设置
Author
Owner

@huangchengbuhuang commented on GitHub (Mar 11, 2022):

服务端设置:

[common]
bind_port = 9090

对外访问端口i

vhost_http_port = 9005
vhost_https_port = 9006

连接认证token

token = ·······

dashboard图形管理页面

#设置日志文件记录路径
log_file=./logs/frps.log
errorlog_level=info
log_max_days=3

日志:
[root@iZ2ze170eiax8ju5n6bifbZ logs]# cat frps.log
2022/03/11 10:23:42 [I] [root.go:200] frps uses config file: ./frps.ini
2022/03/11 10:23:42 [I] [service.go:193] frps tcp listen on 0.0.0.0:9090
2022/03/11 10:23:42 [I] [service.go:236] http service listen on 0.0.0.0:9005
2022/03/11 10:23:42 [I] [service.go:251] https service listen on 0.0.0.0:9006
2022/03/11 10:23:42 [I] [service.go:292] Dashboard listen on 0.0.0.0:9091
2022/03/11 10:23:42 [I] [root.go:209] frps started successfully
2022/03/11 10:24:06 [I] [root.go:200] frps uses config file: ./frps.ini
2022/03/11 10:24:06 [I] [service.go:193] frps tcp listen on 0.0.0.0:9090
2022/03/11 10:24:06 [I] [service.go:236] http service listen on 0.0.0.0:9005
2022/03/11 10:24:06 [I] [service.go:251] https service listen on 0.0.0.0:9006
2022/03/11 10:24:06 [I] [service.go:292] Dashboard listen on 0.0.0.0:9091
2022/03/11 10:24:06 [I] [root.go:209] frps started successfully
2022/03/11 10:28:29 [I] [dashboard_api.go:70] Http request: [/api/serverinfo]
2022/03/11 10:28:29 [I] [dashboard_api.go:63] Http response [/api/serverinfo]: code [200

客户端的frpc因为运行不起来,所以没有日志出来、
客户端配置:
[common]
server_addr = 59.123.123.123
server_port = 9090
token=······

[ssh]
type = tcp
local_ip = 10.34.21.31
local_port = 22
remote_port = 9999
log_file = ./logs/frps.log
errorlog_level = info
log_max_days = 1

服务器的端口已开放,阿里云防火墙的端口也已经开放,ip和token做了处理

<!-- gh-comment-id:1064720605 --> @huangchengbuhuang commented on GitHub (Mar 11, 2022): > 服务端设置: [common] bind_port = 9090 # 对外访问端口i vhost_http_port = 9005 vhost_https_port = 9006 # 连接认证token token = ······· # dashboard图形管理页面 #设置日志文件记录路径 log_file=./logs/frps.log errorlog_level=info log_max_days=3 日志: [root@iZ2ze170eiax8ju5n6bifbZ logs]# cat frps.log 2022/03/11 10:23:42 [I] [root.go:200] frps uses config file: ./frps.ini 2022/03/11 10:23:42 [I] [service.go:193] frps tcp listen on 0.0.0.0:9090 2022/03/11 10:23:42 [I] [service.go:236] http service listen on 0.0.0.0:9005 2022/03/11 10:23:42 [I] [service.go:251] https service listen on 0.0.0.0:9006 2022/03/11 10:23:42 [I] [service.go:292] Dashboard listen on 0.0.0.0:9091 2022/03/11 10:23:42 [I] [root.go:209] frps started successfully 2022/03/11 10:24:06 [I] [root.go:200] frps uses config file: ./frps.ini 2022/03/11 10:24:06 [I] [service.go:193] frps tcp listen on 0.0.0.0:9090 2022/03/11 10:24:06 [I] [service.go:236] http service listen on 0.0.0.0:9005 2022/03/11 10:24:06 [I] [service.go:251] https service listen on 0.0.0.0:9006 2022/03/11 10:24:06 [I] [service.go:292] Dashboard listen on 0.0.0.0:9091 2022/03/11 10:24:06 [I] [root.go:209] frps started successfully 2022/03/11 10:28:29 [I] [dashboard_api.go:70] Http request: [/api/serverinfo] 2022/03/11 10:28:29 [I] [dashboard_api.go:63] Http response [/api/serverinfo]: code [200 客户端的frpc因为运行不起来,所以没有日志出来、 客户端配置: [common] server_addr = 59.123.123.123 server_port = 9090 token=······ [ssh] type = tcp local_ip = 10.34.21.31 local_port = 22 remote_port = 9999 log_file = ./logs/frps.log errorlog_level = info log_max_days = 1 服务器的端口已开放,阿里云防火墙的端口也已经开放,ip和token做了处理
Author
Owner

@marcuswang6 commented on GitHub (Mar 14, 2022):

同上,期待回答

<!-- gh-comment-id:1066432415 --> @marcuswang6 commented on GitHub (Mar 14, 2022): 同上,期待回答
Author
Owner

@Reverie4u commented on GitHub (Mar 16, 2022):

试试在客户端的frpc.ini的 [common] 中加入
tls_enable=true
我就是这么解决的

<!-- gh-comment-id:1068675581 --> @Reverie4u commented on GitHub (Mar 16, 2022): 试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的
Author
Owner

@marcuswang6 commented on GitHub (Mar 16, 2022):

试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的
太感谢了!!成功连上!!!解决了大问题!感谢!

<!-- gh-comment-id:1068680533 --> @marcuswang6 commented on GitHub (Mar 16, 2022): > 试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的 太感谢了!!成功连上!!!解决了大问题!感谢!
Author
Owner

@ghost commented on GitHub (Mar 18, 2022):

I have same problem betwen Windows. with last version of frp (0.40)

<!-- gh-comment-id:1072455562 --> @ghost commented on GitHub (Mar 18, 2022): I have same problem betwen Windows. with last version of frp (0.40)
Author
Owner

@huangchengbuhuang commented on GitHub (Mar 18, 2022):

I use the version of 0.38 on linux ,in the frps.ini add tls_only = true and in the frpc.ini add tls_enable=true.

<!-- gh-comment-id:1072506139 --> @huangchengbuhuang commented on GitHub (Mar 18, 2022): I use the version of 0.38 on linux ,in the frps.ini add tls_only = true and in the frpc.ini add tls_enable=true.
Author
Owner

@ghost commented on GitHub (Mar 18, 2022):

in my case, problem was in Windows firewall (i turned it off, and all working fine).

<!-- gh-comment-id:1072798713 --> @ghost commented on GitHub (Mar 18, 2022): in my case, problem was in Windows firewall (i turned it off, and all working fine).
Author
Owner

@huzhiyuan1994 commented on GitHub (Apr 25, 2022):

试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的
太感谢了!!成功连上!!!解决了大问题!感谢!

这个问题也太迷了吧,我的阿里云服务器上一直在用着0.27.1没更新,多个客户端也对应的一直没更新。之前都正常使用,但最近,其中一个客户端突然出这个问题,重启服务器,更新版本,更新go语言版本等都没效,加上这句就好了

<!-- gh-comment-id:1108334621 --> @huzhiyuan1994 commented on GitHub (Apr 25, 2022): > > 试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的 > > 太感谢了!!成功连上!!!解决了大问题!感谢! 这个问题也太迷了吧,我的阿里云服务器上一直在用着0.27.1没更新,多个客户端也对应的一直没更新。之前都正常使用,但最近,其中一个客户端突然出这个问题,重启服务器,更新版本,更新go语言版本等都没效,加上这句就好了
Author
Owner

@Love666sJane commented on GitHub (May 21, 2022):

试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的

感谢,我也通过您的设置解决了这一问题

<!-- gh-comment-id:1133550634 --> @Love666sJane commented on GitHub (May 21, 2022): > 试试在客户端的frpc.ini的 [common] 中加入 tls_enable=true 我就是这么解决的 感谢,我也通过您的设置解决了这一问题
Author
Owner

@mookixiao commented on GitHub (Jun 19, 2022):

用tls_enable的方法解决了,有人解释解释为什么吗

<!-- gh-comment-id:1159689145 --> @mookixiao commented on GitHub (Jun 19, 2022): 用tls_enable的方法解决了,有人解释解释为什么吗
Author
Owner

@CoCoThink commented on GitHub (Mar 22, 2023):

请问是流量过墙的原因吗?确实加上tls_enable好多了

<!-- gh-comment-id:1479245804 --> @CoCoThink commented on GitHub (Mar 22, 2023): 请问是流量过墙的原因吗?确实加上tls_enable好多了
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#2260
No description provided.