Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 安装部署时改了默认4000端口,dashboard无法登陆
[TiDB Usage Environment] Production Environment
[TiDB Version] v4.0.8
[Reproduction Path] Changed the default port 4000 to 3306 during installation and deployment
[Encountered Problem: Problem Phenomenon and Impact]
The dashboard login interface can be opened, but entering the root password does not allow access.
The root password can be used to log into the TiDB database from the command line.
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]
Version 4.0.8 is already quite outdated. I suggest trying the relatively newer and more stable version 6.1.5.
We use this version in our production environment, and we haven’t used the default port either, and everything works fine.
If you want to continue using this version, you can check the running logs of the PD leader node. There should be some indicative information in there.
If you’re not sure, you can send the logs to us and we can help you take a look.
The dashboard can be logged in, so it should be fine. Could it be an issue with the client login method or the network? What error is being reported? Can you connect using telnet on port 3306?
Is there any error message when entering the password?
The root account for the dashboard is not the same as the root account for logging into the tidb-server, right?
It should be the root account of the database.
Is there no error message?
What error do you get when logging in? Can you share a screenshot?
The error screenshot is like this
Then in the corresponding PD log, it is like this
Are you using HAProxy on the frontend? Is IP transparency enabled?
I have always deployed and migrated according to 3306. It’s not a modification; it’s through the expansion method. I haven’t encountered this issue.
The front end uses HAProxy, but the login to the dashboard goes through the PD node instead of HAProxy. It shouldn’t be affected, right?
How is proxy-protocol.networks set?