Read the statement by Michael Teeuw here.
Pi 4 storage used up in weeks?
-
@dazza120
Hi,
I have no idea what you mean with “first pi code” and “the other code”.
2 Pi’s with 2 Magic Mirror instances running?Do you have ssh access to your Pi 4?
If / is 100% full it normally does not allow you to.
You need to have access again and disable all your modules.
Then check if the / usage is increasing.
If not, or in normal quantity, then allow the modules again one by one, checking the usage after every step.A reboot might grant you access again, or you might need to take the card out and use a card reader to have access via your PC.
Cleanup /tmp and try to boot from it with your Pi again.Free space :
sudo df -h /
Usage:
sudo du -sh / sudo du -sh /tmp sudo du -sh /home/pi
Until you have access, trouble shooting is not possible.
Good luck.
-
Hi found its the MagicMirror-error.log in /home/pi/.pm2/logs its 7.9Gb and MagicMirror-out.log in /home/pi/.pm2/logs is 3.3Gb with your help ive found it but how do i fix it? looks like its @cowboysdude Module MMM-NOAA3 that is causing the issue never had an issue with this before @cowboysdude can you help?
TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1090:12) TypeError: Cannot read property 'pollution' of undefined at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:182:35) at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:174:28) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10) at Request.emit (events.js:182:13)
-
I have disabled the NAAO3 module and enabled the default Weather is working fine, stable 25Gb left of space on the SD card. log file is now just 3bytes so hundred percent MMM-NAAO3 is causing the excessive storage useage.
-
@dazza120
Hi,I found this to keep the pm2 log under control, pm2-logrotate:
http://pm2.keymetrics.io/docs/usage/log-management/#pm2-logrotate-module
Of course the module needs to be fixed, but this could prevent you from getting a full log again.
I do not have it in use myself.
-
@evroom thanks but I’ll wait for a fix, everything is running great at the mo so the mirror is nearly ready to go back on the wall I don’t really want to be taking it down again so I’ll wait for a hard fix. But thanks a lot for your help
-
@dazza120 It is a provider file issue… and that is the air pollution part of it. If you installed a newer version of MM you may have to run npm install in the NOAA3 dir again…
I am going to try and run it on the Dev machine right now…
I found the issue…go to AirVisual and get a new key… it told me mine was expired…so get a new key and try it again :)
-
@cowboysdude hi the key was still active it had 135days to go, I never even clocked that it had an expiration date. Don’t know why they just can’t give a permanent key I don’t want to be changing it every year 😢 got enough tech to keep on top off lol