For a few months my HACS integration has been broken (won’t start). I’ve followed HACS’ instructions for complete removal and started fresh; still getting the same errors. I’ve removed all custom_components except HACS and WebRTC (which I do have disabled while I troubleshoot).
I’m running HASS OS in a VirtualBox VM on a Windows 10 host (NUC).
When I start the plug-in, I get three errors in the log:
Error 1
Logger: homeassistant.util.json
Source: util/json.py:68
First occurred: 3:43:42 PM (13 occurrences)
Last logged: 6:43:42 PM
Could not parse JSON content: /config/.storage/hacs.repositories
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 68, in load_json
return orjson.loads(fdesc.read()) # type: ignore[no-any-return]
orjson.JSONDecodeError: unexpected character: line 21481 column 4 (char 703134)
Error 2
This error originated from a custom integration.
Logger: custom_components.hacs
Source: custom_components/hacs/utils/data.py:184
Integration: HACS (documentation, issues)
First occurred: 3:43:42 PM (13 occurrences)
Last logged: 6:43:42 PM
Could not read /config/.storage/hacs.repositories, restore the file from a backup - unexpected character: line 21481 column 4 (char 703134)
Error 3
This error originated from a custom integration.
Logger: custom_components.hacs
Source: custom_components/hacs/base.py:402
Integration: HACS (documentation, issues)
First occurred: 3:43:42 PM (13 occurrences)
Last logged: 6:43:42 PM
HACS is disabled - restore