[GH-ISSUE #4360] Frpc一直启动不起来. #3442

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

Originally created by @szzhongzi on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4360

Bug Description

一开始是可以启动的..结果修改了端口重启四五次之后就一直Frpc启动不起来...
但是我吧ip和token修改成我另一台服务器的马上就能运行..

起不来日志显示如下:

[0mlogin to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted

[0m2024-07-31 08:51:51.877 [I] [sub/root.go:160] frpc service for config file [/frp/frpc.toml] stopped
[0m2024-07-31 08:51:51.877 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration
[0m2024-07-31 08:51:51.875 [E] [client/service.go:279] token in login doesn't match token from configuration
[0m2024-07-31 08:51:51.784 [I] [client/service.go:294] try to connect to server...
2024/07/31 08:51:51 | stdout | 2024-07-31 08:51:51.783 [I] [sub/root.go:142] start frpc service for config file [/frp/frpc.toml]

frpc Version

0.59.0

frps Version

0.59.0

System Architecture

linux/amd64

Configurations

frps:
bindAddr = "0.0.0.0"
bindPort = 7000

auth.method = "token"
auth.token = "12332111"

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "aliluya"
webServer.password = "aliluyaadmin"

frpc:
serverAddr = "122.130.90.30"
serverPort = 7000
auth.method = "token"
auth.token = "12332111"

Logs

[0mlogin to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted

[0m2024-07-31 08:51:51.877 [I] [sub/root.go:160] frpc service for config file [/frp/frpc.toml] stopped
[0m2024-07-31 08:51:51.877 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration
[0m2024-07-31 08:51:51.875 [E] [client/service.go:279] token in login doesn't match token from configuration
[0m2024-07-31 08:51:51.784 [I] [client/service.go:294] try to connect to server...
2024/07/31 08:51:51 | stdout | 2024-07-31 08:51:51.783 [I] [sub/root.go:142] start frpc service for config file [/frp/frpc.toml]

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 @szzhongzi on GitHub (Jul 31, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4360 ### Bug Description 一开始是可以启动的..结果修改了端口重启四五次之后就一直Frpc启动不起来... 但是我吧ip和token修改成我另一台服务器的马上就能运行.. 起不来日志显示如下: [0mlogin to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted -- [0m2024-07-31 08:51:51.877 [I] [sub/root.go:160] frpc service for config file [/frp/frpc.toml] stopped [0m2024-07-31 08:51:51.877 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration [0m2024-07-31 08:51:51.875 [E] [client/service.go:279] token in login doesn't match token from configuration [0m2024-07-31 08:51:51.784 [I] [client/service.go:294] try to connect to server... 2024/07/31 08:51:51 | stdout | 2024-07-31 08:51:51.783 [I] [sub/root.go:142] start frpc service for config file [/frp/frpc.toml] ### frpc Version 0.59.0 ### frps Version 0.59.0 ### System Architecture linux/amd64 ### Configurations frps: bindAddr = "0.0.0.0" bindPort = 7000 auth.method = "token" auth.token = "12332111" webServer.addr = "0.0.0.0" webServer.port = 7500 webServer.user = "aliluya" webServer.password = "aliluyaadmin" frpc: serverAddr = "122.130.90.30" serverPort = 7000 auth.method = "token" auth.token = "12332111" ### Logs [0mlogin to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted -- [0m2024-07-31 08:51:51.877 [I] [sub/root.go:160] frpc service for config file [/frp/frpc.toml] stopped [0m2024-07-31 08:51:51.877 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration [0m2024-07-31 08:51:51.875 [E] [client/service.go:279] token in login doesn't match token from configuration [0m2024-07-31 08:51:51.784 [I] [client/service.go:294] try to connect to server... 2024/07/31 08:51:51 | stdout | 2024-07-31 08:51:51.783 [I] [sub/root.go:142] start frpc service for config file [/frp/frpc.toml] ### 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
Author
Owner

@subei12 commented on GitHub (Jul 31, 2024):

看日志是token不对,建议把frps重启下,两边对应上token再启动frpc

<!-- gh-comment-id:2259763081 --> @subei12 commented on GitHub (Jul 31, 2024): 看日志是`token`不对,建议把`frps`重启下,两边对应上`token`再启动`frpc`
Author
Owner

@szzhongzi commented on GitHub (Aug 4, 2024):

看日志是token不对,建议把frps重启下,两边对应上token再启动frpc

token没有问题 100%一样的..就是连不上 之后过了一两天 什么都不动..又连上了..
但是 重启一下 又连不上!!!!不知道什么原因..又没大神知道的..!!

<!-- gh-comment-id:2267614361 --> @szzhongzi commented on GitHub (Aug 4, 2024): > 看日志是`token`不对,建议把`frps`重启下,两边对应上`token`再启动`frpc` token没有问题 100%一样的..就是连不上 之后过了一两天 什么都不动..又连上了.. 但是 重启一下 又连不上!!!!不知道什么原因..又没大神知道的..!!
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#3442
No description provided.