为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【TiDB 版本】
v3.0.2
【问题描述】
升级4.0出现错误:
2021-03-17T16:38:26.947+0800 INFO Execute command finished {“code”: 1, “error”: “init config failed: 192.168.5.160:4000: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@192.168.5.160:22’ {ssh_stderr: , ssh_stdout: [2021/03/17 16:38:09.363 +08:00] [FATAL] [terror.go:348] [“unexpected error”] [error=“config file /data/tidb/deploy/conf/tidb.toml contained unknown configuration options: log.file.log-rotate, pessimistic-txn.default, pessimistic-txn.ttl, txn-local-latches, txn-local-latches.capacity, txn-local-latches.enabled”] [stack=“github.com/pingcap/log.Fatal\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/pkg/mod/github.com/pingcap/log@v0.0.0-20200511115504-543df19646ad/global.go:59\ github.com/pingcap/parser/terror.MustNil\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/pkg/mod/github.com/pingcap/parser@v0.0.0-20200623164729-3a18f1e5dceb/terror/terror.go:348\ github.com/pingcap/tidb/config.InitializeConfig\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/src/github.com/pingcap/tidb/config/config.go:752\ main.main\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/src/github.com/pingcap/tidb/tidb-server/main.go:168\ runtime.main\ \t/usr/local/go/src/runtime/proc.go:203”]\ , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin /data/tidb/deploy/bin/tidb-server --config-check --config=/data/tidb/deploy/conf/tidb.toml }, cause: Process exited with status 1: check config failed”, “errorVerbose”: “check config failed\ executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@192.168.5.160:22’ {ssh_stderr: , ssh_stdout: [2021/03/17 16:38:09.363 +08:00] [FATAL] [terror.go:348] [“unexpected error”] [error=“config file /data/tidb/deploy/conf/tidb.toml contained unknown configuration options: log.file.log-rotate, pessimistic-txn.default, pessimistic-txn.ttl, txn-local-latches, txn-local-latches.capacity, txn-local-latches.enabled”] [stack=“github.com/pingcap/log.Fatal\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/pkg/mod/github.com/pingcap/log@v0.0.0-20200511115504-543df19646ad/global.go:59\ github.com/pingcap/parser/terror.MustNil\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/pkg/mod/github.com/pingcap/parser@v0.0.0-20200623164729-3a18f1e5dceb/terror/terror.go:348\ github.com/pingcap/tidb/config.InitializeConfig\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/src/github.com/pingcap/tidb/config/config.go:752\ main.main\ \t/home/jenkins/agent/workspace/tidb_v4.0.3/go/src/github.com/pingcap/tidb/tidb-server/main.go:168\ runtime.main\ \t/usr/local/go/src/runtime/proc.go:203”]\ , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin /data/tidb/deploy/bin/tidb-server --config-check --config=/data/tidb/deploy/conf/tidb.toml }, cause: Process exited with status 1\ngithub.com/pingcap/tiup/pkg/cluster/spec.checkConfig\ \tgithub.com/pingcap/tiup@/pkg/cluster/spec/server_config.go:268\ github.com/pingcap/tiup/pkg/cluster/spec.(*TiDBInstance).InitConfig\ \tgithub.com/pingcap/tiup@/pkg/cluster/spec/tidb.go:199\ github.com/pingcap/tiup/pkg/cluster/task.(*InitConfig).Execute\ \tgithub.com/pingcap/tiup@/pkg/cluster/task/init_config.go:49\ github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\ \tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:196\ github.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\ \tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:241\ runtime.goexit\ \truntime/asm_amd64.s:1357\ init config failed: 192.168.5.160:4000”}
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。