I am very new to Home Assistant and tried to install it now twice on a raspberry pi 4B.
First try on an SD Card according to the instructions. Everything went well so I set up all my devices (A lot of stuff including several Tado in all rooms), then I installed Mosquitto Broker and a bit later home assistant was not reachable anymore.
Second try exactly the same but this time on a USB SSD and same thing. Now I connected a screen to see what’s going on and all I see in this color splash screen.
The power supply is the official Raspberry one with 15watts.
Mhhh I looked into it but I got the impression that I am unable to read the logs if the system doesn’t start anymore at all. Is there any way to get into the logs directly on the drive?
Thanks for that. Unfortunately I couldnt find any *.log files on the drives. In Windows it only shows one partition with no log folder. I then installed Raspberry OS to check with Linux which was also successful but then in the logs folder are only two files *. journal.
I searched .log, .log, home-assistant and got no results on any of the partitions I guess I am doing something wrong
Sorry, for Windows, you will need Linux Reader to read the SD card.
Once installed, you can drill down to /mnt/data (hassos-data) → supervisor → homeassistant
Then you can extract the home-assistant.log and home-assistant.log.1 files.
I would also suggest starting from scratch with a fresh install of Home Assistant then immediately going to Settings - > Add-on and installing the File editor add-on. This will allow you to read the log files when HA is booted to ensure that the fresh install is ok. If it is, you can start adding your integrations and devices one-at-a-time and recheck the logs after each addition to see if everything is ok.
Thanks a lot, now I found it. No Idea why the search didnt work but with your help I found it. Since I just started one till it crashed and didnt turn on I only have text in the .log file:
What I find weird is that I am unable to start the Raspberry again after it crashes. It just wont boot anymore. Well I will definitely do the next install the way you discribed.
I don’t see anything obvious that would cause a crash. The logs are throwing warnings and errors for chromecast, and some warnings about your Shelly switches. The chromecast warnings are for devices with an IPv4 network address but the errors are for a device, Wohnzimmer, with an IPv6 address. Are you running a duel stack (IPv4 and IPv6) network?
Are you using this Google Cast integration and this Shelly integration?
Are the Shelly devices running the latest firmware?
Again, I would try a fresh install and start adding your integrations and devices one-at-a-time and recheck the logs after each addition to see if everything is ok and let your system run for a while (a day or two) before adding the next integration. We are trying to see if a specific integration is causing the crash.
We also can’t rule out a hardware problem. It could be a faulty power supply, SD card, or something else.
The power supply could be overloaded if you have anything plugged into the USB ports that draws enough power to exceed its limits (like an SSD). Note: the recommended RP4 PSU is 3.0A. Do you have another power supply you can try? If you are using the SSD with this power supply, it will cause problems - you should have the SSD plugged into an independently powered USB hub and then the hub plugged into your RP4.
The SD card should be a high quality Application Class 2 card. Have you been using the same SD card or do you have a new one you can try?
This could be corruption caused by the crash. Or, if you pull the power without shutting down the system properly.
Max thanks a lot for your extensive analysis and tips. I will try to set it up again this weekend.
The Shelly and Chromecast are being used by me but I am not sure the Shelly is up to date. Will check that.
About my lan setup I am to be honest not sure what a duel stack (IPv4 and IPv6) network is. I have Google wifi (mash). Directly connected to the Google Wifi Base is a classic Hub for all the devices that need cable connection.
In Google Settings it says IPv6 is deactivated.
Will try around a bit. Let’s see
(I also have a slim client somewhere, maybe I also try it with this. Then there are definitely not power or other hardware issues)