Hi,
Trying to install production setup on a new server and I got this error with playbook when I ran
sudo python install.py --production
TASK [Check if bench_repo_path exists] ***********************************************************************************************************************
ok: [localhost]
TASK [move /tmp/.bench if it exists] *************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["cp", "-R", "/tmp/.bench", "/home/root/.bench"], "delta": "0:00:00.003325", "end": "2017-09-29 14:33:35.269744", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2017-09-29 14:33:35.266419", "stderr": "cp: cannot create directory ‘/home/root/.bench’: No such file or directory", "stderr_lines": ["cp: cannot create directory ‘/home/root/.bench’: No such file or directory"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry
PLAY RECAP ***************************************************************************************************************************************************
localhost : ok=21 changed=2 unreachable=0 failed=1
Traceback (most recent call last):
File "install.py", line 381, in <module>
install_bench(args)
File "install.py", line 111, in install_bench
run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 323, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'production/install.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
I had earlier installed on the same config without problem but then I deleted the frappe user and now I am trying to install again and hence getting this error I had tried it with both:
sudo python install.py --production
sudo python install.py --production --user aditya
Both are giving me the same error.