Checking problems in bench [CLOSED]

I was just checking the command:

bench frappe --doctor

I have got the following result:

frappe app is not installed. Run the following command to install frappe
bench get-app frappe https://github.com/frappe/frappe.git
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.92', 'console_scripts', 'bench')()
File "/home/reza/bench-repo/bench/cli.py", line 46, in cli
return old_frappe_cli()
File "/home/reza/bench-repo/bench/cli.py", line 98, in old_frappe_cli
os.execv(f, [f] + sys.argv[2:])
OSError: [Errno 2] No such file or directory

What does it mean ? I had installed the frappe app i have developed- Library Management in my site libray, while developing, by this command-

bench --site library install-app library_management

Just addition: Same log showing when i am trying to clear the cache-

bench frappe --clear_cache

I have tried the solution as the log says-

bench get-app frappe https://github.com/frappe/frappe.git

But it resembles this error:

fatal: destination path 'frappe' already exists and is not an empty directory.
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
  load_entry_point('bench==0.92', 'console_scripts', 'bench')()
  File "/home/reza/bench-repo/bench/cli.py", line 60, in cli
bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
  File "/home/reza/bench-repo/bench/cli.py", line 174, in get_app
_get_app(name, git_url, branch=branch)
  File "/home/reza/bench-repo/bench/app.py", line 52, in get_app
cwd=os.path.join(bench, 'apps'))
  File "/home/reza/bench-repo/bench/utils.py", line 104, in exec_cmd
raise CommandFailedError(cmd)
  bench.utils.CommandFailedError: git clone https://github.com/frappe/frappe.git  --depth 1 --origin upstream frappe

So it seems that i have installed frappe app correctly.

Try

$ bench doctor
1 Like

Wow, thanks it has worked. It seems,the documentation of Frappe is quite frustrating.

If you find any inconsistency or documentation which needs to be updated you can report issue or create pull request.
with github pages, you can even click “Imporve this page” button and create a pull request from github web interface itself!