home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.8k stars 959 forks source link

Raspberry Pi 4: I can not boot at 11.5 OS #3145

Closed nazeg closed 4 months ago

nazeg commented 7 months ago

Describe the issue you are experiencing

I have a Raspbery Pi 4. Everything was working without problem with 1.4. Last week, i installed 1.5 rc1 and i couldn't start HA anymore. Then i reinstalled the system, leaved from Beta channel and stayed at 1.4. Today i saw 1.5 was relased so i thought this issue has fixed but i got the same problem. It never boots, i also can not see Raspberry's IP address on router.

What operating system image do you use?

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

What version of Home Assistant Operating System is installed?

1.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Installed 1.5 rc1 and the system never booted
  2. Installed a fresh system with 1.4, leaved beta channel
  3. Today i saw 1.5 was relased, i installed it and got the same issue. It never boots, never gets an IP ...

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

.

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

.

System information

.

Additional information

.

kastmgnru commented 7 months ago

Same for me. Generic x86

wschaeffer commented 7 months ago

Same for me, can't connect to the pi after updating to 11.5. Raspberry Pi 4, using Home Assistant Operating System.

agners commented 7 months ago

In general, we have all tested all boards extensively with HAOS 11.5. E.g. I have tested Raspberry Pi 4 with SD card as well as SSD boot. This doesn not mean that there aren't any bugs, but it means that whatever bugs you encounter, it must be environment specific, as in, it depends on the exact device type and the hardware you have connected to your device etc. So please always state as much information as possible.

:information_source: This issue is about Raspberry Pi 4. If you have a different device, please open a separate issue!

@nazeg Do you see anything when connecting an HDMI screen? What is your setup exactly (SD card, type, make, USB devices connected etc.)

After updating to 11.5 OS it no longer works for me either! HA run on Windows - VirtualBOX . But after it couldn't start, it apparently did an automatic downgrade to 11.4 OS and started up normally again?! Can this be? So now it runs with 11.4 OS and I don't dare to upgrade again up with 11.5.

Home Assistant OS has a fallback feature, where after 3 unsuccessful tries it falls back to the previously installed version. It seems that go triggered in your case. In any case, logs/screenshots from the boot attempt when it failed would be helpful. Please open a separate issue, as this is about Raspberry Pi 4.

Raspberry Pi 4 users: Maybe disconnecting power 3 times and reapplying power for ~20-30s might help to trigger the fallback in your case too.

nazeg commented 7 months ago

@agners Unfortunately i can't see anything when i connect it via HDMI, only black screen. Also as i said the device can't get an ip address. I use SSD and a zigbee adapter, that's all.

agners commented 7 months ago

@nazeg are you booting from the SD card? What type and make is your SSD? What type and make is your USB to SSD adapter?

wschaeffer commented 7 months ago

Looks like it is stuck in a boot loop. Both red and green LED are active and within a minute they are dimmed for a second. In my router I see constantly see reconnections happening.

nazeg commented 7 months ago

@agners I'm booting from SSD directly, no SD card is installed. I'm using an adapter like this: https://www.amazon.com/StarTech-com-SATA-USB-Cable-USB3S2SAT3CB/dp/B00HJZJI84/ref=sr_1_4?crid=3UPH0BAJLXHHF&keywords=usb+ssd+adapter&qid=1707161393&sprefix=usb+ssd+adapte%2Caps%2C198&sr=8-4

But everything was fine until 1.5 OS

nazeg commented 7 months ago

@agners It seems this works. Now it boots with previous OS.

"Raspberry Pi 4 users: Maybe disconnecting power 3 times and reapplying power for ~20-30s might help to trigger the fallback in your case too."

pwnpanda commented 7 months ago

I am in the same boat, also on a RPI 4. Also using a zigbee adapter: https://itead.cc/product/sonoff-zigbee-3-0-usb-dongle-plus/

I had to reset the device manually after running the update, as the pi never came back. After reset, it was still not working. (Presenting on the network)

I connected it via the LAN-port, with the zigbee-adapter connected and gained access to the device, but a lot of functionality is not working and the WiFi does not connect.

Which logs are the relevant ones here? The system is clearly not working as intended, indicated by lots of errors in integrations, backups not working in UI, WiFi connection not working etc.

It also appears that something failed when making a backup, as no pre-update backup was created, even though it was enabled, stopping me from just rolling back to the previous version.

Screen when accessing backup via UI: Screen when trying to access backup via UI

Login screen over SSH showing no wifi connected: Logon screen over SSH, no wifi connected

Adding the logs I found, but does not seem like there is anything of interest there: home-assistant_2024-02-05T19-38-24.548Z.log host_2024-02-05T19-01-51.207Z.log supervisor_2024-02-05T19-40-59.215Z.log

Will report back after trying to boot without zigbee adapter and after resetting repeatedly in hopes of rolling back automatically.

Update:

nazeg commented 7 months ago

Btw, it's rolled back by using that way but i see that Operating System is 11.5 now. How can it be? I didn't make any upgrade again.

C0MTRAYA commented 7 months ago

Same here, tried on a test card because it could not boot since 11.4

-Using a PI4 4Go -Im currently on OS 11.2 -Booting from an SD card -I have a sonoff zigbee 3.0 usb dongle plus v2 and a Zooz ZST10 700 Series Z-Wave Plus S2 USB ZST10 700 connected -Connected through ethernet cable

As soon as I put back one of my main cards with 11.2 it boot like normal. I can provide an image of my broken and/or working setup if needed.

Heres what I have from the HDMI output: ha no boot

noizefloor commented 7 months ago

I had the same problem on a Raspberry PI 3B. No output on HDMI, so I suspected it could be the boot loader. I managed to fix my problem by overwriting the boot partition with an earlier version. I would assume it was the u–boot update that came with 11.5.

pdeloos commented 7 months ago

I have the same problem. The curious thing is that when I connect the Raspberry PI to my laptop via USB-C, I do get output on my monitor and everything works fine. When I then try again via the power supply that used to work, again no output on my monitor.

erkr commented 7 months ago

Related to issue https://github.com/home-assistant/operating-system/issues/3059?

pdeloos commented 7 months ago

No, I just figured out that the cause is most likely that the power adapter I'm using does not provide the required levels anymore. I'm now using my iPhone charger and it's working fine. Sorry for the confusion.

martymarty004 commented 7 months ago

I also have been experiencing these issues on my RPi 4B + HAOS on USB SSD (connected to USB2.0). The system randomly hangs, and after I reboot it there is a hole in the history and there are no traces of errors on journalctl.

It's like the SSD gets disconnected for some reason. Also, the recordings stop way before I am able to notice the issue (the system will still "work" for some time without a disk attached)

For example, I updated to 11.5 this morning and everything was fine until I noticed that DNS was dead (AdGuard on HA) and the RPi refused connections over SSH (though it was still pinging).

C0MTRAYA commented 7 months ago

if it might help someone, I've deleted the boot partition and formatted my test card, installed a fresh install on 11.5 and it booted (which wasn't on 11.4), restaured from a full backup... and: 20240210_144110 I've shutdown the host (not just close ha) and unplug the pi for good mesures, plugged it back in and it boot like normal! gonna run it on the test card for a few days and if everything's fine, I'll updates my main cards!

github-actions[bot] commented 4 months ago

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.