I have just installed HA a few days ago for the reason of connecting my three ESP32’s to it to control relay boards for electric water valves, soil moisture sensors and temperature and humidity sensors for my grandparent’s greenhouse. I have used HA many times before and have never had any problems I had not inflicted upon myself and was able to go back and fix.
Alright, so here is my problem. After flashing my SD card I put my card into my Raspberry Pi and booted HA after setting the system up, it had worked fine, found my devices, paired with them and was able to operate them. After a few hours I had decided to try connecting my ESP’s to my HA only to find that HA wouldn’t stay on long enough to fully flash my ESP’s. This is when I noticed that HA was shutting down and restarting itself it seems to be doing this every ten minutes. I have tried stopping all of my Addons and turning off start on boot as a way of seeing if they were the cause of my problems, but with them off there was no change. I found there were errors being given by Supervisor on boot so I will include my logs in a PasteBin link at the top of this post. I do not know of what may be causing my HA to reboot itself endlessly but it has become a great problem as I am not able to fully flash my ESP32’s.
Any Ideas of fixing this problem would be very appreciated!
Thank you for your quick reply, I will get the System Monitor running an let you know what I get.
supposing RAM is an issue do you know of a tool I could use perhaps on my windows computer to compile the YAML file for flashing to my ESP32’s?
So I stopped the ESPHome addon with every other addon stopped and HA is still rebooting in the same general Interval, which leads me to thinking that my problem may not be in the addons. Perhaps It is something within this version of HA?
2024-07-27 14:20:27.720 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
The sqlite3 database error definitely points towards a corrupt database.
Honestly, I’m not surprised - your poor SD card is constantly being written to due to it being used as Swap. It’s a matter of if, not when, your card becomes corrupted, so do yourself a favour and make sure you have backups stored somewhere other than the SD card.
It’s time you started thinking about moving to better hardware, something which can handle your current and future usage.