Error in setting up bench

sudo python install.py --production

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home /frappe/frappe-bench”, “–frappe-branch”, “master”, “–db-host”], “delta”: “0:00 :00.317526”, “end”: “2017-06-08 11:44:30.181390”, “failed”: true, “rc”: 2, “star t”: “2017-06-08 11:44:29.863864”, “stderr”: “Error: --db-host option requires an argument”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}

@skhendake please post full traceback.

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe/frappe-bench”, “–frappe-branch”, “master”, “–db-host”], “delta”: “0:00:00.312987”, “end”: “2017-06-08 11:52:09.995653”, “failed”: true, “invocation”: {“module_args”: {“_raw_params”: "bench init /home/frappe/frappe-bench --frappe-branch master --db-host ", “_uses_shell”: false, “chdir”: null, “creates”: “/home/frappe/frappe-bench”, “executable”: null, “removes”: null, “warn”: true}, “module_name”: “command”}, “rc”: 2, “start”: “2017-06-08 11:52:09.682666”, “stderr”: “Error: --db-host option requires an argument”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=31 changed=6 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 344, in
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 292, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘-vvvv’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

I have the same problem also.

This is the error message I get when I try to install ERPNext now.

TASK [locale : Check current locale] ********************************************************************************************************************************************************************************************************
task path: /tmp/.bench/playbooks/prerequisites/roles/locale/tasks/main.yml:2
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769” && echo ansible-tmp-1510068702.56-196144660405769=“echo /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769” ) && sleep 0’
<127.0.0.1> PUT /tmp/tmpHMAH6g TO /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769/command.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769/ /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769/command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1510068702.56-196144660405769/” > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: “localectl”,
“delta”: “0:00:00.052409”,
“end”: “2017-11-07 15:31:42.927985”,
“failed”: true,
“invocation”: {
“module_args”: {
“_raw_params”: “localectl”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“warn”: true
}
},
“rc”: 1,
“start”: “2017-11-07 15:31:42.875576”,
“stderr”: “Could not get properties: Connection timed out”,
“stderr_lines”: [
“Could not get properties: Connection timed out”
],
“stdout”: “”,
“stdout_lines”: []
}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 388, in
install_bench(args)
File “install.py”, line 114, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 326, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘-vvvv’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

Can some help us with explaining what this error is and how we can fix it?

Regards,
Ali