通过 tiup playground 启动 playground 报错,tidb 不能启动。
[root@local ~]# tiup playground
Starting component `playground`: /root/.tiup/components/playground/v1.4.1/tiup-playground
Use the latest stable version: v5.0.0
Specify version manually: tiup playground <version>
The stable version: tiup playground v4.0.0
The nightly version: tiup playground nightly
Playground Bootstrapping...
Start pd instance
Start tikv instance
Start tidb instance
Waiting for tidb instances ready
127.0.0.1:4000 ... ⠸
tidb quit: exit status 1 ■■■■
[2021/04/14 07:48:02.435 +00:00] [INFO] [systime_mon.go:25] ["start system time monitor"]
[2021/04/14 07:48:02.436 +00:00] [WARN] [base_client.go:270] ["[pd] failed to get cluster id"] [url=http://127.0.0.1:2379] [error="[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\" target:127.0.0.1:2379 status:TRANSIENT_FAILURE"]
[2021/04/14 07:48:03.437 +00:00] [WARN] [base_client.go:270] ["[pd] failed to get cluster id"] [url=http://127.0.0.1:2379] [error="[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\" target:127.0.0.1:2379 status:TRANSIENT_FAILURE"]
[2021/04/14 07:48:05.006 +00:00] [WARN] [base_client.go:270] ["[pd] failed to get cluster id"] [url=http://127.0.0.1:2379] [error="[PD:client:ErrClientGetMember]error:rpc error: code = Unknown desc = server not started target:127.0.0.1:2379 status:READY"]
[2021/04/14 07:48:06.038 +00:00] [INFO] [base_client.go:346] ["[pd] switch leader"] [new-leader=http://127.0.0.1:2379] [old-leader=]
[2021/04/14 07:48:06.038 +00:00] [INFO] [base_client.go:126] ["[pd] init cluster id"] [cluster-id=6950917029264981885]
[2021/04/14 07:48:06.038 +00:00] [INFO] [client.go:238] ["[pd] create tso dispatcher"] [dc-location=global]
[2021/04/14 07:48:06.054 +00:00] [INFO] [store.go:74] ["new store with retry success"]
[2021/04/14 07:48:48.419 +00:00] [WARN] [backoff.go:331] ["pdRPC backoffer.maxSleep 40000ms is exceeded, errors:\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T07:48:44.319305994Z\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T07:48:45.930201429Z\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T07:48:48.41905437Z"]
[2021/04/14 07:48:48.419 +00:00] [FATAL] [session.go:2396] ["check bootstrapped failed"] [error="[tikv:9001]PD server timeout"] [stack="github.com/pingcap/tidb/session.getStoreBootstrapVersion\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/session/session.go:2396\
github.com/pingcap/tidb/session.BootstrapSession\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/session/session.go:2168\
main.createStoreAndDomain\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/tidb-server/main.go:269\
main.main\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/tidb-server/main.go:183\
runtime.main\
\t/usr/local/go/src/runtime/proc.go:203"]
Waiting for tidb instances ready
127.0.0.1:4000 ... Error ■■■■
To view the dashboard: http://127.0.0.1:2379/dashboard
To view the Prometheus: http://127.0.0.1:9090
To view the Grafana: http://127.0.0.1:3000
<<<<<<<<<<<<<<<<
tiup playground 启动失败。请问是什么原因。如何解决。
我应该怎么调查。
[root@local tidb-0]# pwd
/root/.tiup/data/SUXgNhB/tidb-0
[root@local tidb-0]# cat tidb.log
[2021/04/14 08:18:55.002 +00:00] [INFO] [printer.go:33] ["Welcome to TiDB."] ["Release Version"=v5.0.0] [Edition=Community] ["Git Commit Hash"=bdac0885cd11bdf571aad9353bfc24e13554b91c] ["Git Branch"=heads/refs/tags/v5.0.0] ["UTC Build Time"="2021-04-06 16:36:29"] [GoVersion=go1.13] ["Race Enabled"=false] ["Check Table Before Drop"=false] ["TiKV Min Version"=v3.0.0-60965b006877ca7234adaced7890d7b029ed1306]
[2021/04/14 08:18:55.004 +00:00] [INFO] [trackerRecorder.go:28] ["Mem Profile Tracker started"]
[2021/04/14 08:18:55.018 +00:00] [INFO] [printer.go:47] ["loaded config"] [config="{\"host\":\"127.0.0.1\",\"advertise-address\":\"127.0.0.1\",\"port\":4000,\"cors\":\"\",\"store\":\"tikv\",\"path\":\"127.0.0.1:2379\",\"socket\":\"\",\"lease\":\"45s\",\"run-ddl\":true,\"split-table\":true,\"token-limit\":1000,\"oom-use-tmp-storage\":true,\"tmp-storage-path\":\"/tmp/0_tidb/MTI3LjAuMC4xOjQwMDAvMC4wLjAuMDoxMDA4MA==/tmp-storage\",\"oom-action\":\"cancel\",\"mem-quota-query\":1073741824,\"tmp-storage-quota\":-1,\"enable-streaming\":false,\"enable-batch-dml\":false,\"lower-case-table-names\":2,\"server-version\":\"\",\"log\":{\"level\":\"info\",\"format\":\"text\",\"disable-timestamp\":null,\"enable-timestamp\":null,\"disable-error-stack\":null,\"enable-error-stack\":null,\"file\":{\"filename\":\"/root/.tiup/data/SUXgNhB/tidb-0/tidb.log\",\"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,\"query-log-max-len\":4096,\"record-plan-in-slow-log\":1},\"security\":{\"skip-grant-table\":false,\"ssl-ca\":\"\",\"ssl-cert\":\"\",\"ssl-key\":\"\",\"require-secure-transport\":false,\"cluster-ssl-ca\":\"\",\"cluster-ssl-cert\":\"\",\"cluster-ssl-key\":\"\",\"cluster-verify-cn\":null,\"spilled-file-encryption-method\":\"plaintext\"},\"status\":{\"status-host\":\"0.0.0.0\",\"metrics-addr\":\"\",\"status-port\":10080,\"metrics-interval\":15,\"report-status\":true,\"record-db-qps\":false},\"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,\"cross-join\":true,\"run-auto-analyze\":true,\"agg-push-down-join\":false,\"committer-concurrency\":16,\"max-txn-ttl\":3600000,\"mem-profile-interval\":\"1m\",\"index-usage-sync-lease\":\"0s\",\"gogc\":100},\"prepared-plan-cache\":{\"enabled\":false,\"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},\"binlog\":{\"enable\":false,\"ignore-error\":false,\"write-timeout\":\"15s\",\"binlog-socket\":\"\",\"strategy\":\"range\"},\"compatible-kill-query\":false,\"plugin\":{\"dir\":\"\",\"load\":\"\"},\"pessimistic-txn\":{\"max-retry-count\":256},\"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,\"stmt-summary\":{\"enable\":true,\"enable-internal-query\":false,\"max-stmt-count\":200,\"max-sql-length\":4096,\"refresh-interval\":1800,\"history-size\":24},\"repair-mode\":false,\"repair-table-list\":[],\"isolation-read\":{\"engines\":[\"tikv\",\"tiflash\",\"tidb\"]},\"max-server-connections\":0,\"new_collations_enabled_on_first_bootstrap\":false,\"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}"]
[2021/04/14 08:18:55.022 +00:00] [INFO] [main.go:315] ["disable Prometheus push client"]
[2021/04/14 08:18:55.024 +00:00] [INFO] [store.go:68] ["new store"] [path=tikv://127.0.0.1:2379]
[2021/04/14 08:18:55.055 +00:00] [INFO] [client.go:214] ["[pd] create pd client with endpoints"] [pd-address="[127.0.0.1:2379]"]
[2021/04/14 08:18:55.031 +00:00] [INFO] [systime_mon.go:25] ["start system time monitor"]
[2021/04/14 08:18:55.235 +00:00] [WARN] [base_client.go:270] ["[pd] failed to get cluster id"] [url=http://127.0.0.1:2379] [error="[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\" target:127.0.0.1:2379 status:TRANSIENT_FAILURE"]
[2021/04/14 08:18:58.813 +00:00] [WARN] [base_client.go:270] ["[pd] failed to get cluster id"] [url=http://127.0.0.1:2379] [error="[PD:client:ErrClientGetMember]error:rpc error: code = Unknown desc = server not started target:127.0.0.1:2379 status:READY"]
[2021/04/14 08:19:01.274 +00:00] [INFO] [base_client.go:346] ["[pd] switch leader"] [new-leader=http://127.0.0.1:2379] [old-leader=]
[2021/04/14 08:19:01.290 +00:00] [INFO] [base_client.go:126] ["[pd] init cluster id"] [cluster-id=6950924986838612586]
[2021/04/14 08:19:01.300 +00:00] [INFO] [client.go:238] ["[pd] create tso dispatcher"] [dc-location=global]
[2021/04/14 08:19:01.522 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=122.396031ms]
[2021/04/14 08:19:01.534 +00:00] [INFO] [store.go:74] ["new store with retry success"]
[2021/04/14 08:19:01.621 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=73.864235ms]
[2021/04/14 08:19:03.610 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=138.615297ms]
[2021/04/14 08:19:05.540 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=104.907531ms]
[2021/04/14 08:19:07.577 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=115.685546ms]
[2021/04/14 08:19:09.570 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=117.730345ms]
[2021/04/14 08:19:11.605 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=158.35953ms]
[2021/04/14 08:19:13.741 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=241.661303ms]
[2021/04/14 08:19:15.540 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=110.225295ms]
[2021/04/14 08:19:17.537 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=105.105614ms]
[2021/04/14 08:19:19.587 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=134.562017ms]
[2021/04/14 08:19:21.623 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=199.271451ms]
[2021/04/14 08:19:23.701 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=201.491702ms]
[2021/04/14 08:19:25.839 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=309.392816ms]
[2021/04/14 08:19:27.572 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=129.473346ms]
[2021/04/14 08:19:29.521 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=90.238ms]
[2021/04/14 08:19:31.601 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=145.090542ms]
[2021/04/14 08:19:33.509 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=73.193159ms]
[2021/04/14 08:19:35.522 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=95.6393ms]
[2021/04/14 08:19:37.658 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=147.001518ms]
[2021/04/14 08:19:39.627 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=175.231713ms]
[2021/04/14 08:19:41.545 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=111.63953ms]
[2021/04/14 08:19:43.616 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=165.944483ms]
[2021/04/14 08:19:45.523 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=97.669013ms]
[2021/04/14 08:19:47.595 +00:00] [WARN] [pd.go:131] ["get timestamp too slow"] ["cost time"=158.778045ms]
[2021/04/14 08:19:48.195 +00:00] [WARN] [backoff.go:331] ["pdRPC backoffer.maxSleep 40000ms is exceeded, errors:\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T08:19:42.309021022Z\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T08:19:45.028975445Z\
region not found for key \"mBootstra\\xffpKey\\x00\\x00\\x00\\x00\\xfb\\x00\\x00\\x00\\x00\\x00\\x00\\x00s\" at 2021-04-14T08:19:48.178949945Z"]
[2021/04/14 08:19:48.218 +00:00] [FATAL] [session.go:2396] ["check bootstrapped failed"] [error="[tikv:9001]PD server timeout"] [stack="github.com/pingcap/tidb/session.getStoreBootstrapVersion\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/session/session.go:2396\
github.com/pingcap/tidb/session.BootstrapSession\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/session/session.go:2168\
main.createStoreAndDomain\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/tidb-server/main.go:269\
main.main\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/tidb-server/main.go:183\
runtime.main\
\t/usr/local/go/src/runtime/proc.go:203"]