[GH-ISSUE #2325] The token does not match after upgrading to version 0.36.2. #1844

Closed
opened 2026-05-05 13:11:33 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Dagsi on GitHub (Mar 22, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2325

Originally assigned to: @blizard863 on GitHub.

[REQUIRED] hat version of frp are you using

Version:v0.36.2

[REQUIRED] What operating system and processor architecture are you using
OS:linux_arm64
CPU architecture:

[REQUIRED] description of errors

confile

log file

Steps to reproduce the issue

  1. Stop the program
  2. Replacement program
  3. Re-run, and did not modify the configuration file, but the token does not match.

Supplementary information

Can you guess what caused this issue

Checklist:

  • [] I included all information required in the sections above
  • [] I made sure there are no duplicates of this report (Use Search)
Originally created by @Dagsi on GitHub (Mar 22, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2325 Originally assigned to: @blizard863 on GitHub. <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version:v0.36.2 **[REQUIRED] What operating system and processor architecture are you using** OS:linux_arm64 CPU architecture: **[REQUIRED] description of errors** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 1. Stop the program 2. Replacement program 3. Re-run, and did not modify the configuration file, but the token does not match. **Supplementary information** **Can you guess what caused this issue** **Checklist**: <!--- Make sure you've completed the following steps (put an "X" between of brackets): --> - [] I included all information required in the sections above - [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
gitea-mirror 2026-05-05 13:11:33 -06:00
  • closed this issue
  • added the
    proposal
    label
Author
Owner

@Dagsi commented on GitHub (Mar 22, 2021):

log file echo:register control error: token in login doesn't match token from configuration

<!-- gh-comment-id:803879684 --> @Dagsi commented on GitHub (Mar 22, 2021): log file echo:register control error: token in login doesn't match token from configuration
Author
Owner

@blizard863 commented on GitHub (Mar 23, 2021):

what is the versions of your frpc and frps ?

<!-- gh-comment-id:804592020 --> @blizard863 commented on GitHub (Mar 23, 2021): what is the versions of your frpc and frps ?
Author
Owner

@ViRb3 commented on GitHub (Apr 7, 2021):

I can confirm. The problem is that if you run ./frpc or ./frps without any arguments, it will execute in "cmd mode" instead of "ini mode". If you are in "cmd mode", the token is parsed as an argument from the command line, which in your case is empty. If you explicitly run ./frpc -c fprc.ini or ./frps --config frps.ini, then the correct "ini mode" will be selected, and connection succeeds. I suppose the token mismatch error happens because the client will enter "cmd mode" by default, while the server will enter "ini mode" by default, or vise versa. This is definitely an issue that needs to be cleared though, as it was quite confusing to debug, and a lot of people have the same problem across online forums.

<!-- gh-comment-id:814527970 --> @ViRb3 commented on GitHub (Apr 7, 2021): I can confirm. The problem is that if you run `./frpc` or `./frps` without any arguments, it will execute in "cmd mode" instead of "ini mode". If you are in "cmd mode", the token is parsed as an argument from the command line, which in your case is empty. If you explicitly run `./frpc -c fprc.ini` or `./frps --config frps.ini`, then the correct "ini mode" will be selected, and connection succeeds. I suppose the token mismatch error happens because the client will enter "cmd mode" by default, while the server will enter "ini mode" by default, or vise versa. This is definitely an issue that needs to be cleared though, as it was quite confusing to debug, and a lot of people have the same problem across online forums.
Author
Owner

@blizard863 commented on GitHub (Apr 7, 2021):

./frpc will use the default value ./frpc.ini
./frps without default file.

<!-- gh-comment-id:814622186 --> @blizard863 commented on GitHub (Apr 7, 2021): ./frpc will use the default value ./frpc.ini ./frps without default file.
Author
Owner

@ViRb3 commented on GitHub (Apr 7, 2021):

Right, so ./frpc will run in "ini mode", parsing the token from the ini file, while ./frps will run in "cmd mode", not parsing the token, and that's where you get a mismatch error. These are two different default behaviors which is quite confusing in my opinion. Perhaps it's a good idea to make them both "ini by default" or "cmd by default"?

<!-- gh-comment-id:815154428 --> @ViRb3 commented on GitHub (Apr 7, 2021): Right, so `./frpc` will run in "ini mode", parsing the token from the ini file, while `./frps` will run in "cmd mode", not parsing the token, and that's where you get a mismatch error. These are two different default behaviors which is quite confusing in my opinion. Perhaps it's a good idea to make them both "ini by default" or "cmd by default"?
Author
Owner

@blizard863 commented on GitHub (Apr 8, 2021):

Right, so ./frpc will run in "ini mode", parsing the token from the ini file, while ./frps will run in "cmd mode", not parsing the token, and that's where you get a mismatch error. These are two different default behaviors which is quite confusing in my opinion. Perhaps it's a good idea to make them both "ini by default" or "cmd by default"?

A good point.

<!-- gh-comment-id:815406313 --> @blizard863 commented on GitHub (Apr 8, 2021): > Right, so `./frpc` will run in "ini mode", parsing the token from the ini file, while `./frps` will run in "cmd mode", not parsing the token, and that's where you get a mismatch error. These are two different default behaviors which is quite confusing in my opinion. Perhaps it's a good idea to make them both "ini by default" or "cmd by default"? A good point.
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#1844
No description provided.