The stack trace is incomplete, but if you scroll down further, I think it would say that the site_config or common_site_config files are not valid JSON. Likely due to manually editing the files.
I didn’t make any manual changes
system rebooted automatically and since then I am facing this issue
I found that my assets.json file is empty, I tried to rebuilt the bench using cmd “bench build”
The bench built process is failing
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at write_assets_json (/home/ffw/practice/first-bench/apps/frappe/esbuild/esbuild.js:400:21)
at async execute (/home/ffw/practice/first-bench/apps/frappe/esbuild/esbuild.js:123:3)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/ffw/practice/first-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/ffw/practice/first-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/env/lib/python3.12/site-packages/click/core.py”, line 783, in invoke
return _callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/ffw/practice/first-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/ffw/practice/first-bench/apps/frappe/frappe/build.py”, line 254, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/ffw/practice/first-bench/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run build --run-build-command’ returned non-zero exit status 1.
(myenv) ffw@hp-HP-Laptop-15-bs0xx:~/practice/first-bench$