Read the statement by Michael Teeuw here.
Huge number of errors in log fills up HD
-
@cpcode so, this sounds like possibly 2 problems
-
power supply failing. another user reported similar weird unable to run MagicMirror
-
sd card failure. they do fail quite often
pm2 flush
will clear the logs
but i would investigate both these
if not done recently, backup your MagicMirror config
maybe use my backup script . make sure to get the backup off the MagicMirror disk. -
-
@sdetweil Thanks for the reply - some additional info:
- Magic Mirror works fine when I start it, after clearing the logs (getting more HD space). All modules seem to work properly. Things only start failing catastrophically when the logs fill up the disk completely.
- I tried pm2 flush but it only deleted the log in the /.pm2 folder, it didn’t delete anything in the /.pm2/logs subfolder. This is where all the big logs are. I’ve been deleting those log files manually for now, every few minutes.
- The power seems to work fine when only the PI OS is up and running, and before the HD fills up, but I’ll check on it.
I will look into the SD card, that could definitely be the cause. I will also backup my latest, thank you for the suggestion. Can you think of a way to debug the ‘DisableHardwareAcceleration’ issue somehow?
Thanks again. -
@cpcode said in Huge number of errors in log fills up HD:
Can you think of a way to debug the ‘DisableHardwareAcceleration’
this indicates that there may be disc corruption on the SD card.
weird behaviour usually brings out the worst…
-
@sdetweil Looking into the SD card now, this is my first time with this type of issue. Is there a way to check if the card is corrupted or not? There seem to be some Windows utilities, and maybe some in the PI itself, but I’m not having tons of luck yet.
If it’s corrupted, is the standard practice to start over with a new SD card (reinstall RPI OS, restore MM backups, …), or are there ways to try and fix the existing card before it goes in the garbage? Like maybe reformatting the same card? Seeing as SD cards fail often, I hope there’s a consensus on what is the best course of action.
Thanks again.
-
@cpcode once the SD card fails, there is no recovery… I have lost 10 over the last 7 or 8 years.
far as I know there is no technique to discover the problem. there no write failed error produced , so the software ‘thinks’ all is good, when its not…
so you get random stuff all over the place…
and it only gets worse
-
@sdetweil Well that makes things easier, I’ll buy one or two more cards and start over. Really grateful for your help, this could have taken me way longer.
While I was troubleshooting I saw other threads about backups - I am comfortable backing up Magic Mirror, especially with your script, but is there a solid way to image an entire SD card (RPI and all) so in the future I could just push the image to a new SD? I saw the ‘dd’ command mentioned, but I don’t have another Unix system, just Windows.
-
@cpcode dd/image gets you the same thing
there are image creation tools for windows
-
@cpcode
Once your have your setup completed, to what you want. You can use Win32Diskimager to make a .img file that you can reinstall with balenaetcher or RaspberryPiImager. I went to USB devices or NVMe drives.
I use Sam’s backup mainly to save my config.js and custom.css files so I never loose the main settings to the Current MM I have running. The list of modules helps too.
I also keep a module folder backup BACKUP is so critical if you are using sd cards.