为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
以下为报错信息:
【 TiDB 使用环境】 Ubuntu20.04
【概述】单机模拟生产环境
【背景】用户tidb有sudo权限,ssh可以免密登录,.ssh权限为744,.ssh里面的文件都有读写权限
所使用的命令为:
tiup cluster deploy ti-cluster v4.0.14 ~/topo.yaml --user tidb -p
topo.yaml配置文件为
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/tidb-deploy"
data_dir: "/tidb-data"
# # Monitored variables are applied to all the machines.
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
log.slow-threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
replication.location-labels: ["host"]
tiflash:
logger.level: "info"
pd_servers:
- host: 127.0.0.1
tidb_servers:
- host: 127.0.0.1
tikv_servers:
- host: 127.0.0.1
port: 20160
status_port: 20180
config:
server.labels: { host: "logic-host-1" }
- host: 127.0.0.1
port: 20161
status_port: 20181
config:
server.labels: { host: "logic-host-2" }
- host: 127.0.0.1
port: 20162
status_port: 20182
config:
server.labels: { host: "logic-host-3" }
tiflash_servers:
- host: 127.0.0.1
monitoring_servers:
- host: 127.0.0.1
grafana_servers:
- host: 127.0.0.1
相应的log为:
2021-08-26T10:49:10.738+0800 INFO Execute command finished {"code": 1, "error": "task.env_init.failed: Failed to initialize TiDB environment on remote host '127.0.0.1', cause: task.env_init.sub_command_failed: Failed to create '~/.ssh' directory for user 'tidb', cause: executor.ssh.execute_failed: Failed to execute command over SSH for 'tidb@127.0.0.1:22' {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c \"su - tidb -c 'mkdir -p ~/.ssh && chmod 700 ~/.ssh'\"}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain", "errorVerbose": "task.env_init.failed: Failed to initialize TiDB environment on remote host '127.0.0.1', cause: task.env_init.sub_command_failed: Failed to create '~/.ssh' directory for user 'tidb', cause: executor.ssh.execute_failed: Failed to execute command over SSH for 'tidb@127.0.0.1:22' {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c \"su - tidb -c 'mkdir -p ~/.ssh && chmod 700 ~/.ssh'\"}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain\
at github.com/pingcap/tiup/pkg/cluster/executor.(*EasySSHExecutor).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/executor/ssh.go:154\
at github.com/pingcap/tiup/pkg/cluster/executor.(*CheckPointExecutor).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/executor/checkpoint.go:85\
at github.com/pingcap/tiup/pkg/cluster/task.(*EnvInit).execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/env_init.go:81\
at github.com/pingcap/tiup/pkg/cluster/task.(*EnvInit).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/env_init.go:47\
at github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:85\
at github.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:87\
at github.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:134\
at runtime.goexit()\
\truntime/asm_amd64.s:1371"}