When i try to execute bench --site [sitename] clear-cache it throws an error. Please someone help me it is in production server.
Traceback (most recent call last):
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 73, in get_app_commands
app_command_module = importlib.import_module(app + “.commands”)
File “/usr/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 119, in
commands = get_commands()
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 112, in get_commands
from .site import commands as site_commands
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py”, line 639, in
def uninstall(context, app, dry_run, yes, no_backup, force):
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py”, line 308, in decorator
_param_memo(f, OptionClass(param_decls, **option_attrs))
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 2495, in init
super().init(param_decls, type=type, multiple=multiple, **attrs)
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 2112, in init
raise ValueError(
ValueError: ‘default’ must be a list when ‘multiple’ is true.
Traceback (most recent call last):
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 73, in get_app_commands
app_command_module = importlib.import_module(app + “.commands”)
File “/usr/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/erp/frappe-bench/apps/erpnext/erpnext/commands/init.py”, line 6, in
from frappe.commands import get_site, pass_context
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 119, in
commands = get_commands()
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 112, in get_commands
from .site import commands as site_commands
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py”, line 639, in
def uninstall(context, app, dry_run, yes, no_backup, force):
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py”, line 308, in decorator
_param_memo(f, OptionClass(param_decls, **option_attrs))
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 2495, in init
super().init(param_decls, type=type, multiple=multiple, **attrs)
File “/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 2112, in init
raise ValueError(
ValueError: ‘default’ must be a list when ‘multiple’ is true.
Usage: bench frappe [OPTIONS] COMMAND [ARGS]…
Try ‘bench frappe --help’ for help.
Error: No such command ‘clear-cache’.