Backup Function Missing

I just upgraded to 2025.1 for HASS, on a Pi4. I am getting an error in my logs and the option to perform a backup is gone from the UI.

####### Log Entry 1 of 2 ####

Logger: homeassistant.util.json
Source: util/json.py:72
First occurred: 3:06:14 PM (1 occurrences)
Last logged: 3:06:14 PM

JSON file reading failed: /config/.storage/backup
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 72, in load_json
    with open(filename, mode="rb") as fdesc:
         ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
IsADirectoryError: [Errno 21] Is a directory: '/config/.storage/backup'

####### Log Entry 2 of 2 ####

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 3:06:14 PM (1 occurrences)
Last logged: 3:06:14 PM

Error during setup of component backup
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 72, in load_json
    with open(filename, mode="rb") as fdesc:
         ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
IsADirectoryError: [Errno 21] Is a directory: '/config/.storage/backup'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/backup/__init__.py", line 71, in async_setup
    await backup_manager.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 282, in async_setup
    stored = await self.store.load()
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/backup/store.py", line 39, in load
    return await self._store.async_load()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 290, in async_load
    result = await self._async_load()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 310, in _async_load
    return await self._async_load_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 331, in _async_load_data
    data = await self.hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        json_util.load_json, self.path
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  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/util/json.py", line 82, in load_json
    raise HomeAssistantError(f"Error while loading {filename}: {error}") from error
homeassistant.exceptions.HomeAssistantError: Error while loading /config/.storage/backup: [Errno 21] Is a directory: '/config/.storage/backup'

I’ve commented out some of the various suggestions in community posts in my configuration.yaml, nothing has worked. Help please!

Same here after updating to 2025.1 today. On Hyper-V VM supervised.

I checked and I do have a backup folder with a config file in it.

I don’t know, but there is a 2025.1.1 patch today, maybe give that a whirl if the 2025.1.0 is off.

Sorry, tried that too, no joy. Same error as before

i got the same error. And now the backup setting has totally disappeared from the UI.
Their announcement said that after the new changes, the previous backup solutions will continue to work.
I guess not.

Same on my Raspberry. I hope they will fix it soon.

Just took 2025.1.2, no changes.

Can someone share what the file HA is looking for in the directory?

The same, backup menu is missing :frowning:

Has anyone actually reported this to HA as a bug?

I’d love to- how?

Just updated to 2025.2, the issue persists.

Solution for this issue:
Just rename or delete your /config/.storage/backup folder. I renamed mine and restarted Home Assistant. Problem solved. Backup option is once again available in the UI and my backups all show.

2 Likes

That was it! Worked like a champ! Thank you so much!!