TASK [bench : Create a new site] **********************************************************************************
task path: /tmp/.bench/playbooks/roles/bench/tasks/setup_erpnext.yml:17
<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 /var/tmp/ansible-tmp-1573616950.24262-215678952634960
” && echo ansible-tmp-1573616950.24262-215678952634960=“echo /var/tmp/ansible-tmp-1573616950.24262-215678952634960
” ) && sleep 0’
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/luyuan1890/.ansible/tmp/ansible-local-2694agurho_c/tmp0pip62e2 TO /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:luyuan:r-x /var/tmp/ansible-tmp-1573616950.24262-215678952634960/ /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘sudo -H -S -n -u luyuan /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-tifxxemodttvdauxygnnshftbyosdfhc ; /usr/bin/python3 /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py’”’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1573616950.24262-215678952634960/ > /dev/null 2>&1 && sleep 0’
The automatic installation script execution starts to go to this position and the error message is as follows:
PLAY RECAP ********************************************************************************************************
localhost : ok=83 changed=50 unreachable=0 failed=1 skipped=48 rescued=0 ignored=0
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 135, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=luyuan’]’ returned non-zero exit status 2
operating system:Ubuntu 18.04 LTS
hard disk:50g
RAM:3.75 GB
sudo apt-get install python-minimal
sudo apt-get install build-essential python-setuptools
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo adduser luyuan
sudo usermod -aG sudo luyuan
sudo python install.py --production --user luyuan
If you replace the following command, installing version 11 will succeed. The above error occurs with the default installation version 12.
sudo python install.py --production --user luyuan --site erpmp --version 11