Installation frappe/env/bin error on Ubuntu 14.04

Hi All,
I am installing ERPNext using follwing commands.
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
python install.py --develop --user mushirahmed
I am getting below error. I am trying to install since last week please help.
TASK [bench : create a new default site] ********************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “new-site”, “site1.local”, “–admin-password”, “iphone”, “–mariadb-root-password”, “iphone”], “delta”: “0:00:01.123947”, “end”: “2018-03-07 18:56:56.711888”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-03-07 18:56:55.587941”, “stderr”: “INFO:bench.utils:creating new site site1.local\nINFO:bench.utils:/home/mushirahmed/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password iphone --admin_password iphone\n/bin/sh: 1: /home/mushirahmed/frappe-bench/env/bin/frappe: not found\nTraceback (most recent call last):\n File "/usr/local/bin/bench", line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File "/home/mushirahmed/.bench/bench/cli.py", line 40, in cli\n bench_command()\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 722, in call\n return self.main(*args, **kwargs)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 697, in main\n rv = self.invoke(ctx)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke\n return callback(*args, **kwargs)\n File "/home/mushirahmed/.bench/bench/commands/make.py", line 64, in new_site\n new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)\n File "/home/mushirahmed/.bench/bench/utils.py", line 195, in new_site\n ), cwd=os.path.join(bench_path, ‘sites’))\n File "/home/mushirahmed/.bench/bench/utils.py", line 145, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/mushirahmed/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password iphone --admin_password iphone”, “stderr_lines”: [“INFO:bench.utils:creating new site site1.local”, “INFO:bench.utils:/home/mushirahmed/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password iphone --admin_password iphone”, “/bin/sh: 1: /home/mushirahmed/frappe-bench/env/bin/frappe: not found”, “Traceback (most recent call last):”, " File "/usr/local/bin/bench", line 11, in “, " load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”, " File "/home/mushirahmed/.bench/bench/cli.py", line 40, in cli", " bench_command()“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 722, in call”, " return self.main(*args, **kwargs)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 697, in main”, " rv = self.invoke(ctx)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke”, " return _process_result(sub_ctx.command.invoke(sub_ctx))“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke”, " return ctx.invoke(self.callback, **ctx.params)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke”, " return callback(*args, **kwargs)“, " File "/home/mushirahmed/.bench/bench/commands/make.py", line 64, in new_site”, " new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)“, " File "/home/mushirahmed/.bench/bench/utils.py", line 195, in new_site”, " ), cwd=os.path.join(bench_path, ‘sites’))“, " File "/home/mushirahmed/.bench/bench/utils.py", line 145, in exec_cmd”, " raise CommandFailedError(cmd)", “bench.utils.CommandFailedError: /home/mushirahmed/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password iphone --admin_password iphone”], “stdout”: “frappe app is not installed. Run the following command to install frappe\nbench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”, “stdout_lines”: [“frappe app is not installed. Run the following command to install frappe”, “bench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

Hi and welcome @imushir

When an install fails perhaps remove the previous artifacts to start with a fresh clean system?

How do I uninstall erpnext my server? - #7 by PeterDF
"
Just delete your frappe-bench and bench-repo folders and remove the “frappe” user
"
These notes may help too Administrator's Guide Take 1 - #2 by digipime

1 Like

Dear John,
I had tired many times by deleting the frappe-bench and .bench repo.
Previous frappe-bench was 945MB now it goes to 1.3 GB.
Finally ERPNext installed by trying for last 8 days.
Thanks John for helping.

Regards,
Mushirahmed

Thanks I am glad you got over that hurdle Mushirahmed.

ERPNext is truly a remarkable ambitious product that is rewarding but often frustrating.

Hence what sustains this venture are those who contribute what they can to this forum.

We are pleased you are here and are welcome to join in the learning.

cheers

1 Like