tidb无法启动

【 TiDB 使用环境】测试环境
tidb启动不到1分钟就挂了。

之前有同事用如下命令重建了pd
docker run -d --name pd1 -p 2379:2379 -p 2380:2380 -v /etc/localtime:/etc/localtime:ro -v /opt/aspire/ucsp/tidb:/tidb 10.12.7.210:1443/common/pd:latest --data-dir=“/tidb/pd1” --client-urls=“http://0.0.0.0:2379” --advertise-client-urls=“http://0.0.0.0:2379” --peer-urls=“http://0.0.0.0:2380” --advertise-peer-urls=“http://0.0.0.0:2380” --initial-cluster=“pd1=http://10.12.7.210:2380

现状及日志如下:
[root@ucsp-rancher-01 ~]# docker ps -a|grep latest
1675871534b7 10.12.7.210:1443/common/pd:latest “/pd-server --data-d…” 43 minutes ago Up 43 minutes 0.0.0.0:2379-2380->2379-2380/tcp pd1
baa8954bccbb 10.12.7.210:1443/common/tidb:latest “/tidb-server --stor…” 44 minutes ago Exited (1) 41 minutes ago tidb
107a431eac74 10.12.7.210:1443/common/tikv:latest “/tikv-server --addr…” 45 minutes ago Up 45 minutes 20160/tcp, 0.0.0.0:20162->20162/tcp tikv3
0bf14b3c093f 10.12.7.210:1443/common/tikv:latest “/tikv-server --addr…” 45 minutes ago Up 45 minutes 20160/tcp, 0.0.0.0:20161->20161/tcp tikv2
efbce95e99b3 10.12.7.210:1443/common/tikv:latest “/tikv-server --addr…” 45 minutes ago Up 45 minutes 0.0.0.0:20160->20160/tcp tikv1
[root@ucsp-rancher-01 ~]#

