MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Pi 4 storage used up in weeks?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    12 Posts 4 Posters 3.3k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dazza120
      last edited by dazza120

      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)
      
      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • D Offline
        dazza120
        last edited by

        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.

        evroomE 1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom @dazza120
          last edited by

          @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.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            dazza120 @evroom
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @dazza120
              last edited by cowboysdude

              @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 :)

              D 1 Reply Last reply Reply Quote 1
              • D Offline
                dazza120 @cowboysdude
                last edited by

                @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

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy