Help - Amateur here...Cant access frontend

I was reading on another post that it was possible to remove duplicate entities via the core.entity_registry folder. But it looks like I put in the wrong information and now I can’t restart home assistant and access the front end. Please help

Below is from my home-assistant.log

2019-04-09 19:51:29 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http component has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password
2019-04-09 19:51:29 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled.
2019-04-09 19:51:29 ERROR (SyncWorker_1) [homeassistant.util.json] Could not parse JSON content: /config/.storage/core.entity_registry
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/util/json.py”, line 30, in load_json
return json.loads(fdesc.read()) # type: ignore
File “/usr/local/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/local/lib/python3.7/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 436 column 9 (char 17655)
2019-04-09 19:51:29 ERROR (MainThread) [homeassistant.core] Error doing job: _GatheringFuture exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/util/json.py”, line 30, in load_json
return json.loads(fdesc.read()) # type: ignore
File “/usr/local/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/local/lib/python3.7/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 436 column 9 (char 17655)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_registry.py”, line 291, in async_get_registry
await reg.async_load()
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_registry.py”, line 232, in async_load
old_conf_migrate_func=_async_migrate
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/storage.py”, line 36, in async_migrator
return await store.async_load()
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/storage.py”, line 81, in async_load
return await self._load_task
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/storage.py”, line 94, in _async_load
json_util.load_json, self.path)
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/site-packages/homeassistant/util/json.py”, line 36, in load_json
raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: Expecting value: line 436 column 9 (char 17655)
2019-04-09 19:51:33 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=46 from 2019-04-10 00:11:13.197619)
2019-04-09 19:51:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py”, line 211, in async_update_ha_state
raise RuntimeError(“Attribute hass is None for {}”.format(self))
RuntimeError: Attribute hass is None for <Entity yr Symbol: 1>
2019-04-09 19:51:46 ERROR (SyncWorker_7) [pyvizio.vizio] Failed to execute command: HTTPSConnectionPool(host=‘192.168.0.103’, port=7345): Max retries exceeded with url: /menu_native/dynamic/tv_settings/audio/volume (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e1fda0>: Failed to establish a new connection: [Errno 113] Host is unreachable’))
2019-04-09 19:51:46 ERROR (SyncWorker_7) [homeassistant.components.vizio.media_player] Failed to set up Vizio TV platform, please check if host and API key are correct
2019-04-09 19:51:47 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform yr is taking over 10 seconds.
2019-04-09 19:51:48 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2019-04-09 19:51:52 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform denonavr is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.climate] Setup of platform ecobee is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of platform ecobee is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.weather] Setup of platform ecobee is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of platform cloud is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.switch] Setup of platform tuya is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of platform abode is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.alarm_control_panel] Setup of platform abode is taking over 10 seconds.
2019-04-09 19:51:53 WARNING (MainThread) [homeassistant.components.camera] Setup of platform abode is taking over 10 seconds.

I am experiencing the exact same thing after updating to 91.3. I get “connection refused” in the browser. Also: In portainer, all the images are marked “unused” and no container is launched. Any progress?

My particular case was because I had a syntax problem in my storage/core.entity_registry file after I was deleting some duplicate entities. Once I resolved the JSON it was fine!

may not be what you’re looking for though

1 Like

That was the pointer I needed. I SSHed into the .storage folder through docker exec (docker exec -it /bin/bash, renamed core.entity_registry, core.device_registry and core.config_entries and rebooted. Now HA is back. Thanks for the advice.