Error: Failed to initialize TiDB. environment on remote (task;env_init. failed)
caused by: Failed to create new system user ‘tidb’ on remote host
caused by: Failed to execute command over SsH for )
caused by: dial tcp : i/o timeout
这怎么办啊?
想测试centos6能不能装tidb5结果报错了
ssh root@192.168.0.164 ,用你的密码是否能直接登录啊
啦啦啦啦啦
2023 年4 月 27 日 01:39
3
我以前用centos 6也不行,按照官方推荐用7.3及以上吧
建议还是按照官方系统做测试,centos 6不在支持的列表
建议在各个节点创建好tidb用户,指定tidb用户部署试试
我是咖啡哥
2023 年4 月 27 日 02:31
7
官方要求centos7.3+, centos 7和6命令差别很大,建议还是用7的来。
配置文件这样写的
global:
user: “tidb”
ssh_port: 22
deploy_dir: “/tidb/tidb-deploy”
data_dir: “/tidb/tidb-data”
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
Failed to create new system user ‘tidb’ on remote host
所有节点都新增了tidb这个用户吗?
所以节点是啥意思,我下面的IP填的都是本机
pd_servers:
host: 192.168.0.16
client_port: 2379
tidb_servers:
tikv_servers:
host: 192.168.0.16 #主机IP
port: 20160
status_port: 20180
config:
server.labels: { host: “logic-host-1” }
tiflash_servers:
monitoring_servers:
grafana_servers:
host: 192.168.0.16
port: 3000
改成root就报这个
caused by: Failed to create ‘~/.ssh’ directory for user ‘root’