After installing certbot, all bench
commands stopped working and I got the following error. I can’t even take a backup because the command has bench in it
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 83, in cli
bench_config = get_config(".")
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 34, in get_config
return get_common_site_config(bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 42, in get_common_site_config
return json.load(f)
File "/usr/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 21 column 1 (char 565)
I tried creating a new instance and it doesn’t work either.
frappe1@vmi1947963:~$ bench init --frappe-branch version-15 frappe-15
Setting Up Environment
$ python3 -m venv env
$ /home/frappe1/frappe-15/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe1/frappe-15/env/bin/python -m pip install --quiet wheel
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 75, in init
init(
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/system.py", line 70, in init
bench.setup.config(
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 379, in config
setup_config(self.bench.name, additional_config=additional_config)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 26, in setup_config
update_config_for_frappe(bench_config, bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 84, in update_config_for_frappe
ports = make_ports(bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 114, in make_ports
bench_config = get_config(bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 34, in get_config
return get_common_site_config(bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/config/common_site_config.py", line 42, in get_common_site_config
return json.load(f)
File "/usr/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 21 column 1 (char 565)
ERROR: There was a problem while creating frappe-15
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench "frappe-15"
However, all the sites are running well. I just can’t run bench
commands. Any ideas?