fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
80.97k stars 12.78k forks source link

Unable to use token(0.58) #4219

Closed hermitguo closed 2 weeks ago

hermitguo commented 2 weeks ago

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. ...

Affected area

hermitguo commented 2 weeks ago

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.