frappe1@vmi1947963:~/frappe-bench$ bench start
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 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)
frappe1@vmi1947963:~/frappe-bench$
Check the JSON file: Open the common_site_config.json file located in your frappe-bench directory (/home/frappe1/frappe-bench). Look for any lines where a property name might not be enclosed in double quotes.
Correct the JSON syntax: Ensure that all property names in the JSON file are enclosed in double quotes. For example:
Incorrect: { name: "John", age: 30 }
Correct: { "name": "John", "age": 30 }
Validate the JSON: After making corrections, validate the JSON file using a JSON validator (there are online tools available for this purpose). This ensures that the JSON syntax is correct and conforms to the standards.
Restart bench: Once you’ve fixed the JSON formatting issue in common_site_config.json, try running bench start again.
Example-
{
"name": "John",
"age": 30
}
Hope it works !
In common_site.json everything is ok and the line number 21 nentioned there is also not there there are only 20 lines of code
no am saying the line that is being reffered to as the one with error is not even there in the block of the code , the code block only have 20 lines
Yeah, i was thinking the same
GNU nano 6.2 common_site_config.json
{
“background_workers”: 1,
“dns_multitenant”: true,
“file_watcher_port”: 6787,
“frappe_user”: “frappe1”,
“gunicorn_workers”: 17,
“live_reload”: true,
“maintenance_mode”: 1,
“pause_scheduler”: 1,
“rebase_on_pull”: false,
“redis_cache”: “redis://127.0.0.1:13000”,
“redis_queue”: “redis://127.0.0.1:11000”,
“redis_socketio”: “redis://127.0.0.1:13000”,
“restart_supervisor_on_update”: true,
“restart_systemd_on_update”: false,
“serve_default_site”: true,
“shallow_clone”: true,
“socketio_port”: 9000,
“use_redis_auth”: false,
“webserver_port”: 8000,
}
that’s the block of code all syntax is perfect , maybe l am checking wrong file may you assist