DM-Ansible 部署报错,/bin/sh: /usr/bin/python: No such file or directory

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:v4
  • 【问题描述】:在做dm集群时走到了第九步部署集群安装执行命令

    出现了问题

dm-worker1 | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.100 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}
dm_portal | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.101 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}
grafana | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.101 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}
alertmanager | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.101 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}
prometheus | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.101 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}
dm_master | FAILED! => {
“changed”: false,
“module_stderr”: "Shared connection to 10.8.14.101 closed.\r
",
“module_stdout”: "/bin/sh: /usr/bin/python: No such file or directory\r
",
“msg”: “MODULE FAILURE”,
“rc”: 127
}

你好,tidb-ansible 依赖于 python 2.7,请检查下环境。

如果部署 4.0 版本,推荐使用 tiup ,tidb-ansible 后期将不再维护

https://pingcap.com/docs-cn/stable/how-to/deploy/orchestrated/tiup/

好的,我改一下试试,现在是python3.6

好的,有问题再继续跟帖,多谢

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。