How to Resolve Abnormal TiDB-Server Restarts?

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

Original topic: tidb-server 重启异常如何解决?

| username: tidb尝鲜者

[TiDB Usage Environment] Production Test Environment
[TiDB Version] 6.5.3
[Reproduction Path] What operations were performed when the issue occurred
Shut down the service and power off
tiup cluster stop tidb
shutdown
Auto-start on boot
[Encountered Issue: Problem Phenomenon and Impact]
tidb-server FATAL cannot start
[Resource Configuration]
Single machine 1 pd 1 tidb 3 tikv 1 tiflash
[Attachments: Screenshots/Logs/Monitoring]
[FATAL] [terror.go:300] [“unexpected error”] [error=“[meta:1050]table already exists”] [stack=“github.com/pingcap/tidb/parser/terror.MustNil\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:300\nmain.createStoreAndDomain\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:319\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:218\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”] [stack=“github.com/pingcap/tidb/parser/terror.MustNil\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:300\nmain.createStoreAndDomain\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:319\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:218\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”]

| username: tidb菜鸟一只 | Original post link

Is it just a restart? No upgrade? Are PD and TiKV up now, but only TiDB is not up?

| username: tidb尝鲜者 | Original post link

First executed stop and shut down, then started again after a night, only tidb-server couldn’t start, other components started!

| username: Fly-bird | Original post link

Try running start -N on the monitor node.

| username: tidb尝鲜者 | Original post link

The same error occurred.

| username: tidb尝鲜者 | Original post link

The cause of the issue was not found, and it’s unclear whether it was a bug. After upgrading to version 7.1.1, it can start normally!

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.