Read the statement by Michael Teeuw here.
SD memory card is slowly filling up
-
Hello everybody,
can someone help me?
My MagicMirror runs for almost a year without errors, but slowly the SD memory card (32GB) is filling up by itself?
After my MagicMirror installation I had about 24GB of free space. And now I only have 6.1GB free (see picture).
What do I have to do to get burst again?
thank you
-
@drx1984 there are utilities which can tell u space used
see the first command described here
https://www.tecmint.com/find-top-large-directories-and-files-sizes-in-linux/amp/ -
it looks like this

-
@drx1984 clear the logs. pm2 flush
altho I might want to find out what all that is.u can dump a little
pm2 logs --lines=???
???= some number, default is 15u can also.look at them in the ~/.pm2/logs
folder -
how do I do that? (I’m a beginner sry)
can I turn off the log?
how do i get to the pm2 folder? that should be in the “root” folder right? somehow I have no notice. -
@sdetweil
I was able to do something and I found this post:
https://forum.magicmirror.builders/topic/917/pm2-logs/7
I then entered the command “pm2 flush” and I already have 21GB of free space again, that looks very good.
could I automate something like that? or deactivate the pm2 log? -
@drx1984 I gave u the pm2 flush command
if u install winscp on your pc box, and enable ssh on your pi, you can get a file manager.over the pi files from your pc
then just double click to edit like u do on the pc. right click to rename/deleteI would have looked at the log to find out what modules are generating all that content.
far as I know there is no way to turn off the log.
maybe
pm2 help
would some some options -
also file location
~
means users home folder
so when logged on as pi, that means
/home/piso from my post
~/.pm2/logs means
/home/pi/.pm2/logsu can get there over ssh, or using a terminal window on the pi, or a file manager on the pi, just like u do on widows
-
@sdetweil
yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

-
@drx1984 said in SD memory card is slowly filling up:
@sdetweil
yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

ah it was hidden all clear, thank you
-
@drx1984 said in SD memory card is slowly filling up:
@drx1984 said in SD memory card is slowly filling up:
@sdetweil
yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

ah it was hidden all clear, thank you
I saw that there is a tool for deleting the pm2 log, do you know it: https://github.com/keymetrics/pm2-logrotate
-
@drx1984 no. but looks interesting
as for hidden, for others, see
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login