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

Update to 8.4 not doing anything

Open mikeplanzer opened this issue 2 years ago • 15 comments

Describe the issue you are experiencing

Dear community,

Since a few days I am trying to update home assistant os from 7.6 to 8.4 with no luck.

Installation via GUI If I update via the UI it says “Installing” for a minute, then restarts home assistant and it’s still on the same version (7.6) as before. No records in the logs.

Installation via Terminal If I try to update via Terminal it starts but after 1 second saying “Error: Error raised from OTA Webserver: 404”. As seen in the image below.

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?

7.6

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

GUI version

  1. Click on insall from the GUI
  2. OS restarts after a few minutes

Terminal version

  1. Run command ha os update --version 2022.8.4
  2. See error message Error: Error raised from OTA Webserver: 404

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

Only "INFO" messages apart from one warning:

22-08-04 15:42:02 WARNING (MainThread) [supervisor.host.network] Requested to update interface eth0 which does not exist or is disabled.

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

Nothing

System Health information

System Information

version core-2022.8.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.10.103-v8
arch aarch64
timezone Europe/Zurich
config_dir /config
Home Assistant Cloud
logged_in true
subscription_expiration 4 July 2023 at 02:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-west-2-3.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel stable
supervisor_version supervisor-2022.07.0
agent_version 1.2.1
docker_version 20.10.9
disk_total 28.6 GB
disk_used 4.3 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.0), deCONZ (6.15.0), File editor (5.3.3), Terminal & SSH (9.6.0)
Dashboards
dashboards 4
resources 4
views 10
mode yaml
Recorder
oldest_recorder_run 25 July 2022 at 09:35
current_recorder_run 4 August 2022 at 15:42
estimated_db_size 95.48 MiB
database_engine sqlite
database_version 3.38.5
Spotify
api_endpoint_reachable ok

Additional information

No response

mikeplanzer avatar Aug 04 '22 14:08 mikeplanzer

I have the same issue. I keep getting the notification to update from 8.2 to 8.4, then I hit "Install" it takes a couple of minutes, the os restarts, and then in the About section, I see that the current OS version is 8.4. A few hours later (I guess after turning off/on the raspberry pi for any reason), I get the same notification to update from 8.2 to 8.4, and the About section shows 8.2 as the OS's current version! This has happened frequently in the past few weeks.

saeedesmaili avatar Aug 04 '22 21:08 saeedesmaili

@mikeplanzer the Operating System version is not using calendar versioning currently. Try:

ha os update --version 8.4

agners avatar Aug 05 '22 06:08 agners

@saeedesmaili since in your case the OS restarts, it is a different issue. Your issue looks similar to #1978. Can you report the logs requested in https://github.com/home-assistant/operating-system/issues/1978#issuecomment-1189158058 and report it in that issue?

agners avatar Aug 05 '22 06:08 agners

@mikeplanzer the Operating System version is not using calendar versioning currently. Try:

ha os update --version 8.4

Thanks for your comment - I tried mentioned command and had high hops as it was going into "progressing..." for a few minutes and then to "command completed" and the os restarted. Unfortunately still on the old version. No entries in the logs.

mikeplanzer avatar Aug 05 '22 08:08 mikeplanzer

Likely the installation succeeded, but for some reason the boot loader decided to fall back to the previous version (the OS always maintains two installation, this allows to fallback in case the new version does not boot successfully).

Do you use an USB SSD?

agners avatar Aug 06 '22 08:08 agners

Do you use an USB SSD?

I am using an SD card where the version is flashed on to. This SD card is inside a raspberry pi 4.

mikeplanzer avatar Aug 08 '22 15:08 mikeplanzer

Okay guys, I didn’t solve the issue yet however to make sure It's not the fault of my current configuration/installations, here is what I did.

I flashed a brand new SD card with the latest version from github 8.4 and tried to boot my raspberry pi 4 connected to a screen. It starts booting but after 5 seconds crashes (without visible error) and reboots again infinite times.

I took the same SD card and flashed version 7.6 and it boots up like a charm. Tried newer versions higher than 7.6 without success. Therefore I assume there is an issue with the newer versions not being supported by my hardware?

mikeplanzer avatar Aug 08 '22 15:08 mikeplanzer

I have this same issue on Intel NUC. Says "Installing..." Then it just returns to normal state without any reboots or anything. I have OS version 8.2

LuckyPants703 avatar Aug 14 '22 08:08 LuckyPants703

Just for an additional data point, in my case, the same issue happens when I gracefully reboot/shutdown my VirtualBox VM. This said, I am on 8.0 and updating to v.8.4.

Every time I need to power down the VM for maintenance, I get the 8.4 update notice.

convicte avatar Aug 17 '22 08:08 convicte

Same issue happen with me can't able to upgrade 7.6 to 8.4, raspberry pi 4 reboot every time after update os finished .

uddinkayyum avatar Aug 18 '22 02:08 uddinkayyum

I have this same issue on Intel NUC. Says "Installing..." Then it just returns to normal state without any reboots or anything. I have OS version 8.2

