mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2827] [W] [service.go:105] login to server failed: i/o deadline reached #2260
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#2260
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 @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
@Becods commented on GitHub (Mar 7, 2022):
请提供LOG
另外你9090端口未开放,请前往防火墙进行设置
@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做了处理
@marcuswang6 commented on GitHub (Mar 14, 2022):
同上,期待回答
@Reverie4u commented on GitHub (Mar 16, 2022):
试试在客户端的frpc.ini的 [common] 中加入
tls_enable=true
我就是这么解决的
@marcuswang6 commented on GitHub (Mar 16, 2022):
@ghost commented on GitHub (Mar 18, 2022):
I have same problem betwen Windows. with last version of frp (0.40)
@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.
@ghost commented on GitHub (Mar 18, 2022):
in my case, problem was in Windows firewall (i turned it off, and all working fine).
@huzhiyuan1994 commented on GitHub (Apr 25, 2022):
这个问题也太迷了吧,我的阿里云服务器上一直在用着0.27.1没更新,多个客户端也对应的一直没更新。之前都正常使用,但最近,其中一个客户端突然出这个问题,重启服务器,更新版本,更新go语言版本等都没效,加上这句就好了
@Love666sJane commented on GitHub (May 21, 2022):
感谢,我也通过您的设置解决了这一问题
@mookixiao commented on GitHub (Jun 19, 2022):
用tls_enable的方法解决了,有人解释解释为什么吗
@CoCoThink commented on GitHub (Mar 22, 2023):
请问是流量过墙的原因吗?确实加上tls_enable好多了