2025.2.3 update problem with backups (may not be specific to .3)

For no particular reason, I hit “automatic backup before update” prior to attempting to install 2025.2.3. It failed “IndexError: list index out of range” at line 697, in async_delete_backup.

Turning the request for a backup off yielded a successful install.

I didn’t ask for a backup prior to installing 2025.2.2, so I don’t know if this is a new problem for .3.

It looks, from a very quick read of the stacktrace, that the problem stems from the requested backup going over the configured number of backups (ie, that a deletion is required) but I might be over-interpreting.

2025-02-13 09:16:24.935 ERROR (MainThread) [zigpy.zcl] [0x6FEB:1:0x0020] Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/zigpy/endpoint.py", line 270, in request
    return await self.device.request(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<11 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/zigpy/device.py", line 378, in request
    await send_request()
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 835, in request
    await self.send_packet(
    ...<14 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/bellows/zigbee/application.py", line 937, in send_packet
    raise zigpy.exceptions.DeliveryError(
        f"Failed to deliver message: {send_status!r}", send_status
    )
zigpy.exceptions.DeliveryError: Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074>

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/general.py", line 630, in check_in_response
    await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn)
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 85, in wrapper
    with wrap_zigpy_exceptions():
         ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
    self.gen.throw(value)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 77, in wrap_zigpy_exceptions
    raise ZHAException(message) from exc
zha.exceptions.ZHAException: Failed to send request: Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074>

2025-02-13 09:17:44.753 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547531551024] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 157, in async_install
    await entity.async_install_with_progress(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 489, in async_install_with_progress
    await self.async_install(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 299, in async_install
    await update_core(self.hass, version, backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/update_helper.py", line 52, in update_core
    await backup_core_before_update(hass)
  File "/usr/src/homeassistant/homeassistant/components/hassio/backup.py", line 737, in backup_core_before_update
    await backup_manager.async_create_automatic_backup()
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 930, in async_create_automatic_backup
    return await self.async_create_backup(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 924, in async_create_backup
    await self._backup_finish_task
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 1143, in _async_finish_backup
    await delete_backups_exceeding_configured_count(self)
  File "/usr/src/homeassistant/homeassistant/components/backup/config.py", line 553, in delete_backups_exceeding_configured_count
    await manager.async_delete_filtered_backups(
        include_filter=_automatic_backups_filter, delete_filter=_delete_filter
    )
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 798, in async_delete_filtered_backups
    delete_results = await asyncio.gather(
                     ^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 697, in async_delete_backup
    agent_id = agent_ids[idx]
               ~~~~~~~~~^^^^^
IndexError: list index out of range

same here :frowning:

In the 2025.2 thread it was written as a bug in 2025.2.2 which is solved in .3 (the update).

Updating without backup ticbox it updated here.

1 Like

Same here. Maybe related to a missing mastodon value not being passed in german?

Failed to format translation for key ‘ui.panel.config.tips.join’ in language ‘de’. Error: The intl string context variable “mastodon” was not provided to the string “Werde Teil der Community in unseren {forums}, per {mastodon}, {bluesky}, {twitter}, {discord}, {blog} oder {newsletter}.”