#Integration changes not saving on reboot

18 messages · Page 1 of 1 (latest)

torpid crystal
#

GUI-Discovered devices and integrations (an ESPHome device, my new zigbee dongle, and my fitbit auth) seem to rollback and need to be re-discovered every time HA restarts. Config and dashboard changes etc do persist however and storage is only 47% used.

tacit verge
#

do you see anything in the logs?

#

Do all integrations dissapear?

torpid crystal
#

No they dont all disappear, just the ones that were added since the previous boot

torpid crystal
# tacit verge do you see anything in the logs?

I do now that I look:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 515, in _async_callback_delayed_write
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 540, in _async_handle_write_data
    await self._async_write_data(self.path, data)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 545, in _async_write_data
    await self.hass.async_add_executor_job(self._write_data, self.path, data)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 552, in _write_data
    data["data"] = data.pop("data_func")()
                   ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2426, in _data_to_save
    "entries": [entry.as_storage_fragment for entry in self._entries.values()]  # type: ignore[misc]
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/propcache/_helpers_c.pyx", line 80, in propcache._helpers_c.cached_property.__get__
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 534, in as_storage_fragment
    return json_fragment(json_bytes_sorted(self.as_dict()))
                         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
TypeError: Recursion limit reached```
tacit verge
#

So something being stored is doing shitty things

#

Sorry let me rephrase

#

A custom component is probably trying to store something that is not storable, causing this to happen

torpid crystal
#

How might I debug or resolve that? I've tried going through and disabling as many non-critical integrations and addons as I can but that also rolls back every reboot lol

tacit verge
#

What happens if you reload?

#

Restart

#

Without doing anything

torpid crystal
#

What do you mean?

tacit verge
#

If rebooting HA also shows that log message, you should boot HA in safe mode and see if it still happens

torpid crystal
#

Found the cause!

#

Same thing as here; the Meross HACS integration was causing it

#

manually deleted its files using the file editor, rebooted, added my new integrations and rebooted again and they've saved