Beginner Fails to Start TiUP Playground

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

Original topic: 新手使用tiup playground 启动失败

| username: Riversome1

[TiDB Usage Environment] Test
[TiDB Version] 7.5
[Reproduction Path] Execute tiup playground after installing tiup
[Encountered Problem: Phenomenon and Impact]

shumujin@shumujin-Ubuntu:~$ tiup playground
tiup is checking updates for component playground ...
Starting component `playground`: /home/shumujin/.tiup/components/playground/v1.14.1/tiup-playground
Using the version v7.5.0 for version constraint "".

If you'd like to use a TiDB version other than v7.5.0, cancel and retry with the following arguments:
	Specify version manually:   tiup playground <version>
	Specify version range:      tiup playground ^5
	The nightly version:        tiup playground nightly

Start pd instance:v7.5.0
Start tikv instance:v7.5.0
Start tidb instance:v7.5.0
Waiting for tidb instances ready
127.0.0.1:4000 ... Error
TiDB Dashboard:  http://127.0.0.1:2379/dashboard
Grafana:         http://127.0.0.1:3000

[Attachment: Screenshot/Log/Monitoring]
Manually executing ~/.tiup/components/tidb/v7.5.0/tidb-server shows the error

[2024/01/18 18:33:07.425 +08:00] [INFO] [main.go:449] ["disable Prometheus push client"]
[2024/01/18 18:33:07.425 +08:00] [INFO] [store.go:76] ["new store"] [path=unistore:///tmp/tidb]
[2024/01/18 18:33:07.425 +08:00] [INFO] [systime_mon.go:26] ["start system time monitor"]
[2024/01/18 18:33:07.425 +08:00] [ERROR] [cpu.go:65] [GetCgroupCPU] [error="error when read cpu quota from cgroup v2 at /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-67c0b0e0-3f62-4a88-9cdc-a02bb6141edb.scope/cpu.max: open /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-67c0b0e0-3f62-4a88-9cdc-a02bb6141edb.scope/cpu.max: no such file or directory"]
[2024/01/18 18:33:07.425 +08:00] [INFO] [levels.go:70] ["table file not referenced in MANIFEST"] [id=12]
[2024/01/18 18:33:07.425 +08:00] [INFO] [levels.go:70] ["table file not referenced in MANIFEST"] [id=5]
[2024/01/18 18:33:07.492 +08:00] [INFO] [store.go:82] ["new store with retry success"]
[2024/01/18 18:33:07.492 +08:00] [INFO] [region_cache.go:2682] ["change store resolve state"] [store=1] [addr=store1] [from=unresolved] [to=resolved] [liveness-state=reachable]
[2024/01/18 18:33:07.493 +08:00] [INFO] [tidb.go:80] ["new domain"] [store=44598ecb-76f2-4677-a865-6f9471c208d7] ["ddl lease"=45s] ["stats lease"=3s] ["index usage sync lease"=0s]
[2024/01/18 18:33:07.502 +08:00] [WARN] [controller.go:176] ["[resource group controller] server does not save config, load config failed"]
[2024/01/18 18:33:07.502 +08:00] [INFO] [controller.go:163] ["load resource controller config"] [config="{\"degraded-mode-wait-duration\":\"0s\",\"ltb-max-wait-duration\":\"30s\",\"request-unit\":{\"read-base-cost\":0.125,\"read-per-batch-base-cost\":0.5,\"read-cost-per-byte\":0.0000152587890625,\"write-base-cost\":1,\"write-per-batch-base-cost\":1,\"write-cost-per-byte\":0.0009765625,\"read-cpu-ms-cost\":0.3333333333333333}}"] [ru-config="{\"ReadBaseCost\":0.125,\"ReadPerBatchBaseCost\":0.5,\"ReadBytesCost\":0.0000152587890625,\"WriteBaseCost\":1,\"WritePerBatchBaseCost\":1,\"WriteBytesCost\":0.0009765625,\"CPUMsCost\":0.3333333333333333,\"LTBMaxWaitDuration\":30000000000,\"DegradedModeWaitDuration\":0}"]
[2024/01/18 18:33:07.518 +08:00] [INFO] [domain.go:295] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=53] ["start time"=14.531436ms]
[2024/01/18 18:33:07.518 +08:00] [INFO] [domain.go:610] ["full load and reset schema validator"]
[2024/01/18 18:33:07.518 +08:00] [INFO] [ddl.go:764] ["start DDL"] [category=ddl] [ID=9ade6e4f-fd9d-41f2-86dc-43e1df5d11d6] [runWorker=true]
[2024/01/18 18:33:07.518 +08:00] [INFO] [ddl.go:727] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true]
[2024/01/18 18:33:07.518 +08:00] [INFO] [delete_range.go:160] ["start delRange emulator"] [category=ddl]
[2024/01/18 18:33:07.518 +08:00] [WARN] [env.go:53] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false]
[2024/01/18 18:33:07.518 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSchemaInLoop]
[2024/01/18 18:33:07.518 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=mdlCheckLoop]
[2024/01/18 18:33:07.518 +08:00] [INFO] [job_table.go:325] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false]
[2024/01/18 18:33:07.518 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topNSlowQueryLoop]
[2024/01/18 18:33:07.518 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=infoSyncerKeeper]
[2024/01/18 18:33:07.518 +08:00] [INFO] [job_table.go:340] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none]
[2024/01/18 18:33:07.519 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper]
[2024/01/18 18:33:07.519 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayRecordFlushLoop]
[2024/01/18 18:33:07.519 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayWatchSyncLoop]
[2024/01/18 18:33:07.519 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topologySyncerKeeper]
[2024/01/18 18:33:07.519 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop]
[2024/01/18 18:33:07.519 +08:00] [WARN] [domain.go:1295] ["pd / etcd client not provided, won't begin Advancer."]
[2024/01/18 18:33:07.522 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop]
[2024/01/18 18:33:07.522 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=handleEvolvePlanTasksLoop]
[2024/01/18 18:33:07.522 +08:00] [WARN] [sysvar_cache.go:50] ["sysvar cache is empty, triggering rebuild"]
[2024/01/18 18:33:07.525 +08:00] [INFO] [sysvar.go:2553] ["set resource control"] [enable=true]
[2024/01/18 18:33:07.526 +08:00] [INFO] [controller.go:423] ["[resource group controller] create resource group cost controller"] [name=default]
[2024/01/18 18:33:07.534 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadPrivilegeInLoop]
[2024/01/18 18:33:07.536 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop]
[2024/01/18 18:33:07.537 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=PlanReplayerTaskCollectHandle]
[2024/01/18 18:33:07.537 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=PlanReplayerTaskDumpHandle]
[2024/01/18 18:33:07.537 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=dumpFileGcChecker]
[2024/01/18 18:33:07.537 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=HistoricalStatsWorker]
[2024/01/18 18:33:07.538 +08:00] [INFO] [domain.go:2040] ["PlanReplayerTaskCollectHandle started"]
[2024/01/18 18:33:07.538 +08:00] [INFO] [domain.go:2062] ["PlanReplayerTaskDumpHandle started"]
[2024/01/18 18:33:07.538 +08:00] [INFO] [domain.go:2094] ["dumpFileGcChecker started"]
[2024/01/18 18:33:07.538 +08:00] [INFO] [plan_replayer.go:392] ["planReplayerTaskDumpWorker started."]
[2024/01/18 18:33:07.538 +08:00] [INFO] [domain.go:2127] ["HistoricalStatsWorker started"]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadStatsWorker]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=updateStatsWorker]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=autoAnalyzeWorker]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=gcAnalyzeHistory]
[2024/01/18 18:33:07.538 +08:00] [INFO] [domain.go:2400] ["updateStatsWorker started."]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSigningCertLoop]
[2024/01/18 18:33:07.538 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=distTaskFrameworkLoop]
[2024/01/18 18:33:07.539 +08:00] [WARN] [misc.go:464] ["Automatic TLS Certificate creation is disabled"] []
[2024/01/18 18:33:07.539 +08:00] [INFO] [server.go:299] ["server is running MySQL protocol"] [addr=0.0.0.0:4000]
[2024/01/18 18:33:07.539 +08:00] [INFO] [task_manager.go:216] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4]
[2024/01/18 18:33:07.539 +08:00] [INFO] [task_manager.go:216] ["scale ttl worker"] [ttl-worker=job-manager] [ttl-worker=task-manager] [originalCount=0] [newCount=4]
[2024/01/18 18:33:07.539 +08:00] [INFO] [server.go:313] ["server is running MySQL protocol"] [socket=/tmp/tidb-4000.sock]
[2024/01/18 18:33:07.539 +08:00] [INFO] [http_status.go:96] ["for status and metrics report"] ["listening on addr"=0.0.0.0:10080]
[2024/01/18 18:33:07.539 +08:00] [WARN] [manager.go:111] ["start manager failed"] [scope=] ["retry times"=0] [error="[planner:1136]Column count doesn't match value count at row 1"]
[2024/01/18 18:33:07.539 +08:00] [INFO] [cpu.go:83] ["sql cpu collector started"]
[2024/01/18 18:33:07.544 +08:00] [INFO] [domain.go:2309] ["init stats info time"] [lite=true] ["take time"=6.351593ms]
[2024/01/18 18:33:08.540 +08:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl]
[2024/01/18 18:33:08.540 +08:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true]
[2024/01/18 18:33:09.519 +08:00] [INFO] [info.go:1149] [SetTiFlashGroupConfig]
[2024/01/18 18:33:12.547 +08:00] [WARN] [manager.go:111] ["start manager failed"] [scope=] ["retry times"=10] [error="[planner:1136]Column count doesn't match value count at row 1"]
[2024/01/18 18:33:17.556 +08:00] [WARN] [manager.go:111] ["start manager failed"] [scope=] ["retry times"=20] [error="[planner:1136]Column count doesn't match value count at row 1"]
[2024/01/18 18:33:22.562 +08:00] [ERROR] [domain.go:1483] ["dist task scheduler manager start failed"] [error="[planner:1136]Column count doesn't match value count at row 1"]
[2024/01/18 18:33:22.562 +08:00] [INFO] [wait_group_wrapper.go:137] ["background process exited"] [source=domain] [process=distTaskFrameworkLoop]
^C[2024/01/18 18:36:04.926 +08:00] [INFO] [signal_posix.go:54] ["got signal to exit"] [signal=interrupt]
[2024/01/18 18:36:04.927 +08:00] [INFO] [server.go:543] ["setting tidb-server to report unhealthy (shutting-down)"]
[2024/01/18 18:36:04.927 +08:00] [ERROR] [http_status.go:525] ["start status/rpc server error"] [error="accept tcp [::]:10080: use of closed network connection"]
[202
| username: Jellybean | Original post link

Do you get the same error when repeatedly trying to execute tiup playground?

| username: forever | Original post link

What about switching to a different version? Could it be an issue with the current version?

| username: TI表弟 | Original post link

Is the port being occupied? Check the error message from TiDB.

| username: Riversome1 | Original post link

Yes, it is also like this.

| username: Riversome1 | Original post link

The port is not occupied.

| username: 江湖故人 | Original post link

Which version of Ubuntu and what CPU?
The documentation shows that TiDB does not support Ubuntu on ARM.
TiDB Software and Hardware Environment Recommended Configuration | PingCAP Documentation Center

| username: Riversome1 | Original post link

22.04 LTS x86 Intel

| username: 江湖故人 | Original post link

Try this:
Activate Cgroup v2 on Ubuntu 20.04 LTS

| username: 江湖故人 | Original post link

If it really doesn’t work, you can use Docker.

| username: Jellybean | Original post link

TiDB will no longer support Ubuntu 16.04, but it supports Ubuntu 18.04 or higher versions.
Your version should be compatible. If there are issues with executing tiup playground, try tiup playground v7.5.0 --db 1 --pd 1 --kv 1.

| username: 春风十里 | Original post link

Switching to CentOS 7 or 8 is generally fine.

| username: wangccsy | Original post link

Initialization failed.

| username: 哈喽沃德 | Original post link

It is most likely an operating system issue. Does the CPU not support TiFlash?

| username: zhanggame1 | Original post link

Beginners might want to try single-node deployment.
TiDB Quick Start Guide | PingCAP Documentation Center

| username: cassblanca | Original post link

It seems to be a bug TestCPUValue and TestGetCgroupCPU always failed on non-docker env · Issue #49014 · pingcap/tidb · GitHub

| username: 哈喽沃德 | Original post link

Clean up the environment and start a new one.