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

System Corrupt after updating from 8.4 to HAOS 8.5

Open bschatzow opened this issue 3 years ago • 10 comments
trafficstars

Describe the issue you are experiencing

Lots of errors in the log, system unstable.

What operating system image do you use?

rpi3-64 (Raspberry Pi 3 64-bit OS)

What version of Home Assistant Operating System is installed?

8.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Run 8.4
  2. Update to 8.5

...

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

22-08-23 06:05:17 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 121, in sentry_app_handle
    reraise(*_capture_exception(hub))
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 111, in sentry_app_handle
    response = await old_handle(self, request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 138, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 204, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 60, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/store.py", line 177, in store_info
    ATTR_ADDONS: [
  File "/usr/src/supervisor/supervisor/api/store.py", line 178, in <listcomp>
    self._generate_addon_information(self.sys_addons.store[addon])
  File "/usr/src/supervisor/supervisor/api/store.py", line 113, in _generate_addon_information
    ATTR_ADVANCED: addon.advanced,
  File "/usr/src/supervisor/supervisor/addons/model.py", line 222, in advanced
    return self.data[ATTR_ADVANCED]
  File "/usr/src/supervisor/supervisor/store/addon.py", line 19, in data
    return self.sys_store.data.addons[self.slug]
KeyError: 'df843657_spotify'
Lots of similar errors to:

2022-08-23 06:10:46.872 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform synology_dsm is taking over 10 seconds.

And this:
22-08-23 06:05:58 ERROR (MainThread) [supervisor.homeassistant.api] Error on call https://172.30.32.1:8123/api/config:

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

N/A

System Health information

Can't get this

Additional information

System is now unstable. Can't get more info.

bschatzow avatar Aug 23 '22 17:08 bschatzow

I am running an Intel NUC i3 with 8GB RAM and a WD Green SSD m2.2280. All was running fine on 8.4 but when I updated to the 8.5 (from settings -> updates) it boots but goes into a boot loop when it is trying to load docker. I am looking at it on a console monitor connected to the HDMI port but the display is too fast and it reboots/crashes before I can see it. How do I fix this? Thank you

ronjtaylor avatar Aug 24 '22 02:08 ronjtaylor

I am running an Intel NUC i3 with 8GB RAM and a WD Green SSD m2.2280. All was running fine on 8.4 but when I updated to the 8.5 (from settings -> updates) it boots but goes into a boot loop when it is trying to load docker. I am looking at it on a console monitor connected to the HDMI port but the display is too fast and it reboots/crashes before I can see it. How do I fix this? Thank you

If you have a backup, you could try to repave the boot drive (WD Green SSD m2.2280) with version 8.5 and then restore the backup.

ocalvo avatar Aug 24 '22 02:08 ocalvo

Yes I backed up HA ( full backup) at Midnight last night with an automation and luckily copied the backup to another device (a USB SSD). Just to be clear I am assuming that by "repave" you mean download the image and rebuild then load backup? Could you please clarify so I don't stuff it. Thank you

ronjtaylor avatar Aug 24 '22 03:08 ronjtaylor

Yes I backed up HA ( full backup) at Midnight last night with an automation and luckily copied the backup to another device (a USB SSD). Just to be clear I am assuming that by "repave" you mean download the image and rebuild then load backup? Could you please clarify so I don't stuff it. Thank you

Yes, by repave I mean download the OS image and flash it to the disk.

ocalvo avatar Aug 24 '22 03:08 ocalvo

When I look to download the image I can only see 8.4 in the doco https://www.home-assistant.io/installation/generic-x86-64#write-the-image-to-your-boot-media This is the URL for blancher https://github.com/home-assistant/operating-system/releases/download/8.4/haos_generic-x86-64-8.4.img.xz

ronjtaylor avatar Aug 24 '22 04:08 ronjtaylor

I rolled back to 8.4

ronjtaylor avatar Aug 24 '22 05:08 ronjtaylor

@ronjtaylor your problem is unlikely related to the original posters issue, as yours is a different platform. FWIW, on my end I successfully upgraded a Gen11 Intel NUC to 8.5. If you continue to have that problem on upgrade, please open a new issue.

The documentation is now referencing the 8.5 image.

agners avatar Aug 24 '22 14:08 agners

@bschatzow the issue posted doesn't seem OS related. I am not sure what I should tell, but https://analytics.home-assistant.io/ shows that 16k people updated to OS, and judging from the issues posted in this repository it seems for most to be working :sweat_smile:

My best guess continues to be power/SSD/memory issues... These type of problems can lead to all kind of follow up issues.

I'd recommend to upgrade to a more capable Raspberry Pi 4 or even Intel based system.

agners avatar Aug 24 '22 14:08 agners

My NUC is a NUC8i3BEH which is an 8th generation. The 8.4 OS works fine but the 8.5 did not. That to me seems that there is something different about the 8.5. One of the reasons I went with the HA OS was to try and avoid the more complex issues of Linux and the documentation stated that this version was the one recommended for those of us less skilled. I decided on the NUC as a platform because it had M2.2280 SSD and it had better USB ports to run ZWave and Zigbee. After that I am reliant on the expertise of the HA team. The statistic that 16K people updated needs qualifying by platform success or failure?

ronjtaylor avatar Aug 24 '22 22:08 ronjtaylor

I have installed version 8.4 on a Raspberry Pi 2 and everything works fine. The problem is that the upgrade to 8.5 keeps failing. What am I suppose to do ? Note that I do not like to reinstall the image from scratch.

Thank you

niioannou avatar Sep 03 '22 12:09 niioannou

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 Dec 02 '22 13:12 github-actions[bot]