[GH-ISSUE #4219] Unable to use token(0.58) #3322

Closed
opened 2026-05-05 14:08:34 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @hermitguo on GitHub (May 14, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4219

Bug Description

sudo ./frpc -c frpc.toml

2024-05-14 17:34:40.781 [I] [sub/root.go:142] start frpc service for config file [frpc.toml]
2024-05-14 17:34:40.782 [I] [client/service.go:294] try to connect to server...
2024-05-14 17:34:40.925 [E] [client/service.go:279] token in login doesn't match token from configuration
2024-05-14 17:34:40.926 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration
2024-05-14 17:34:40.926 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped
login to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted

or, Add auth.method = "token", The following error

sudo ./frpc -c frpc.toml

2024-05-14 18:05:30.952 [I] [sub/root.go:142] start frpc service for config file [frpc.toml]
2024-05-14 18:05:30.952 [I] [client/service.go:294] try to connect to server...
2024-05-14 18:05:31.057 [W] [client/service.go:297] connect to server error: EOF
2024-05-14 18:05:31.057 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped
login to the server failed: EOF. With loginFailExit enabled, no additional retries will be attempted

frpc Version

0.58

frps Version

0.58

System Architecture

ubuntu22.04

Configurations

client:
serverAddr = "slurm.google.com"
serverPort = 7000

auth.token = "abc4645646asfasdfasdfas"

proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 3022

==============
server:
[common]

frp

bindAddr = "0.0.0.0"
bindPort = 7000

token

auth.token = "abc4645646asfasdfasdfas"

webServer.addr = "0.0.0.0"
webServer.port = 7701
webServer.user = "admin"
webServer.password = "Admin"

transport.tcpMux = false

frp log

log.to = "./frps.log"
log.level = "info"
log.maxDays = 3

vhostHTTPPort = 80
vhostHTTPSPort = 443

subdomain_host = "google.com"

Logs

No response

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 @hermitguo on GitHub (May 14, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4219 ### Bug Description sudo ./frpc -c frpc.toml 2024-05-14 17:34:40.781 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] 2024-05-14 17:34:40.782 [I] [client/service.go:294] try to connect to server... 2024-05-14 17:34:40.925 [E] [client/service.go:279] token in login doesn't match token from configuration 2024-05-14 17:34:40.926 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration 2024-05-14 17:34:40.926 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped login to the server failed: token in login doesn't match token from configuration. With loginFailExit enabled, no additional retries will be attempted **or, Add auth.method = "token", The following error** sudo ./frpc -c frpc.toml 2024-05-14 18:05:30.952 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] 2024-05-14 18:05:30.952 [I] [client/service.go:294] try to connect to server... 2024-05-14 18:05:31.057 [W] [client/service.go:297] connect to server error: EOF 2024-05-14 18:05:31.057 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped login to the server failed: EOF. With loginFailExit enabled, no additional retries will be attempted ### frpc Version 0.58 ### frps Version 0.58 ### System Architecture ubuntu22.04 ### Configurations client: serverAddr = "slurm.google.com" serverPort = 7000 auth.token = "abc4645646asfasdfasdfas" [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 3022 ============== server: [common] # frp bindAddr = "0.0.0.0" bindPort = 7000 # token auth.token = "abc4645646asfasdfasdfas" # webServer.addr = "0.0.0.0" webServer.port = 7701 webServer.user = "admin" webServer.password = "Admin" # transport.tcpMux = false # frp log log.to = "./frps.log" log.level = "info" log.maxDays = 3 # vhostHTTPPort = 80 vhostHTTPSPort = 443 # subdomain_host = "google.com" ### Logs _No response_ ### 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

@hermitguo commented on GitHub (May 14, 2024):

The server can cancel the log, 0.58 version and 0.39 version is too different, the manual did not update in time, wasted a day to test out.

<!-- gh-comment-id:2110217218 --> @hermitguo commented on GitHub (May 14, 2024): The server can cancel the log, 0.58 version and 0.39 version is too different, the manual did not update in time, wasted a day to test out.
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#3322
No description provided.