bench
bench copied to clipboard
Easy Install error on Centos 7.8
Issue: Easy Install
Do the checklist before filing an issue:
- [x] Did you retain the logfile (path of logfile is shared while the script is run)? We definitely need the logfile to debug any easy install related issues.
- [ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
Distro Information (Required) Paste the contents of
- Linux erp.sens.info 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.8.2003 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.8.2003 (Core) CentOS Linux release 7.8.2003 (Core)
Command Run (Required) [root@erp ~]# python3 install.py --production
Log File (Required)
<127.0.0.1> EXEC /bin/sh -c '/bin/python3 /root/.ansible/tmp/ansible-tmp-1589876120.807924-216762937182087/AnsiballZ_yum.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1589876120.807924-216762937182087/ > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"autoremove": false,
"bugfix": false,
"conf_file": null,
"disable_excludes": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": [],
"download_dir": null,
"download_only": false,
"enable_plugin": [],
"enablerepo": [],
"exclude": [],
"install_repoquery": true,
"install_weak_deps": true,
"installroot": "/",
"list": null,
"lock_timeout": 30,
"name": [
"https://centos7.iuscommunity.org/ius-release.rpm"
],
"releasever": null,
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"update_only": false,
"use_backend": "auto",
"validate_certs": true
}
},
"msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the dnf
Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use the dnf
Ansible module instead."
}
PLAY RECAP ********************************************************************************************************************************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
Install script run at 08:15 on 2020-05-19
The easy install script is split into Ansible tasks. It looks like your log file here is missing the failing task's yml
file location. Could you attach a couple more lines above what you have pasted?
It should look something like this:
TASK [common : install pdf prerequisites for Ubuntu >= 18.04] ************************************************************************************************************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml:33
(This was output of an error I received on my Ubuntu box)
I am also receiving the same error on Centos 7.5, and on Centos 7.8 after upgrading. Happened twice on two different fresh installs of Centos 7
The task that fails is below.
TASK [common : Install IUS repo for python 3.6] **************************************************************************************** task path: /tmp/.bench/playbooks/roles/common/tasks/redhat_family.yml:3 Running yum as the backend for the yum action plugin <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243
" && echo ansible-tmp-1590115613.1569898-125591234721243="echo /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243
" ) && sleep 0' Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/packaging/os/yum.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-230096egqadn/tmp6acbomhc TO /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243/AnsiballZ_yum.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243/ /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243/AnsiballZ_yum.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/bin/python3 /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243/AnsiballZ_yum.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1590115613.1569898-125591234721243/ > /dev/null 2>&1 && sleep 0' fatal: [localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "allow_downgrade": false, "autoremove": false, "bugfix": false, "conf_file": null, "disable_excludes": null, "disable_gpg_check": false, "disable_plugin": [], "disablerepo": [], "download_dir": null, "download_only": false, "enable_plugin": [], "enablerepo": [], "exclude": [], "install_repoquery": true, "install_weak_deps": true, "installroot": "/", "list": null, "lock_timeout": 30, "name": [ "https://repo.ius.io/ius-release-el7.rpm" ], "releasever": null, "security": false, "skip_broken": false, "state": "present", "update_cache": false, "update_only": false, "use_backend": "auto", "validate_certs": true } }, "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use thednf
Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use thednf
Ansible module instead." }PLAY RECAP ***************************************************************************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
Install script run at 02:46 on 2020-05-22
I was able to get past this error by forcing the Ansible task to use Python 2 instead of Python 3 with the following lines in the tasks at bench/playbooks/roles/common/tasks/redhat_family.yml
vars:
ansible_python_interpreter: /usr/bin/python
however there were still issues further down the line related to Python 3 and Python 2 in CentOS.
were you able to install it on Centos7?