@Pabla said in Can't Restart Reactor - Corrupted SD Card?:
Searched and nothing came up in the hass_services.json
OK, not finding the search string and the sequence and type of messages suggests to me that (a) it's not a Hass change at fault, and (b) there's corruption, may or may not be SD, could be RAM. That message should be accompanied by another, and not logged the way you Pi is logging it. I can prove that on my own systems. If you can't find that null in the data, it also suggests that the place that's throwing the error should not be throwing an error, because the error can only occur if that data is null. Lots to unpack.
Odd, random problems with Pi's can indeed be caused by SD failure, but the fact that it appears we have an in-memory data corruption suggests RAM. Other culprits in RPi slowdowns are overheating (you may need a heat sink, at least, on your CPU, and possibly a fan; if you're overclocking it, don't), but perhaps more commonly, a failing power supply. If the PS can't deliver stable voltage at the current the Pi demands, it will slow the clock for sure, but all kinds of other strange things can happen as well. It can be very quiet and subtle, and random with increasing frequency at the start. Voltage warnings show in the desktop UI but can be very hard to detect/confirm if you don't have that open all the time to see it. If you're using a "wall wart" power supply, swap it out for something newer/better and see if the system improves. Make sure it's rated for the Pi's full power (3B+ is 5V/2.5A so a 15W or higher PS is recommended). If you're using a USB cable connection for power, also change out the cable; make sure the new one is rated for the power.
If you log in to your Pi, you should be able to run sudo vcgencmd get_throttled
. If there has been any power or heat event since the Pi last rebooted, there will be a non-zero value reported.
Generally speaking, the 3B+ isn't the best choice these days. While I have tested Reactor on a 3B+ and it runs, it's under-powered and light on RAM, so if you're trying to run much else with it (Mosquitto, ZWaveJS, etc), you're asking for trouble. It's also holding you back on an aging OS. The fact that you're still running on an SD card is playing with fire; there are only two kinds of MicroSD cards: those that have failed, and those that are about to. Even if a PS swap fixes your issue, I'd make a plan to replace/upgrade that unit some day soon to a modern Pi, or one of the alternative units. I'm still a big fan of the Raspberri Pi Compute Module 4 with eMMC (like on-board SSD but better) mounted on the RPi CM4 I/O Board; I even made a 3D-printable case for it. It's one of the easiest ways to get to a non-MicroSD Pi configuration. You could also go to Pi 5 with an M.2 HAT and M.2 SSD. But in any case, I'd start planning an upgrade for the long-term.