[GH-ISSUE #4523] frpc could not login into frps . #3573

Closed
opened 2026-05-05 14:17:45 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Cufoon on GitHub (Nov 3, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4523

Bug Description

First run frps and then run frpc. Error happens.

frpc Version

0.61.0

frps Version

0.61.0

System Architecture

linux/amd64

Configurations

frps

bindAddr    = "0.0.0.0"
bindPort    = 3300
kcpBindPort = 3300

transport.tcpMux = true

auth.method = "token"
auth.token  = "xxxxx"

allowPorts = [{ start = 9001, end = 9999 }]

webServer.addr     = "127.0.0.1"
webServer.port     = 3500
webServer.user     = "xxxxx"
webServer.password = "xxxxx"

frpc

serverAddr = "127.0.0.1"
serverPort = 3300

transport.tcpMux = true

auth.method = "token"
auth.token  = "xxxxx"

[[proxies]]
    name       = "xxxxxxxx"
    type       = "tcp"
    localIP    = "x.x.x.x"
    localPort  = 22
    remotePort = 1024

Logs

frps logs

2024-11-03 16:50:46.674 [I] [frps/root.go:105] frps uses config file: ./config/server.toml
2024-11-03 16:50:46.863 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:3300
2024-11-03 16:50:46.863 [I] [server/service.go:246] frps kcp listen on udp 0.0.0.0:3300
2024-11-03 16:50:46.863 [I] [frps/root.go:114] frps started successfully
2024-11-03 16:50:46.863 [I] [server/service.go:351] dashboard listen on 127.0.0.1:3500

frpc logs

2024-11-03 16:50:58.391 [I] [sub/root.go:142] start frpc service for config file [./config/client.toml]
2024-11-03 16:50:58.391 [I] [client/service.go:295] try to connect to server...
2024-11-03 16:51:00.514 [W] [client/service.go:298] connect to server error: session shutdown
2024-11-03 16:51:00.514 [I] [sub/root.go:160] frpc service for config file [./config/client.toml] stopped
login to the server failed: session shutdown. With loginFailExit enabled, no additional retries will be attempted

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Cufoon on GitHub (Nov 3, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4523 ### Bug Description First run `frps` and then run `frpc`. Error happens. ### frpc Version 0.61.0 ### frps Version 0.61.0 ### System Architecture linux/amd64 ### Configurations # frps ```toml bindAddr = "0.0.0.0" bindPort = 3300 kcpBindPort = 3300 transport.tcpMux = true auth.method = "token" auth.token = "xxxxx" allowPorts = [{ start = 9001, end = 9999 }] webServer.addr = "127.0.0.1" webServer.port = 3500 webServer.user = "xxxxx" webServer.password = "xxxxx" ``` # frpc ```toml serverAddr = "127.0.0.1" serverPort = 3300 transport.tcpMux = true auth.method = "token" auth.token = "xxxxx" [[proxies]] name = "xxxxxxxx" type = "tcp" localIP = "x.x.x.x" localPort = 22 remotePort = 1024 ``` ### Logs # frps logs ``` 2024-11-03 16:50:46.674 [I] [frps/root.go:105] frps uses config file: ./config/server.toml 2024-11-03 16:50:46.863 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:3300 2024-11-03 16:50:46.863 [I] [server/service.go:246] frps kcp listen on udp 0.0.0.0:3300 2024-11-03 16:50:46.863 [I] [frps/root.go:114] frps started successfully 2024-11-03 16:50:46.863 [I] [server/service.go:351] dashboard listen on 127.0.0.1:3500 ``` # frpc logs ``` 2024-11-03 16:50:58.391 [I] [sub/root.go:142] start frpc service for config file [./config/client.toml] 2024-11-03 16:50:58.391 [I] [client/service.go:295] try to connect to server... 2024-11-03 16:51:00.514 [W] [client/service.go:298] connect to server error: session shutdown 2024-11-03 16:51:00.514 [I] [sub/root.go:160] frpc service for config file [./config/client.toml] stopped login to the server failed: session shutdown. With loginFailExit enabled, no additional retries will be attempted ``` ### Steps to reproduce _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@BeUnhappy commented on GitHub (Nov 5, 2024):

allowPorts = [{ start = 9001, end = 9999 }]

你这明显有问题啊,1024不在这两个值之间

<!-- gh-comment-id:2456304697 --> @BeUnhappy commented on GitHub (Nov 5, 2024): ``` toml allowPorts = [{ start = 9001, end = 9999 }] ``` 你这明显有问题啊,1024不在这两个值之间
Author
Owner

@Cufoon commented on GitHub (Nov 9, 2024):

allowPorts = [{ start = 9001, end = 9999 }]

你这明显有问题啊,1024不在这两个值之间

部分配置内容做了隐匿处理,不在允许的端口范围之间的话也不是这个提示。

<!-- gh-comment-id:2466275850 --> @Cufoon commented on GitHub (Nov 9, 2024): > ```toml > allowPorts = [{ start = 9001, end = 9999 }] > ``` > > 你这明显有问题啊,1024不在这两个值之间 部分配置内容做了隐匿处理,不在允许的端口范围之间的话也不是这个提示。
Author
Owner

@Cufoon commented on GitHub (Nov 14, 2024):

我猜测是因为我使用 frpc 连接到 127.0.0.1 造成的问题,我使用两台虚拟机,一台部署 frps,另一台部署 frpc,连接完全正常。

<!-- gh-comment-id:2476757702 --> @Cufoon commented on GitHub (Nov 14, 2024): 我猜测是因为我使用 frpc 连接到 127.0.0.1 造成的问题,我使用两台虚拟机,一台部署 frps,另一台部署 frpc,连接完全正常。
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#3573
No description provided.