Hi,
I have tried installing using the official easy install script on both Ubuntu 16.04 LTS as well as 18.04 LTS servers.
However, it seems that the installation fails at the same place on both the servers, and I am unable to understand exactly whats wrong.
For reference, this is the relevant section before the failure:
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-1573398304.1511483-265186457240093
” && echo ansible-tmp-1573398304.1511483-265186457240093=“echo /var/tmp/ansible-tmp-1573398304.1511483-265186457240093
” ) && sleep 0’
Using module file /usr/local/lib/python3.5/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-243712r8fc8g7/tmpnbjvduzr TO /var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:frappe:r-x /var/tmp/ansible-tmp-1573398304.1511483-265186457240093/ /var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘sudo -H -S -n -u frappe /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-izefwqpgprwnwzzpuoatszcanuediydb ; /usr/bin/python3 /var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py’”’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1573398304.1511483-265186457240093/ > /dev/null 2>&1 && sleep 0’
Lastly, this is the error I get:
The full traceback is:
Traceback (most recent call last):
File “/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py”, line 114, in
_ansiballz_main()
File “/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py”, line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File “/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py”, line 49, in invoke_module
imp.load_module(‘main’, mod, module, MOD_DESC)
File “/usr/lib/python3.5/imp.py”, line 234, in load_module
return load_source(name, filename, file)
File “/usr/lib/python3.5/imp.py”, line 170, in load_source
module = _exec(spec, sys.modules[name])
File “”, line 626, in _exec
File “”, line 665, in exec_module
File “”, line 222, in _call_with_frames_removed
File “/tmp/ansible_command_payload_ccjn92b6/main.py”, line 327, in
File “/tmp/ansible_command_payload_ccjn92b6/main.py”, line 253, in main
File “/usr/lib/python3.5/shlex.py”, line 273, in split
return list(lex)
File “/usr/lib/python3.5/shlex.py”, line 263, in next
token = self.get_token()
File “/usr/lib/python3.5/shlex.py”, line 90, in get_token
raw = self.read_token()
File “/usr/lib/python3.5/shlex.py”, line 166, in read_token
raise ValueError(“No closing quotation”)
ValueError: No closing quotation
fatal: [localhost]: FAILED! => {
“changed”: false,
“module_stderr”: “Traceback (most recent call last):\n File "/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py", line 114, in \n _ansiballz_main()\n File "/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/var/tmp/ansible-tmp-1573398304.1511483-265186457240093/AnsiballZ_command.py", line 49, in invoke_module\n imp.load_module(‘main’, mod, module, MOD_DESC)\n File "/usr/lib/python3.5/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/usr/lib/python3.5/imp.py", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File "", line 626, in _exec\n File "", line 665, in exec_module\n File "", line 222, in _call_with_frames_removed\n File "/tmp/ansible_command_payload_ccjn92b6/main.py", line 327, in \n File "/tmp/ansible_command_payload_ccjn92b6/main.py", line 253, in main\n File "/usr/lib/python3.5/shlex.py", line 273, in split\n return list(lex)\n File "/usr/lib/python3.5/shlex.py", line 263, in next\n token = self.get_token()\n File "/usr/lib/python3.5/shlex.py", line 90, in get_token\n raw = self.read_token()\n File "/usr/lib/python3.5/shlex.py", line 166, in read_token\n raise ValueError("No closing quotation")\nValueError: No closing quotation\n”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}
PLAY RECAP **********************************************************************************************************
localhost : ok=83 changed=49 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 541, 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=frappe’]’ returned non-zero exit status 2