Same type of error experienced on Generic x86-64 system. Or when I restart system it reverts to OS 8.2 and the update notice reappears.

upspowerhouse avatar Aug 18 '22 20:08 upspowerhouse

Should we assume this matter will be addressed in 8.5 in any way?

The change log doesn't indicate anything specifically related.

convicte avatar Aug 23 '22 12:08 convicte

Should we assume this matter to be addresses in 8.5 in any way?

Yes - I've tried with installing 8.5 but still having the same issue.

By the way, there is also an discussion on the home-assistant forum where some others confirm the same issue: https://community.home-assistant.io/t/unable-to-update-home-assistant-os-stuck-on-os-8-1/444328/15

mikeplanzer avatar Aug 23 '22 15:08 mikeplanzer

@mikeplanzer that referenced community thread has a lot of problems: ha core update --version 2022.8.4 is the wrong command, as this is to update the core. Then 2022.8.4 is not a valid OS version. OS versions are 8.4 or 8.5.

From your last description, it seems that you are not having an update problem, but problem with a new installation? This are different things...

In general, HAOS 8.5 has been tested with updating and new installation on a Raspberry Pi 4. So the problem is likely related to your setup, e.g. SD card has not beeing flashed properly or similar. Make sure to follow the installation guide at https://www.home-assistant.io/installation/raspberrypi. If the problem persists, please create a new issue with exact description of your environment, including hardware configuration and the steps you took to flash the SD card.

agners avatar Sep 08 '22 12:09 agners

Thanks for the reply @agners,

  • the community thread also references the correct command which unfortunately didn't solve the problem.
  • As written in this ticket on, it is an update Problem, the thread you are referencing I wrote "to make sure I’t not my current configuration/installation". Meaning just out of curiosity I also tried with a new installation with yes, same problem. Of course I can also create a ticket for that if needed.
  • I followed the installation guide as linked and successfully flashed every version starting from 7.0 going upwards to 8.4 but booting only works up to 7.6

mikeplanzer avatar Sep 08 '22 16:09 mikeplanzer

Having the same issue on an RPi 4, I’m currently stuck on 8.2 Home Assistant’s settings page only shows that I can update to 8.5 (not even 9), which doesn’t work as described by other users here.

I’ll try to force update it to 9.2 through SSH (ha os update --version 9.2) (already tried that for 8.5), but I don’t think that it’ll work.

ShonP40 avatar Oct 10 '22 11:10 ShonP40

Also, is there a way to transfer a data disk to a new OS installation without formatting it?

(I currently have an SD Card to boot the OS, and an SSD for all the data)

ShonP40 avatar Oct 10 '22 11:10 ShonP40

I’ll try to force update it to 9.2 through SSH (ha os update --version 9.2) (already tried that for 8.5), but I don’t think that it’ll work.

Didn't work, it still reverted me back to 8.2

ShonP40 avatar Oct 17 '22 00:10 ShonP40

Home Assistant’s settings page only shows that I can update to 8.5 (not even 9), which doesn’t work as described by other users here.

This is expected: The Supervisor offers the last version of the current major release before jumping to the next major release. This is the best tested migration path, so we offer that by default.

Most of the time a direct upgrade (as you forced it through console) works too.

I need logs of the system after the failed attempt to better understand the issue. Do you have SSH debug shell access to that system (port 22222)?

agners avatar Oct 17 '22 13:10 agners

This is expected: The Supervisor offers the last version of the current major release before jumping to the next major release. This is the best tested migration path, so we offer that by default.

Yea realized this later

I need logs of the system after the failed attempt to better understand the issue. Do you have SSH debug shell access to that system (port 22222)?

Yes To what directory are those logs being saved to though?

ShonP40 avatar Oct 17 '22 13:10 ShonP40

Also, I don't know if its related to this, but every change I'm doing to my config.txt file gets reverted as soon as I restart the RPi

ShonP40 avatar Nov 08 '22 13:11 ShonP40

Hello, i found a way to update OS without reformating data. Note: if you are using mmc for boot and ssd/hdd for data, then can't update os (mmc set on read only mode) as per "common task".

try this for os update: need: linux os (gparted)

  1. flash homeassistant to mmc using official rpi imager.
  2. change label of "hass-data" partition to "hass-data-old"

After this no need to configure anything. above method i did many times.

uddinkayyum avatar Nov 08 '22 15:11 uddinkayyum

I'll try it in a couple days if there really no other ways to make it update

(P.S: I'm using an SDCard for booting & a SATA SSD as a data disk)

ShonP40 avatar Nov 08 '22 16:11 ShonP40

Finally got some time to mess with it, and found out that the SDCard just locked itself into read-only mode Which is why it wasn't writing any changes/updates.

Ended up just making the RPi boot off the SATA M.2 SSD I had in it (as the datadisk before) instead

ShonP40 avatar Jan 13 '23 03:01 ShonP40

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 Apr 13 '23 04:04 github-actions[bot]