[GH-ISSUE #3349] 以服务形式开机自启动报错 #2678

Closed
opened 2026-05-05 13:43:37 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @aiming0420 on GitHub (Mar 9, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3349

Bug Description

1,想让客户端开机自启动,使用winsw注册成服务开机自启动。
2,服务程序启动报错:dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.
3,使用延迟启动可以正常连接,说明启动时电脑还没有链接Internet的时候程序会退出而不是保持运行状态并继续尝试连接。
4,希望可以调整程序运行机制,启动的时候如果检测到网络错误不要退出,继续尝试连接服务端。

frpc Version

0.47.0

frps Version

0.47.0

System Architecture

windows11 专业版 64位

Configurations

#frpc
[common]
server_addr = xxx
server_port = 30000

#frps
[common]
bind_port = 30000

Logs

2023/03/09 10:49:29 [W] [service.go:134] login to server failed: dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.
dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.

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 @aiming0420 on GitHub (Mar 9, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3349 ### Bug Description 1,想让客户端开机自启动,使用winsw注册成服务开机自启动。 2,服务程序启动报错:dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network. 3,使用延迟启动可以正常连接,说明启动时电脑还没有链接Internet的时候程序会退出而不是保持运行状态并继续尝试连接。 4,希望可以调整程序运行机制,启动的时候如果检测到网络错误不要退出,继续尝试连接服务端。 ### frpc Version 0.47.0 ### frps Version 0.47.0 ### System Architecture windows11 专业版 64位 ### Configurations #frpc [common] server_addr = xxx server_port = 30000 #frps [common] bind_port = 30000 ### Logs 2023/03/09 10:49:29 [W] [service.go:134] login to server failed: dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network. dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network. ### 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
Author
Owner

@superzjg commented on GitHub (Mar 9, 2023):

确认frpc已经注册服务启动程序后,剩下的就是仔细阅读配置文件指南。你的情况要设置:login_fail_exit = false

<!-- gh-comment-id:1461520162 --> @superzjg commented on GitHub (Mar 9, 2023): 确认frpc已经注册服务启动程序后,剩下的就是仔细阅读配置文件指南。你的情况要设置:login_fail_exit = false
Author
Owner

@aiming0420 commented on GitHub (Mar 10, 2023):

确认frpc已经注册服务启动程序后,剩下的就是仔细阅读配置文件指南。你的情况要设置:login_fail_exit = false

配置项太多,没仔细看。非常感谢回复!

<!-- gh-comment-id:1463191423 --> @aiming0420 commented on GitHub (Mar 10, 2023): > 确认frpc已经注册服务启动程序后,剩下的就是仔细阅读配置文件指南。你的情况要设置:login_fail_exit = false 配置项太多,没仔细看。非常感谢回复!
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#2678
No description provided.