Changed the default 4000 port during installation and deployment, dashboard cannot be accessed

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 安装部署时改了默认4000端口,dashboard无法登陆

| username: hanson

[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]

| username: Jellybean | Original post link

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.

| username: Jellybean | Original post link

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.

| username: 裤衩儿飞上天 | Original post link

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?

| username: 胡杨树旁 | Original post link

Is there any error message when entering the password?

| username: DBRE | Original post link

The root account for the dashboard is not the same as the root account for logging into the tidb-server, right?

| username: 胡杨树旁 | Original post link

It should be the root account of the database.

| username: liuis | Original post link

Is there no error message?

| username: TiDBer_pkQ5q1l0 | Original post link

4.0.8 is too old.

| username: RenlySir | Original post link

What error do you get when logging in? Can you share a screenshot?

| username: hanson | Original post link

The error screenshot is like this

Then in the corresponding PD log, it is like this

| username: 裤衩儿飞上天 | Original post link

Are you using HAProxy on the frontend? Is IP transparency enabled?

| username: xingzhenxiang | Original post link

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.

| username: hanson | Original post link

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?

| username: 裤衩儿飞上天 | Original post link

How is proxy-protocol.networks set?