mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1558] 重启报错login to server failed: lookup xxxxxx i/o timeout #1232
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#1232
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 @DalekFrog on GitHub (Dec 10, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1558
What version of frp are you using (./frpc -v or ./frps -v)?
0.30.0
What operating system and processor architecture are you using (
go env)?ubuntu 16.04
Configures you used:
[common]
server_addr = frp.example.com
server_port = 52222
protocol = kcp
use_encryption = true
use_compression = true
login_fail_exit = true
Steps to reproduce the issue:
1.使用systemd管理,按照项目中的frpc.service配置
2.重启
Describe the results you received:
不知道是不是我环境问题,重启基本都能复现,service中也已经有了After=network.target
但是systemctl restart frpc又是可以正常使用的
简单看了下service.go,既然走到了“"login to server failed:”这个warn,应该继续判断有
login_fail_exit = true,进而推出,然后可以由systemd重启。不明白为什么一直在这个warning中没有下文了。重启服务器基本必现,但只要restart一下service就又可以了。有可能是因为network没有启动完全或者什么的原因,但我以为可以利用
login_fail_exit = true来迫使systemd重启frpc。所以不知道问题出在什么地方
@fatedier commented on GitHub (Jan 5, 2020):
原因就是
network没有启动完全,从日志可以看出是 DNS 请求超时,至于如何解决,可以再搜索一下。@DalekFrog commented on GitHub (Jan 7, 2020):
我能加上sleep 30 来解决这个问题。但是想了解一下,为什么不会自动重试或者退出重启