[问题澄清]
tiup deploy 执行报错
{“code”: 1, “error”: “task.env_init.failed: Failed to initialize TiDB environment on remote host ‘10.10.xxx.51’, cause: module.user.user_add_failed: Failed to create new system user ‘search’ on remote host, cause: executor.ssh.execute_failed: Failed to execute com mand over SSH for ‘search@10.10.xxx.51:22’
[原因分析]
1.ssh目录权限不正确
2.authorized_keys文件权限
3.使用的用户没有 sudo 权限
[解决方案]
1.免密配置好。使用密钥的,将中控机密钥copy到各个机器上
2.ssh目录权限744,authorized_keys文件权限600
3.用户添加 sudo 权限
[参考案例]