operating-system icon indicating copy to clipboard operation
operating-system copied to clipboard

15.1 to 15.2 update appears to have no effect. HAOS running on Raspberry Pi 4.

Open st2000 opened this issue 6 months ago • 4 comments

Describe the issue you are experiencing

Have attempted to update HAOS from 15.1 to 15.2 over a dozen time. After update, HAOS appears to still be running 15.1. And still offers to upgrade from 15.1 to 15.2.

  • Have tried control-F5 using Firefox.
  • Have tried using Chrome.
  • Have update other Add-ons of installed HAOS successfully during this time.
  • Have restarted HAOS.
  • Have rebooted Raspberry Pi platform.
  • Have power cycled Raspberry Pi platform.
  • Have rebooted into Raspbery Pi OS and upgraded the Raspberry Pi 4's boot loader from 2023 version to recent 2325 version.

The log contains python errors related to the upgrade. At the end of the upgrade there is this message:

[quote="st2000, post:3, topic:894662"] homeassistant.exceptions.HomeAssistantError: Error updating Home Assistant Operating System: Unknown error, see supervisor [/quote]

Checking the Supervisor log there are these messages:

[quote="st2000, post:4, topic:894662"]

2025-05-25 12:17:27.491 INFO (MainThread) [supervisor.os.manager] Completed download of OTA update file /data/tmp/hassos-15.2.raucb

2025-05-25 12:17:27.663 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Failed mounting bundle: Failed to open /dev/dm-0: No such file or directory

2025-05-25 12:17:27.668 ERROR (MainThread) [asyncio] Task exception was never retrieved

[/quote]

Indicating the python script was expected to open /dev/dm-0 but found nothing.

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 64-bit OS)

What version of Home Assistant Operating System is installed?

6.6.74-haos-raspi

Did the problem occur after upgrading the Operating System?

No

Hardware details

  • Raspberry Pi 4
  • Using the composite video output
  • USB drive configured to enable ssh logins
  • Keyboard
  • Mouse
  • USB FTDI (or FTDI like) to serial converter connected to a CM11 X10 interface.
  • RJ-45 connected to local network.

Steps to reproduce the issue

  1. HAOS offers upgrade from 15.1 to 15.2.
  2. Click on UPDATE.
  3. When update is done HAOS unexpectedly still offers the update from 15.1 to 15.2.
  4. Check System->About to confirm Operating System is still unexpectedly using 15.1.

Anything in the Supervisor logs that might be useful for us?

[quote="st2000, post:4, topic:894662"]

2025-05-25 12:17:27.491 INFO (MainThread) [supervisor.os.manager] Completed download of OTA update file /data/tmp/hassos-15.2.raucb

2025-05-25 12:17:27.663 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Failed mounting bundle: Failed to open /dev/dm-0: No such file or directory

2025-05-25 12:17:27.668 ERROR (MainThread) [asyncio] Task exception was never retrieved

[/quote]

Anything in the Host logs that might be useful for us?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:250
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:00:16 AM (6 occurrences)
Last logged: 12:17:27 PM

[547278938464] Unexpected exception
[546584934848] Unexpected exception
[546597191040] Unexpected exception
[546748601408] Unexpected exception
[546563316672] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/update_helper.py", line 80, in update_os
    await client.os.update(OSUpdate(version=version))
  File "/usr/local/lib/python3.13/site-packages/aiohasupervisor/os.py", line 30, in update
    await self._client.post(
        "os/update", json=options.to_dict() if options else None, timeout=None
    )
  File "/usr/local/lib/python3.13/site-packages/aiohasupervisor/client.py", line 182, in post
    return await self._request(
           ^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohasupervisor/client.py", line 129, in _request
    await self._raise_on_status(response)
  File "/usr/local/lib/python3.13/site-packages/aiohasupervisor/client.py", line 76, in _raise_on_status
    raise exc_type(result.message, result.job_id)
aiohasupervisor.exceptions.SupervisorBadRequestError: Unknown error, see supervisor

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 250, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2845, 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 197, in async_install
    await update_os(self.hass, version, backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/update_helper.py", line 82, in update_os
    raise HomeAssistantError(
        f"Error updating Home Assistant Operating System: {err}"
    ) from err
homeassistant.exceptions.HomeAssistantError: Error updating Home Assistant Operating System: Unknown error, see supervisor

System information

Version core-2025.5.3 Installation type Home Assistant OS Development false Supervisor true Docker true User root Virtual environment false Python version 3.13.3 Operating system family Linux Operating system version 6.6.74-haos-raspi CPU architecture aarch64

Additional information

No response

st2000 avatar May 28 '25 13:05 st2000

I have similar problem, the only difference is that I am on the HAOS version 15.0 and running in it VirtualBox on Windows 11. I click on Update button, after some time it says it is complete, but after few hours it again shows the same update available.

MesoX avatar May 29 '25 05:05 MesoX

So this is probably an all platforms issue. The error is in a toast notification. I'm on the dev channel and started receiving this error on the previous OS update.

2025-05-29 07:00:32.467 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Failed mounting bundle: Failed to create dm device: Device or resource busy

Image Image

pcartwright81 avatar May 29 '25 12:05 pcartwright81

@pcartwright81 @MesoX In your case the cause was a kernel bug introduced in 6.12.29: https://lkml.org/lkml/2025/5/19/1087

The workaround is to switch to the other slot (using ha os boot-slot other), it should be possible to update it from that one - as the update to the botched version previously went through there, unless it was a fresh install of the problematic version (which is unlikely).

I'd suggest to try the same for @st2000, although it's not clear what's the cause there and the bug shouldn't be present on RPi kernel in 15.1.

sairon avatar Jun 17 '25 15:06 sairon

I'd suggest to try the same for @st2000, although it's not clear what's the cause there and the bug shouldn't be present on RPi kernel in 15.1.

I ran the command and HAOS no longer offers the upgrade from 15.1 to 15.2. Thanks!

st2000 avatar Jun 18 '25 04:06 st2000

Follow up:

Now that the 16.0 upgrade is available, I have ran into this problem again upgrading from version 15.2 to version 16.0.

I'm trying the same solution again. But it regressed backwards into asking if I wanted to upgrade from 15.1 to 15.2. So I repeated the above solution and am again stuck at upgrading from 15.2 to 16.0.

st2000 avatar Jul 13 '25 16:07 st2000

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 12 '25 05:10 github-actions[bot]