【 TiDB 使用环境】生产环境
【 TiDB 版本】v4.0.10
【复现路径】tiup cluster scale-out tidb-anti xxxx.yaml
cat xxxx.yaml
tikv_servers:
- host: 10.65.66.201
- host: 10.65.14.152
检查日志发现:
cat /data/tidb/.tiup/logs/tiup-cluster-debug-2024-11-19-16-04-04.log
2024-11-19T16:04:04.560+0800 DEBUG TaskFinish {“task”: “ScaleConfig: cluster=tidb-anti, user=tidb, host=10.65.66.201, service=tikv-20160.service, deploy_dir=/data/tidb/deploy/tikv-20160, data_dir=[/data/tidb/data/tikv-20160], log_dir=/data/tidb/deploy/tikv-20160/log, cache_dir=/data/tidb/.tiup/storage/cluster/clusters/tidb-anti/config-cache”, “error”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.66.201:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1: check config failed”, “errorVerbose”: “check config failed\nexecutor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.66.201:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1\ngithub.com/pingcap/tiup/pkg/cluster/spec.checkConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/server_config.go:311\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).InitConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:302\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).ScaleConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:357\ngithub.com/pingcap/tiup/pkg/cluster/task.(*ScaleConfig).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/scale_config.go:50\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1594”}
2024-11-19T16:04:04.560+0800 DEBUG TaskFinish {“task”: “UserSSH: user=tidb, host=10.65.66.201\nScaleConfig: cluster=tidb-anti, user=tidb, host=10.65.66.201, service=tikv-20160.service, deploy_dir=/data/tidb/deploy/tikv-20160, data_dir=[/data/tidb/data/tikv-20160], log_dir=/data/tidb/deploy/tikv-20160/log, cache_dir=/data/tidb/.tiup/storage/cluster/clusters/tidb-anti/config-cache”, “error”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.66.201:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1: check config failed”, “errorVerbose”: “check config failed\nexecutor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.66.201:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1\ngithub.com/pingcap/tiup/pkg/cluster/spec.checkConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/server_config.go:311\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).InitConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:302\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).ScaleConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:357\ngithub.com/pingcap/tiup/pkg/cluster/task.(*ScaleConfig).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/scale_config.go:50\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1594”}
2024-11-19T16:04:04.560+0800 DEBUG TaskFinish {“task”: “UserSSH: user=tidb, host=10.65.66.201\nScaleConfig: cluster=tidb-anti, user=tidb, host=10.65.66.201, service=tikv-20160.service, deploy_dir=/data/tidb/deploy/tikv-20160, data_dir=[/data/tidb/data/tikv-20160], log_dir=/data/tidb/deploy/tikv-20160/log, cache_dir=/data/tidb/.tiup/storage/cluster/clusters/tidb-anti/config-cache\nUserSSH: user=tidb, host=10.65.14.152\nScaleConfig: cluster=tidb-anti, user=tidb, host=10.65.14.152, service=tikv-20160.service, deploy_dir=/data/tidb/deploy/tikv-20160, data_dir=[/data/tidb/data/tikv-20160], log_dir=/data/tidb/deploy/tikv-20160/log, cache_dir=/data/tidb/.tiup/storage/cluster/clusters/tidb-anti/config-cache”, “error”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.14.152:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1: check config failed”, “errorVerbose”: “check config failed\nexecutor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.14.152:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1\ngithub.com/pingcap/tiup/pkg/cluster/spec.checkConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/server_config.go:311\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).InitConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:302\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).ScaleConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:357\ngithub.com/pingcap/tiup/pkg/cluster/task.(*ScaleConfig).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/scale_config.go:50\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1594”}
2024-11-19T16:04:04.560+0800 INFO Execute command finished {“code”: 1, “error”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.14.152:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1: check config failed”, “errorVerbose”: “check config failed\nexecutor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.65.14.152:22’ {ssh_stderr: invalid configuration: entity not found\n, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /data/tidb/deploy/tikv-20160/bin/tikv-server --config-check --config=/data/tidb/deploy/tikv-20160/conf/tikv.toml --pd "" --data-dir "/data/tidb/data/tikv-20160"}, cause: Process exited with status 1\ngithub.com/pingcap/tiup/pkg/cluster/spec.checkConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/server_config.go:311\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).InitConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:302\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*TiKVInstance).ScaleConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/tikv.go:357\ngithub.com/pingcap/tiup/pkg/cluster/task.(*ScaleConfig).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/scale_config.go:50\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\ngithub.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1594”}