[TiDB Usage Environment] Production Environment
[TiDB Version] 7.1.1
[Reproduction Path] Restart any node in the cluster
[Encountered Problem: Problem Phenomenon and Impact]
Error: init config failed: 192.168.4.14:2379: transfer from /root/.tiup/storage/cluster/clusters/tidb-test/config-cache/pd-192.168.4.14-2379.service to /tmp/pd_5c639c96-93a9-4757-89a3-1195781e5ca7.service failed: failed to scp /root/.tiup/storage/cluster/clusters/tidb-test/config-cache/pd-192.168.4.14-2379.service to tidb@192.168.4.14:/tmp/pd_5c639c96-93a9-4757-89a3-1195781e5ca7.service: Process exited with status 1
The cluster maintains a set of public keys for mutual trust, located at .tiup/storage/cluster/clusters/<cluster_name>/ssh. However, if there is an issue with mutual trust, it should not start at all. Based on your description, it occasionally starts, so it doesn’t seem like a mutual trust issue.
Both the tidb user and the root user can change their passwords first and then configure mutual trust. It depends on which user you used to set up the cluster environment. Generally, configuring with the root user is sufficient. Given your current situation, it is recommended to establish mutual trust for both the root and tidb users.