Unable to Start Bench After Shutdown

I shutdown my erpNext server (CTRL+C) but whenever I start bench again, I get the error below:

[bench@erpnext-2vcpu-4gb-ams3-01 ~]$ bench start
Traceback (most recent call last):
File “/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/opt/bench/bench-repo/bench/commands/update.py”, line 32, in update
patches.run(bench_path=’.’)
File “/opt/bench/bench-repo/bench/patches/init.py”, line 21, in run
result = execute(bench_path)
File “/opt/bench/bench-repo/bench/patches/v3/celery_to_rq.py”, line 7, in execute
frappe_branch = get_current_branch(‘frappe’, bench_path)
File “/opt/bench/bench-repo/bench/app.py”, line 288, in get_current_branch
return get_cmd_output(“basename $(git symbolic-ref -q HEAD)”, cwd=repo_dir)
File “/opt/bench/bench-repo/bench/utils.py”, line 363, in get_cmd_output
output = subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=open(os.devnull, ‘wb’)).strip()
File “/usr/lib64/python2.7/subprocess.py”, line 568, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File “/usr/lib64/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib64/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps/frappe’

This is like the 4th installation this is happening. Please help.

are you in the frappe-bench folder?

1 Like