[GH-ISSUE #2985] frpc 总是报错,启动不了,[service.go:128] login to server failed #2381

Closed
opened 2026-05-05 13:31:53 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @pandona on GitHub (Jun 16, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2985

Bug Description

frpc 启动失败,报错[service.go:128] login to server failed: EOF,远程服务端启动正常,端口也有打开,服务端关闭防火墙,frpc也还是启动失败交接不上。请大家帮帮忙

frpc Version

0.43

frps Version

0.43

System Architecture

服务端linux/amd64,客户端 linux/mips

Configurations

无异常

Logs

[service.go:128] login to server failed: EOF^[[0m
Jun 17 07:04:07 【frp】: EOF

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 @pandona on GitHub (Jun 16, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2985 ### Bug Description frpc 启动失败,报错[service.go:128] login to server failed: EOF,远程服务端启动正常,端口也有打开,服务端关闭防火墙,frpc也还是启动失败交接不上。请大家帮帮忙 ### frpc Version 0.43 ### frps Version 0.43 ### System Architecture 服务端linux/amd64,客户端 linux/mips ### Configurations 无异常 ### Logs [service.go:128] login to server failed: EOF^[[0m Jun 17 07:04:07 【frp】: EOF ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:31:53 -06:00
Author
Owner

@Becods commented on GitHub (Jun 17, 2022):

测试端口是否真正打开

<!-- gh-comment-id:1159018978 --> @Becods commented on GitHub (Jun 17, 2022): 测试端口是否**真正**打开
Author
Owner

@changyonggang commented on GitHub (Jul 8, 2022):

我也遇到了一样的情况,telnet frps 端口是可以通的。

<!-- gh-comment-id:1178644244 --> @changyonggang commented on GitHub (Jul 8, 2022): > 我也遇到了一样的情况,telnet frps 端口是可以通的。
Author
Owner

@zjsailor commented on GitHub (Jul 28, 2022):

add this command on your client
[common]
tls_enable = true

<!-- gh-comment-id:1197618633 --> @zjsailor commented on GitHub (Jul 28, 2022): add this command on your client [common] tls_enable = true
Author
Owner

@DreamWaterFound commented on GitHub (Aug 8, 2022):

add this command on your client [common] tls_enable = true

It works. Thanks!

<!-- gh-comment-id:1207650650 --> @DreamWaterFound commented on GitHub (Aug 8, 2022): > add this command on your client [common] tls_enable = true It works. Thanks!
Author
Owner

@github-actions[bot] commented on GitHub (Sep 8, 2022):

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

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

@wanglixiang90 commented on GitHub (Sep 19, 2022):

frps 服务端无法使用API管理,报错如下:
2022/09/19 17:02:51 [W] [service.go:128] login to server failed: EOF
2022/09/19 17:03:02 [W] [service.go:128] login to server failed: EOF
2022/09/19 17:03:13 [W] [service.go:128] login to server failed: EOF
2022/09/19 17:03:24 [W] [service.go:128] login to server failed: EOF
2022/09/19 17:03:34 [W] [service.go:128] login to server failed: EOF

<!-- gh-comment-id:1251300210 --> @wanglixiang90 commented on GitHub (Sep 19, 2022): frps 服务端无法使用API管理,报错如下: 2022/09/19 17:02:51 [W] [service.go:128] login to server failed: EOF 2022/09/19 17:03:02 [W] [service.go:128] login to server failed: EOF 2022/09/19 17:03:13 [W] [service.go:128] login to server failed: EOF 2022/09/19 17:03:24 [W] [service.go:128] login to server failed: EOF 2022/09/19 17:03:34 [W] [service.go:128] login to server failed: EOF
Author
Owner

@wanglixiang90 commented on GitHub (Sep 19, 2022):

尝试修改 frps 配置
[plugin.user-manager]
addr = 0.0.0.0:9000
path = /handler
ops = Login

[plugin.port-manager]
addr = 0.0.0.0:9001
path = /handler
ops = NewProxy

报错如下;
2022/09/19 17:05:46 [W] [service.go:128] login to server failed: EOF
2022/09/19 17:05:51 [E] [service.go:340] send Login request to plugin error
2022/09/19 17:05:51 [W] [service.go:128] login to server failed: send Login request to plugin error
2022/09/19 17:08:12 [E] [service.go:340] send Login request to plugin error
2022/09/19 17:08:12 [W] [service.go:128] login to server failed: send Login request to plugin error

服务端启动报错 : logs.BeeLogger.SetLogger: open /tmp/frps.log: permission denied

<!-- gh-comment-id:1251307442 --> @wanglixiang90 commented on GitHub (Sep 19, 2022): 尝试修改 frps 配置 [plugin.user-manager] addr = 0.0.0.0:9000 path = /handler ops = Login [plugin.port-manager] addr = 0.0.0.0:9001 path = /handler ops = NewProxy 报错如下; 2022/09/19 17:05:46 [W] [service.go:128] login to server failed: EOF 2022/09/19 17:05:51 [E] [service.go:340] send Login request to plugin error 2022/09/19 17:05:51 [W] [service.go:128] login to server failed: send Login request to plugin error 2022/09/19 17:08:12 [E] [service.go:340] send Login request to plugin error 2022/09/19 17:08:12 [W] [service.go:128] login to server failed: send Login request to plugin error 服务端启动报错 : logs.BeeLogger.SetLogger: open /tmp/frps.log: permission denied
Author
Owner

@bithaolee commented on GitHub (Dec 1, 2022):

add this command on your client [common] tls_enable = true↳

thank you, it works

<!-- gh-comment-id:1333299236 --> @bithaolee commented on GitHub (Dec 1, 2022): > add this command on your client [common] tls_enable = true↳ thank you, it works
Author
Owner

@TronYY commented on GitHub (Nov 17, 2024):

add this command on your client [common] tls_enable = true

[W] [service.go:128] login to server failed: session shutdown
session shutdown

<!-- gh-comment-id:2481366606 --> @TronYY commented on GitHub (Nov 17, 2024): > add this command on your client [common] tls_enable = true [W] [service.go:128] login to server failed: session shutdown session shutdown
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#2381
No description provided.