[root@ucsp-rancher-01 ~]# docker logs baa8954bccbb
[2025/01/21 03:16:22.039 +00:00] [INFO] [cpuprofile.go:115] [“parallel cpu profiler started”]
[2025/01/21 03:16:22.040 +00:00] [INFO] [printer.go:34] [“Welcome to TiDB.”] [“Release Version”=v6.1.2] [Edition=Community] [“Git Commit Hash”=5d2030e1d19629b71811c3f14514bad7ed63261a] [“Git Branch”=heads/refs/tags/v6.1.2] [“UTC Build Time”=“2022-10-18 08:04:48”] [GoVersion=go1.18.5] [“Race Enabled”=false] [“Check Table Before Drop”=false] [“TiKV Min Version”=v3.0.0-60965b006877ca7234adaced7890d7b029ed1306]
[2025/01/21 03:16:22.041 +00:00] [INFO] [printer.go:48] [“loaded config”] [config=“{"host":"0.0.0.0","advertise-address":"172.17.0.5","port":4000,"cors":"","store":"tikv","path":"10.12.7.210:2379","socket":"/tmp/tidb-4000.sock","lease":"45s","run-ddl":true,"split-table":true,"token-limit":1000,"oom-use-tmp-storage":true,"tmp-storage-path":"/tmp/0_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage","tmp-storage-quota":-1,"server-version":"","version-comment":"","tidb-edition":"","tidb-release-version":"","log":{"level":"info","format":"text","disable-timestamp":null,"enable-timestamp":null,"disable-error-stack":null,"enable-error-stack":null,"file":{"filename":"","max-size":300,"max-days":0,"max-backups":0},"enable-slow-log":true,"slow-query-file":"tidb-slow.log","slow-threshold":300,"expensive-threshold":10000,"record-plan-in-slow-log":1,"query-log-max-len":4096},"instance":{"tidb_general_log":false,"tidb_pprof_sql_cpu":false,"ddl_slow_threshold":300,"tidb_expensive_query_time_threshold":60,"tidb_enable_slow_log":true,"tidb_slow_log_threshold":300,"tidb_record_plan_in_slow_log":1,"tidb_check_mb4_value_in_utf8":true,"tidb_force_priority":"NO_PRIORITY","tidb_memory_usage_alarm_ratio":0.8,"tidb_enable_collect_execution_info":true,"plugin_dir":"/data/deploy/plugin","plugin_load":""},"security":{"skip-grant-table":false,"ssl-ca":"","ssl-cert":"","ssl-key":"","cluster-ssl-ca":"","cluster-ssl-cert":"","cluster-ssl-key":"","cluster-verify-cn":null,"spilled-file-encryption-method":"plaintext","enable-sem":false,"auto-tls":false,"tls-version":"","rsa-key-size":4096,"secure-bootstrap":false},"status":{"status-host":"0.0.0.0","metrics-addr":"","status-port":10080,"metrics-interval":15,"report-status":true,"record-db-qps":false,"grpc-keepalive-time":10,"grpc-keepalive-timeout":3,"grpc-concurrent-streams":1024,"grpc-initial-window-size":2097152,"grpc-max-send-msg-size":2147483647},"performance":{"max-procs":0,"max-memory":0,"server-memory-quota":0,"memory-usage-alarm-ratio":0.8,"stats-lease":"3s","stmt-count-limit":5000,"feedback-probability":0,"query-feedback-limit":512,"pseudo-estimate-ratio":0.8,"force-priority":"NO_PRIORITY","bind-info-lease":"3s","txn-entry-size-limit":6291456,"txn-total-size-limit":104857600,"tcp-keep-alive":true,"tcp-no-delay":true,"cross-join":true,"distinct-agg-push-down":false,"projection-push-down":false,"max-txn-ttl":3600000,"index-usage-sync-lease":"0s","plan-replayer-gc-lease":"10m","gogc":100,"enforce-mpp":false,"stats-load-concurrency":5,"stats-load-queue-size":1000,"enable-stats-cache-mem-quota":false,"committer-concurrency":128,"run-auto-analyze":true},"prepared-plan-cache":{"enabled":true,"capacity":100,"memory-guard-ratio":0.1},"opentracing":{"enable":false,"rpc-metrics":false,"sampler":{"type":"const","param":1,"sampling-server-url":"","max-operations":0,"sampling-refresh-interval":0},"reporter":{"queue-size":0,"buffer-flush-interval":0,"log-spans":false,"local-agent-host-port":""}},"proxy-protocol":{"networks":"","header-timeout":5},"pd-client":{"pd-server-timeout":3},"tikv-client":{"grpc-connection-count":4,"grpc-keepalive-time":10,"grpc-keepalive-timeout":3,"grpc-compression-type":"none","commit-timeout":"41s","async-commit":{"keys-limit":256,"total-key-size-limit":4096,"safe-window":2000000000,"allowed-clock-drift":500000000},"max-batch-size":128,"overload-threshold":200,"max-batch-wait-time":0,"batch-wait-size":8,"enable-chunk-rpc":true,"region-cache-ttl":600,"store-limit":0,"store-liveness-timeout":"1s","copr-cache":{"capacity-mb":1000},"ttl-refreshed-txn-size":33554432,"resolve-lock-lite-threshold":16},"binlog":{"enable":false,"ignore-error":false,"write-timeout":"15s","binlog-socket":"","strategy":"range"},"compatible-kill-query":false,"plugin":{"dir":"/data/deploy/plugin","load":""},"pessimistic-txn":{"max-retry-count":256,"deadlock-history-capacity":10,"deadlock-history-collect-retryable":false,"pessimistic-auto-commit":false},"check-mb4-value-in-utf8":true,"max-index-length":3072,"index-limit":64,"table-column-count-limit":1017,"graceful-wait-before-shutdown":0,"alter-primary-key":false,"treat-old-version-utf8-as-utf8mb4":true,"enable-table-lock":false,"delay-clean-table-lock":0,"split-region-max-num":1000,"top-sql":{"receiver-address":""},"repair-mode":false,"repair-table-list":,"isolation-read":{"engines":["tikv","tiflash","tidb"]},"max-server-connections":0,"new_collations_enabled_on_first_bootstrap":true,"experimental":{"allow-expression-index":false},"enable-collect-execution-info":true,"skip-register-to-dashboard":false,"enable-telemetry":true,"labels":{},"enable-global-index":false,"deprecate-integer-display-length":false,"enable-enum-length-limit":true,"stores-refresh-interval":60,"enable-tcp4-only":false,"enable-forwarding":false,"max-ballast-object-size":0,"ballast-object-size":0,"enable-global-kill":true,"enable-batch-dml":false,"mem-quota-query":1073741824,"oom-action":"cancel"}”]
[2025/01/21 03:16:22.041 +00:00] [INFO] [main.go:343] [“disable Prometheus push client”]
[2025/01/21 03:16:22.041 +00:00] [INFO] [store.go:74] [“new store”] [path=tikv://10.12.7.210:2379]
[2025/01/21 03:16:22.041 +00:00] [INFO] [client.go:392] [“[pd] create pd client with endpoints”] [pd-address=“[10.12.7.210:2379]”]
[2025/01/21 03:16:22.041 +00:00] [INFO] [systime_mon.go:26] [“start system time monitor”]
[2025/01/21 03:16:23.043 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:24.044 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:26.047 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:27.048 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:29.051 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:30.052 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:31.053 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:33.055 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:34.056 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:35.056 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:36.057 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:37.058 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:39.061 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:40.062 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:41.063 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:42.063 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:43.064 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:44.065 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:45.066 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:47.067 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:48.068 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:49.069 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:50.069 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:51.070 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:52.071 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:53.071 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:54.072 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:55.073 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:57.075 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:58.076 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:16:59.076 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:00.076 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:01.077 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:02.078 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:03.079 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:04.079 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:05.079 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:06.080 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:07.081 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:08.082 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:09.083 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:10.084 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:11.084 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:12.085 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:13.086 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:14.086 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:16.089 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:17.090 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:18.090 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:19.091 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:20.091 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:21.092 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:22.093 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]
[2025/01/21 03:17:23.095 +00:00] [WARN] [base_client.go:251] [“[pd] failed to get cluster id”] [url=http://10.12.7.210:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 10.12.7.210:2379: connect: connection refused" target:10.12.7.210:2379 status:TRANSIENT_FAILURE”]

connect: connection refused

这还不是没连上,是直接被拒绝了。查网络。

10.12.7.210:2379

这个地址在浏览器里面能打开吗?

日志中反复出现 [pd] failed to get cluster idconnection refused 的错误,表明 TiDB 无法连接到 PD。
这可能是因为 PD 服务未正常启动,或者 PD 的配置(如地址或端口)不正确。

测试环境可以按照这种办法恢复pd

https://docs.pingcap.com/zh/tidb/stable/pd-recover#pd-recover-使用文档