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 @johnnyboy
      last edited by

      @johnnyboy yes but now thinking it’s a dud card from amazon as this is how much is showing as used and that’s not equivalent to 28Gb

      Size Used Avail Use% Mounted on
      /dev/root 30G 28G 0 100% /
      devtmpfs 1.8G 0 1.8G 0% /dev
      tmpfs 1.9G 16K 1.9G 1% /dev/shm
      tmpfs 1.9G 8.5M 1.9G 1% /run
      tmpfs 5.0M 4.0K 5.0M 1% /run/lock
      tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
      /dev/mmcblk0p1 253M 40M 213M 16% /boot
      tmpfs 386M 0 386M 0% /run/user/1000

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

        @dazza120

        I would suspect either /tmp being filled up or some log directory being filled up.
        Or a log file going AWOL.

        You can try to find out which directory under / is using the most:

        $ sudo find / -xdev -maxdepth 1 -type d -exec du -s {} \; | sort -rn
        

        When it is working again (perhaps after a reboot you have enough space again), you can look periodically which files are touched / created in the last 60 minutes:

        $ sudo find / -xdev -mmin -60 -type f -exec ls -als  {} \;
        

        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 1
        • D Offline
          dazza120 @evroom
          last edited by

          @evroom hi the first pi code just comes up no access and the other code comes up with a lot of other code thats above my pay grade lol, you could be right but its writting something like a Gb every two hours.

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

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

            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)

            1 Reply Last reply Reply Quote 0
            • 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 Online
                  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
                        • 1 / 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