启动tidb时报错failed to start tidb: failed to start: 192.168.137.130 tidb-4000.service, please check the instance's log(/opt/tidb-deploy/tidb-4000/log) for more detail.: timed out waiting for port 4000 to be started after 2m0s

【 TiDB 使用环境】测试环境 openEuler22.03
【 TiDB 版本】v6.4.0
【复现路径】第一次安装单机版tidb
【遇到的问题:问题现象及影响】tidb启动不起来,报timed out waiting for port 4000 to be started after 2m0s
【资源配置】
【附件:截图/日志/监控】
image
image

[2022/11/23 17:37:00.621 +08:00] [INFO] [global.go:34] [“daemon became owner”] [id=63e1b010-bc76-4975-a0f6-58710090de56] [daemon-id=LogBackup::Advancer]
[2022/11/23 17:38:04.889 +08:00] [INFO] [region_request.go:794] [“mark store’s regions need be refill”] [id=2] [addr=192.168.137.130:20162] [error=“context deadline exceeded”]
[2022/11/23 17:38:04.889 +08:00] [WARN] [session.go:989] [“can not retry txn”] [label=internal] [error=“context deadline exceeded”] [IsBatchInsert=false] [IsPessimistic=false] [InRestrictedSQL=true] [tidb_retry_limit=10] [tidb_disable_txn_auto_retry=true]
[2022/11/23 17:38:04.889 +08:00] [WARN] [session.go:1005] [“commit failed”] [“finished txn”=“Txn{state=invalid}”] [error=“context deadline exceeded”]
[2022/11/23 17:38:04.890 +08:00] [WARN] [session.go:2191] [“run statement failed”] [schemaVersion=18] [error=“context deadline exceeded”] [session=“{\n "currDBName": "mysql",\n "id": 0,\n "status": 2,\n "strictMode": true,\n "user": null\n}”]
[2022/11/23 17:38:04.890 +08:00] [FATAL] [bootstrap.go:2192] [“mustExecute error”] [error=“context deadline exceeded”] [stack=“github.com/pingcap/tidb/session.mustExecute\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/bootstrap.go:2192\ngithub.com/pingcap/tidb/session.insertBuiltinBindInfoRow\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/bootstrap.go:1513\ngithub.com/pingcap/tidb/session.initBindInfoTable\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/bootstrap.go:1509\ngithub.com/pingcap/tidb/session.doDDLWorks\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/bootstrap.go:2044\ngithub.com/pingcap/tidb/session.bootstrap\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/bootstrap.go:455\ngithub.com/pingcap/tidb/session.runInBootstrapSession\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:3002\ngithub.com/pingcap/tidb/session.BootstrapSession\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2875\nmain.createStoreAndDomain\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:310\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:211\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”]

可以看下机器配置是不是太低了,可以看一下你tiup启动的时候 系统的io cpu什么是不是已经打满

配置拉到4核16线程 16g内存 还不行我看占用率也不高


重启或重装下或许就好了 :joy:

重新装了个虚拟机,配置调高,重新安装tidb,确实好了,谢谢各位