Hello there,
I’m running Home Assistant using a Docker container in OpenWRT arm64 (OpenWrt SNAPSHOT r18913-b0d5939b80 Linux OpenWRT-RPi 5.10.100 #0 SMP Sat Feb 19 18:34:18 2022 aarch64 GNU/Linux) from the following image and docker-compose configuration:
homeassistant:
privileged: true
restart: unless-stopped
environment:
- TZ=America/Mexico_City
volumes:
- '/usbstick/HomeAssistant:/config'
network_mode: host
image: 'ghcr.io/home-assistant/home-assistant:stable'
Since a few weeks ago, the container has been on a constant reboot loop claiming problems with both core.device_registry
and core.config_entries
, looping the following log output even after backing up and replacing said files with both empty contents and { }
as a string:
2022-02-28 21:23:33 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "device_tracker". Check lines 20 and 28
2022-02-28 21:23:33 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 83 and 118
2022-02-28 21:23:33 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /config/.storage/core.config_entries
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 33, in load_json
return json.loads(fdesc.read()) # type: ignore
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/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)
2022-02-28 21:23:33 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 33, in load_json
return json.loads(fdesc.read()) # type: ignore
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/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)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/src/homeassistant/homeassistant/__main__.py", line 203, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 191, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 119, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/runner.py", line 101, in setup_and_run_hass
hass = await bootstrap.async_setup_hass(runtime_config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 131, in async_setup_hass
await async_from_config_dict(config_dict, hass) is not None
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 209, in async_from_config_dict
await hass.config_entries.async_initialize()
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 904, in async_initialize
config = await self.hass.helpers.storage.async_migrator(
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 42, in async_migrator
if (store_data := await store.async_load()) is not None:
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 114, in async_load
return await self._load_task
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 123, in _async_load
return await self._async_load_data()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 141, in _async_load_data
data = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/json.py", line 39, in load_json
raise HomeAssistantError(error) from error
homeassistant.exceptions.HomeAssistantError: Expecting value: line 1 column 1 (char 0)
[finish] process exit code 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
(Full log wouldn’t even fit within the character limit)
So far the only other instances I’ve found while researching of this bug were these two, but even though I followed the advice of both threads, I haven’t been able to get out of the loop even after recreating the container.
Is there anything else I could try to look for?
Attaching generated log files below:
homeassistant.log
2022-02-28 21:28:05 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "device_tracker". Check lines 20 and 28
2022-02-28 21:28:05 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 83 and 118
2022-02-28 21:28:05 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /config/.storage/core.config_entries
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 33, in load_json
return json.loads(fdesc.read()) # type: ignore
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/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)
homeassistant.log.1
2022-02-28 21:26:57 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "device_tracker". Check lines 20 and 28
2022-02-28 21:26:57 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 83 and 118
2022-02-28 21:26:57 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /config/.storage/core.config_entries
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 33, in load_json
return json.loads(fdesc.read()) # type: ignore
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/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)
homeassistant.log.fault