TIDB 无法启动,断电后无法启动

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【TiDB 版本】
v1.3.7

【问题描述】

[2021/04/06 16:20:04.062 +08:00] [WARN] [db.go:92] [“failed to find [SNAPSHOT-INDEX].snap.db”] [snapshot-index=8700089] [snapshot-file-path=/data/tidb-data/pd-2379/member/snap/000000000084c0b9.snap.db] [error=“snap: snapshot file doesn’t exist”]
[2021/04/06 16:20:04.063 +08:00] [PANIC] [server.go:454] [“failed to recover v3 backend from snapshot”] [error=“failed to find database snapshot file (snap: snapshot file doesn’t exist)”]
[2021/04/06 16:20:04.063 +08:00] [FATAL] [log.go:292] [panic] [recover="“invalid memory address or nil pointer dereference”"] [stack=“github.com/pingcap/log.Fatal\n\t/go/pkg/mod/github.com/pingcap/log@v0.0.0-20200511115504-543df19646ad/global.go:59\ngithub.com/tikv/pd/pkg/logutil.LogPanic\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/pd/pkg/logutil/log.go:292\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:679\nruntime.panicmem\n\t/usr/local/go/src/runtime/panic.go:199\nruntime.sigpanic\n\t/usr/local/go/src/runtime/signal_unix.go:394\ngo.etcd.io/etcd/etcdserver.NewServer.func1\n\t/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/etcdserver/server.go:335\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:679\ngo.uber.org/zap/zapcore.(*CheckedEntry).Write\n\t/go/pkg/mod/go.uber.org/zap@v1.15.0/zapcore/entry.go:230\ngo.uber.org/zap.(*Logger).Panic\n\t/go/pkg/mod/go.uber.org/zap@v1.15.0/logger.go:225\ngo.etcd.io/etcd/etcdserver.NewServer\n\t/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/etcdserver/server.go:454\ngo.etcd.io/etcd/embed.StartEtcd\n\t/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/embed/etcd.go:211\ngithub.com/tikv/pd/server.(*Server).startEtcd\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/pd/server/server.go:264\ngithub.com/tikv/pd/server.(*Server).Run\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/pd/server/server.go:454\nmain.main\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:119\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:203”]


若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

可以参考下这个帖子尝试解决下: