[GH-ISSUE #3331] Token error if authenticate_new_work_conns = true #2666

Closed
opened 2026-05-05 13:43:15 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @dlinx on GitHub (Feb 23, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3331

Bug Description

Token error on client startup if authenticate_new_work_conns = true or authenticate_heartbeats = true

[E] [control.go:155] [ab7f3719eca08d92] StartWorkConn contains error: token in NewWorkConn doesn't match token from configuration

frpc Version

0.47.0

frps Version

0.47.0

System Architecture

Server: linux/amd64, Client: windows/amd64

Configurations

authenticate_new_work_conns = true
authenticate_heartbeats = true

Logs

2023/02/23 23:37:44 [I] [service.go:299] [ab7f3719eca08d92] login to server success, get run id [ab7f3719eca08d92], server udp port [7001]
2023/02/23 23:37:44 [I] [proxy_manager.go:142] [ab7f3719eca08d92] proxy added: [web]
2023/02/23 23:37:44 [I] [control.go:172] [ab7f3719eca08d92] [web] start proxy success
2023/02/23 23:37:44 [E] [control.go:155] [ab7f3719eca08d92] StartWorkConn contains error: token in NewWorkConn doesn't match token from configuration

Steps to reproduce

  1. Configure server with auth
  2. Try to run client (This will work)
  3. Enable authenticate_new_work_conns = true, and restart server.
  4. Restart client, (This will give token error)

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @dlinx on GitHub (Feb 23, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3331 ### Bug Description Token error on client startup if `authenticate_new_work_conns = true` or `authenticate_heartbeats = true` ``` [E] [control.go:155] [ab7f3719eca08d92] StartWorkConn contains error: token in NewWorkConn doesn't match token from configuration ``` ### frpc Version 0.47.0 ### frps Version 0.47.0 ### System Architecture Server: linux/amd64, Client: windows/amd64 ### Configurations authenticate_new_work_conns = true authenticate_heartbeats = true ### Logs 2023/02/23 23:37:44 [I] [service.go:299] [ab7f3719eca08d92] login to server success, get run id [ab7f3719eca08d92], server udp port [7001] 2023/02/23 23:37:44 [I] [proxy_manager.go:142] [ab7f3719eca08d92] proxy added: [web] 2023/02/23 23:37:44 [I] [control.go:172] [ab7f3719eca08d92] [web] start proxy success 2023/02/23 23:37:44 [E] [control.go:155] [ab7f3719eca08d92] StartWorkConn contains error: token in NewWorkConn doesn't match token from configuration ### Steps to reproduce 1. Configure server with auth 2. Try to run client (This will work) 3. Enable authenticate_new_work_conns = true, and restart server. 4. Restart client, (This will give token error) ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Feb 25, 2023):

https://github.com/fatedier/frp/blob/dev/conf/frpc_full.ini#LL33C37-L33C37

You should also set this parameters in frpc.ini

<!-- gh-comment-id:1445137784 --> @fatedier commented on GitHub (Feb 25, 2023): https://github.com/fatedier/frp/blob/dev/conf/frpc_full.ini#LL33C37-L33C37 You should also set this parameters in frpc.ini
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#2666
No description provided.