Following the instructions here
and they aren’t working. The install.py script seems to go wrong (tail below)
This is a 16Gb VM with 160Gb HDD
TASK [bench : Create a new site] *********************************************************************************************************************************************************************************
task path: /tmp/.bench/bench/playbooks/roles/bench/tasks/setup_erpnext.yml:18
<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
”&& mkdir /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135 && echo ansible-tmp-1647020190.1213863-21301-67799470681135=“echo /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135
” ) && sleep 0’
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-17773237b22_2/tmpo0uxl233 TO /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:frappe:r-x /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135/ /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135/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-hpxziotuntojglmlizkdsnqtwzztdajc ; /usr/bin/python3 /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135/AnsiballZ_command.py’”’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1647020190.1213863-21301-67799470681135/ > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: [
“bench”,
“new-site”,
“site1.local”,
“–admin-password”,
“admin”,
“–mariadb-root-password”,
“mysql”
],
“delta”: “0:00:02.172395”,
“end”: “2022-03-11 17:36:32.837291”,
“invocation”: {
“module_args”: {
“_raw_params”: “bench new-site site1.local --admin-password ‘admin’ --mariadb-root-password ‘mysql’”,
“_uses_shell”: false,
“argv”: null,
“chdir”: “/home/frappe/frappe-bench”,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 2,
“start”: “2022-03-11 17:36:30.664896”,
“stderr”: “Usage: bench [OPTIONS] COMMAND [ARGS]…\nTry ‘bench --help’ for help.\n\nError: No such command ‘new-site’.”,
“stderr_lines”: [
“Usage: bench [OPTIONS] COMMAND [ARGS]…”,
“Try ‘bench --help’ for help.”,
“”,
“Error: No such command ‘new-site’.”
],
“stdout”: “WARN: bench is installed in editable mode!\n\nThis is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench
\n\n/home/frappe/frappe-bench/env/bin/python: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)”,
“stdout_lines”: [
“WARN: bench is installed in editable mode!”,
“”,
“This is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench
”,
“”,
“/home/frappe/frappe-bench/env/bin/python: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)”
]
}
PLAY RECAP *******************************************************************************************************************************************************************************************************
localhost : ok=72 changed=15 unreachable=0 failed=1 skipped=67 rescued=0 ignored=0
Install script run at 17:33 on 2022-03-11