Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: dashboard 用户登录认证失败:authenticate failed
[TiDB Usage Environment] Test
[TiDB Version]
V7.1.0
[Reproduction Path] Operations performed that led to the issue
The original cluster was shut down, and a new cluster was added. The PD nodes of the new cluster do not overlap with the PD nodes of the original cluster, so the port remains 2379, while other components have their ports modified.
IP passthrough settings were also configured:
proxy-protocol.networks: 1xx.xxx.xxx.183,1xx.xxx.xxx.184
The cluster was installed on the control machine on the TiDB server node without PD nodes.
Cluster type: tidb
Cluster name: testdlstrack
Cluster version: v7.1.0
Deploy user: tidb
SSH type: builtin
Dashboard URL: http://1xx.xxx.xxx.183:2379/dashboard
Grafana URL: http://1xx.xxx.xxx.181:3001
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
1xx.xxx.xxx.181:3001 grafana 1xx.xxx.xxx.181 3001 linux/x86_64 Up - /opt/tidbdls/tidb-deploy/grafana-3001
1xx.xxx.xxx.182:2379 pd 1xx.xxx.xxx.182 2379/2380 linux/x86_64 Up|L /opt/tidbdls/tidb-data/pd-2379 /opt/tidbdls/tidb-deploy/pd-2379
1xx.xxx.xxx.183:2379 pd 1xx.xxx.xxx.183 2379/2380 linux/x86_64 Up|UI /opt/tidbdls/tidb-data/pd-2379 /opt/tidbdls/tidb-deploy/pd-2379
1xx.xxx.xxx.184:2379 pd 1xx.xxx.xxx.184 2379/2380 linux/x86_64 Up /opt/tidbdls/tidb-data/pd-2379 /opt/tidbdls/tidb-deploy/pd-2379
1xx.xxx.xxx.181:9091 prometheus 1xx.xxx.xxx.181 9091/12021 linux/x86_64 Up /opt/tidbdls/tidb-data/prometheus-9091 /opt/tidbdls/tidb-deploy/prometheus-9091
1xx.xxx.xxx.181:4001 tidb 1xx.xxx.xxx.181 4001/10081 linux/x86_64 Up - /opt/tidbdls/tidb-deploy/tidb-4001
1xx.xxx.xxx.182:4001 tidb 1xx.xxx.xxx.182 4001/10081 linux/x86_64 Up - /opt/tidbdls/tidb-deploy/tidb-4001
1xx.xxx.xxx.183:20160 tikv 1xx.xxx.xxx.183 20160/20180 linux/x86_64 Up /opt/tidbdls/tidb-data/tikv-20160 /opt/tidbdls/tidb-deploy/tikv-20160
1xx.xxx.xxx.183:20161 tikv 1xx.xxx.xxx.183 20161/20181 linux/x86_64 Up /opt/tidbdls/tidb-data/tikv-20161 /opt/tidbdls/tidb-deploy/tikv-20161
1xx.xxx.xxx.184:20160 tikv 1xx.xxx.xxx.184 20160/20180 linux/x86_64 Up /opt/tidbdls/tidb-data/tikv-20160 /opt/tidbdls/tidb-deploy/tikv-20160
1xx.xxx.xxx.184:20161 tikv 1xx.xxx.xxx.184 20161/20181 linux/x86_64 Up /opt/tidbdls/tidb-data/tikv-20161 /opt/tidbdls/tidb-deploy/tikv-20161
[Encountered Issue: Issue Phenomenon and Impact]
The root password has been modified and can log in, and a new dashboardAdmin user was added but still cannot log in, with the same error.
[Resource Configuration] Enter the TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
Specific Error:
Login failed: authenticate failed, caused by: commands out of sync. You can’t run this command now
Specific Error Image: