frappe / frappe/easy_install

Easy Install is show an error at the end of command

Open
#9 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Issue: Easy Install

**Command I run**
steps that I used :
1- sudo -i
2- sudo apt update && sudo apt upgrade --yes
3- sudo adduser frappe
4- sudo usermod -aG sudo frappe
5- su - frappe
6- export LC_ALL=C.UTF-8
7- wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
8- sudo python3 install.py --verbose --production --frappe-branch version-13 --erpnext-branch version-13 --user frappe

-------------
**All command run very well, but the number 8 finally show this error :**

fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": [
"bench",
"init",
"/home/frappe/frappe-bench",
"--frappe-path",
"https://github.com/frappe/frappe",
"--frappe-branch",
"version-13",
"--python",
"python3"
],
"delta": "0:00:00.287644",
"end": "2021-12-28 09:20:43.892713",
"invocation": {
"module_args": {
"_raw_params": "bench init /home/frappe/frappe-bench --frappe-path https://github.com/frappe/frappe --frappe-branch version-13 --python python3",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": "/home/frappe/frappe-bench",
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2021-12-28 09:20:43.605069",
"stderr": "Traceback (most recent call last):\n File \"/usr/bin/bench\", line 33, in \n sys.exit(load_entry_point('frappe-bench', 'console_scripts', 'bench')())\n
File \"/u
sr/bin/bench\", line 22, in importlib_load_entry_point\n for entry_point in distribution(dist_name).entry_points\n File \"/usr/lib/python3.8/importlib/metadata.py\", line 503, in distribution\n return Distribution.from_name(distribution_name)\n File \"/usr/lib/python3.8/importlib/metadata.py\", line 177, in from_name\n raise PackageNotFoundError(name)\nimportlib.metadata.PackageNotFoundError: frappe-bench",
"stderr_lines": [
"Traceback (most recent call last):",
" File \"/usr/bin/bench\", line 33, in ",
" sys.exit(load_entry_point('frappe-bench', 'console_scripts', 'bench')())",
" File \"/usr/bin/bench\", line 22, in importlib_load_entry_point",
" for entry_point in distribution(dist_name).entry_points",
" File \"/usr/lib/python3.8/importlib/metadata.py\", line 503, in distribution",
" return Distribution.from_name(distribution_name)",
" File \"/usr/lib/python3.8/importlib/metadata.py\", line 177, in from_name",
" raise PackageNotFoundError(name)",
"importlib.metadata.PackageNotFoundError: frappe-bench"
],
"stdout": "",
"stdout_lines": []
}

PLAY RECAP *********************************************************************
localhost : ok=67 changed=18 unreachable=0 failed=1 skipped=63 rescued=0 ignored=0

Traceback (most recent call last):
File "install.py", line 497, in
install_bench(args)
File "install.py", line 278, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 413, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File "/usr/lib/python3.8/subprocess.py", line 364, 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.

-------------------------------------------
[easy-install__2021-12-27__10-44.log](https://github.com/frappe/bench/files/7784067/easy-install__2021-12-27__10-44.log)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.