mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2325] The token does not match after upgrading to version 0.36.2. #1844
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1844
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Supplementary information
Can you guess what caused this issue
Checklist:
@Dagsi commented on GitHub (Mar 22, 2021):
log file echo:register control error: token in login doesn't match token from configuration
@blizard863 commented on GitHub (Mar 23, 2021):
what is the versions of your frpc and frps ?
@ViRb3 commented on GitHub (Apr 7, 2021):
I can confirm. The problem is that if you run
./frpcor./frpswithout 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.inior./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.@blizard863 commented on GitHub (Apr 7, 2021):
./frpc will use the default value ./frpc.ini
./frps without default file.
@ViRb3 commented on GitHub (Apr 7, 2021):
Right, so
./frpcwill run in "ini mode", parsing the token from the ini file, while./frpswill 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"?@blizard863 commented on GitHub (Apr 8, 2021):
A good point.