TiDB 3.0.2 升级到4.0.2 报错,参数兼容问题tidb.toml contained unknown configuration options: log.file.log-rotate

Error: init config failed: 172.31.38.159:4000: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@172.31.38.159:22’ {ssh_stderr: , ssh_stdout: [2020/07/02 12:14:21.223 +00:00] [FATAL] [terror.go:348] [“unexpected error”] [error=“config file /data/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.2/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.2/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.2/go/src/github.com/pingcap/tidb/config/config.go:749\ main.main\ \t/home/jenkins/agent/workspace/tidb_v4.0.2/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/deploy/bin/tidb-server --config-check --config=/data/deploy/conf/tidb.toml }, cause: Process exited with status 1: check config failed

Verbose debug logs has been written to /home/tidb/logs/tiup-cluster-debug-2020-07-02-12-14-23.log.
Error: run /home/tidb/.tiup/components/cluster/v1.0.7/tiup-cluster (wd:/home/tidb/.tiup/data/S3aLRTb) failed: exit status 1

Error: fetch /timestamp.json from mirror(https://tiup-mirrors.pingcap.com) failed: download from https://tiup-mirrors.pingcap.com/timestamp.json failed: server returned 503 Service Unavailable

Verbose debug logs has been written to /home/tidb/logs/tiup-cluster-debug-2020-07-02-13-14-00.log.
Error: run /home/tidb/.tiup/components/cluster/v1.0.7/tiup-cluster (wd:/home/tidb/.tiup/data/S3aaJqz) failed: exit status 1

hi,
上传下 debug 完整日志,确认下是否为 tidb-ansible 导入 tiup,可以看下 FAQ:

上面问题参考https://asktug.com/t/topic/34898/6 解决,现在出现下面问题,能否修改 timed out 1m 参数?

    tikv 172.31.43.197:20160 failed to start: timed out waiting for port 20160 to be started after 1m0s, please check the log of the instance

Error: failed to upgrade: failed to start 172.31.43.197: tikv 172.31.43.197:20160 failed to start: timed out waiting for port 20160 to be started after 1m0s, please check the log of the instance: timed out waiting for port 20160 to be started after 1m0s

ok,一样的解决办法。

当前问题

需要看下报错节点的 log 是否有有用的信息,当前仅反映出,启动失败。

log没有看到有错误信息,目前已经没有问题了,重新执行升级命令Tikv可以重启成功,可能是tikv重启有点慢超过1分钟

好的 :+1: