Bench update --reset Bench doctor error

I lost my config files
frappe-bench ls
apps archived env patches.txt sites

In sites folder also config files not available.

Right now i cant bench update --reset. It tells no command found. How to get backup without having these files how to do?

in my terminal while trying bench update --reset these are the errors
bench update --reset
WARN: Command not being executed in bench directory
ERROR: No module named ‘bench.patches.v3’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/commands/update.py”, line 59, in update
update(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 414, in update
patches.run(bench_path=bench_path)
File “/usr/local/lib/python3.10/dist-packages/bench/patches/init.py”, line 26, in run
module = importlib.import_module(patch.split()[0])
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 992, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘bench.patches.v3’

1 Like

bench commands need to be run from inside the frappe-bench subdir

It doesn´t work