[GH-ISSUE #3697] login to server failed: EOF #2943

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

Originally created by @jiang0608 on GitHub (Oct 19, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3697

Bug Description

使用NAT虚拟机搭建FRPS,第一次搭建完成能正常访问,后续因其他原因,重新启用一台虚拟机搭建FRPS(同一IP地址,不同端口),客户端无法连接服务端,提示: login to server failed: EOF;删除客户端文件重新下载配置出现同样问题;改回第一次搭建的端口又能正常连接服务端

frpc Version

0.52.1

frps Version

0.52.1

System Architecture

linux/amd64

Configurations

user = "a"
serverAddr = "域名"
serverPort = xxxx
loginFailExit = true
log.to = "./frpc.log"

log.level = "info"
log.maxDays = 3
log.disablePrintColor = false
auth.method = "token"
auth.token = "*"
transport.protocol = "tcp"
transport.connectServerLocalIP = "0.0.0.0"
transport.tls.enable = true
udpPacketSize = 1500

Logs

##使用端口b(使用新虚拟机)
2023/10/19 14:39:37 [I] [root.go:139] start frpc service for config file [frpc.toml]
2023/10/19 14:39:38 [W] [service.go:131] login to server failed: EOF
2023/10/19 14:39:38 [I] [root.go:154] frpc service for config file [frpc.toml] stopped
2023/10/19 14:40:11 [I] [root.go:139] start frpc service for config file [frpc.toml]
##使用端口a(使用旧虚拟机)
2023/10/19 14:40:11 [I] [service.go:299] [xxxxx] login to server success, get run id [xxxxxxxx]
2023/10/19 14:40:11 [I] [visitor_manager.go:118] [xxxxx] start visitor success
2023/10/19 14:40:11 [I] [visitor_manager.go:162] [xxxxx] visitor added: [user.proxy]

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 @jiang0608 on GitHub (Oct 19, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3697 ### Bug Description 使用NAT虚拟机搭建FRPS,第一次搭建完成能正常访问,后续因其他原因,重新启用一台虚拟机搭建FRPS(同一IP地址,不同端口),客户端无法连接服务端,提示: login to server failed: EOF;删除客户端文件重新下载配置出现同样问题;改回第一次搭建的端口又能正常连接服务端 ### frpc Version 0.52.1 ### frps Version 0.52.1 ### System Architecture linux/amd64 ### Configurations user = "a" serverAddr = "域名" serverPort = xxxx loginFailExit = true log.to = "./frpc.log" log.level = "info" log.maxDays = 3 log.disablePrintColor = false auth.method = "token" auth.token = "*" transport.protocol = "tcp" transport.connectServerLocalIP = "0.0.0.0" transport.tls.enable = true udpPacketSize = 1500 ### Logs ##使用端口b(使用新虚拟机) 2023/10/19 14:39:37 [I] [root.go:139] start frpc service for config file [frpc.toml] 2023/10/19 14:39:38 [W] [service.go:131] login to server failed: EOF 2023/10/19 14:39:38 [I] [root.go:154] frpc service for config file [frpc.toml] stopped 2023/10/19 14:40:11 [I] [root.go:139] start frpc service for config file [frpc.toml] ##使用端口a(使用旧虚拟机) 2023/10/19 14:40:11 [I] [service.go:299] [xxxxx] login to server success, get run id [xxxxxxxx] 2023/10/19 14:40:11 [I] [visitor_manager.go:118] [xxxxx] start visitor success 2023/10/19 14:40:11 [I] [visitor_manager.go:162] [xxxxx] visitor added: [user.proxy] ### 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

@zlm324 commented on GitHub (Oct 19, 2023):

排查一下frps所在虚拟机的防火墙设置?

<!-- gh-comment-id:1771004389 --> @zlm324 commented on GitHub (Oct 19, 2023): 排查一下frps所在虚拟机的防火墙设置?
Author
Owner

@jiang0608 commented on GitHub (Oct 19, 2023):

NAT主机问题

<!-- gh-comment-id:1771033251 --> @jiang0608 commented on GitHub (Oct 19, 2023): NAT主机问题
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#2943
No description provided.