I have been exploring the deployment of ERPNext on raspberry pi 5 on ubuntu server. I have successfully completed setting up production server later thought of adding Custome fields to the doctype and switched to development option but could not switch back to the production despite trying the options that i could find on forum and documentation. final command that i remember that i have executed is bench update and bench build, Since that I am struck at “internal server error” and “json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)” in my console. @frappedev @support1
complete error log
Traceback (most recent call last):
File "/home/gts/frappe-bench/apps/frappe/frappe/middlewares.py", line 16, in __call__
return super().__call__(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/env/lib/python3.11/site-packages/werkzeug/middleware/shared_data.py", line 249, in __call__
return self.app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/env/lib/python3.11/site-packages/werkzeug/middleware/shared_data.py", line 249, in __call__
return self.app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/app.py", line 74, in application
app(environ, start_response),
File "/home/gts/frappe-bench/env/lib/python3.11/site-packages/werkzeug/wrappers/request.py", line 189, in application
resp = f(*args[:-2] + (request,))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/app.py", line 128, in application
response = handle_exception(e)
^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/app.py", line 390, in handle_exception
response = get_response("message", http_status_code=http_status_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/serve.py", line 26, in get_response
response = ErrorPage(exception=e).render()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/utils.py", line 523, in cache_html_decorator
html = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py", line 92, in get_html
self.init_context()
File "/home/gts/frappe-bench/apps/frappe/frappe/website/page_renderers/error_page.py", line 14, in init_context
super().init_context()
File "/home/gts/frappe-bench/apps/frappe/frappe/website/page_renderers/base_template_page.py", line 15, in init_context
self.context.update(get_website_settings())
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py", line 263, in get_website_settings
context.boot = get_boot_data()
^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/website/utils.py", line 181, in get_boot_data
"assets_json": get_assets_json(),
^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 975, in get_assets_json
frappe.local.assets_json = frappe.cache.get_value(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 100, in get_value
val = generator()
^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 966, in _get_assets
assets = frappe.parse_json(frappe.read_file("assets/assets.json"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/__init__.py", line 2385, in parse_json
return parse_json(val)
^^^^^^^^^^^^^^^
File "/home/gts/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 823, in parse_json
val = json.loads(val)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)