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.

    VM Disk Full - 50 GiB in 4 months

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    19 Posts 2 Posters 484 Views 2 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.
    • J
      JohnGalt @sdetweil
      last edited by

      @sdetweil – Thanks, Sam. It looks like that won’t work - for the same reason as above. I need to give this some more thought… I can’t be the first person to encounter this issue. See below for the output of trying to install ncdu:

      JohnGalt@MM-Dev-VM:~/.pm2/logs$ sudo apt install ncdu
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following NEW packages will be installed:
        ncdu
      0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
      Need to get 50.7 kB of archives.
      After this operation, 117 kB of additional disk space will be used.
      E: You don't have enough free space in /var/cache/apt/archives/.
      JohnGalt@MM-Dev-VM:~/.pm2/logs$
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @JohnGalt
        last edited by

        @JohnGalt erase the files in the .pm2/logs folder, they are not the cause

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J
          JohnGalt @sdetweil
          last edited by

          @sdetweil – I will do that. I was just down the rabbit hole, using df. It looks like a huge amount is taken up by /var/lib/apport/coredump. See below:

          JohnGalt@MM-Dev-VM:~/.pm2/logs$ df -h
          Filesystem      Size  Used Avail Use% Mounted on
          tmpfs           794M  1.1M  793M   1% /run
          /dev/sda2        49G   49G     0 100% /
          tmpfs           3.9G     0  3.9G   0% /dev/shm
          tmpfs           5.0M     0  5.0M   0% /run/lock
          efivarfs         56K   27K   25K  52% /sys/firmware/efi/efivars
          /dev/sda1       300M  7.8M  292M   3% /boot/efi
          tmpfs           794M   92K  794M   1% /run/user/1000
          JohnGalt@MM-Dev-VM:~/.pm2/logs$ cd ..
          JohnGalt@MM-Dev-VM:~/.pm2$ cd ..
          JohnGalt@MM-Dev-VM:~$ sudo du -h --max-depth=1 /var | sort -h | tail -n 10
          4.0K    /var/metrics
          4.0K    /var/opt
          28K     /var/crash
          40K     /var/spool
          68K     /var/tmp
          5.4M    /var/backups
          49M     /var/cache
          617M    /var/log
          39G     /var
          39G     /var/lib
          JohnGalt@MM-Dev-VM:~$ sudo du -h --max-depth=1 /var/lib | sort -h | tail -n 10
          772K    /var/lib/systemd
          2.0M    /var/lib/fwupd
          3.8M    /var/lib/command-not-found
          4.2M    /var/lib/aspell
          7.5M    /var/lib/ubuntu-advantage
          40M     /var/lib/swcatalog
          92M     /var/lib/dpkg
          276M    /var/lib/apt
          38G     /var/lib/apport
          39G     /var/lib
          JohnGalt@MM-Dev-VM:~$ sudo du -h --max-depth=1 /var/lib/apport | sort -h | tail -n 10
          38G     /var/lib/apport
          38G     /var/lib/apport/coredump
          JohnGalt@MM-Dev-VM:~$ sudo du -h --max-depth=1 /var/lib/apport/coredump | sort -h | tail -n 10
          38G     /var/lib/apport/coredump
          JohnGalt@MM-Dev-VM:~$
          
          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @JohnGalt
            last edited by

            @JohnGalt next is who’s dump is it… electron?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J
              JohnGalt @sdetweil
              last edited by

              @sdetweil – true. I’m not sure I know to find that out…

              J 1 Reply Last reply Reply Quote 0
              • J
                JohnGalt @JohnGalt
                last edited by JohnGalt

                is that file [just] a record of the dump[s]?

                Put differently, would it be safe to delete the file or directory?

                [Edit]: On further recollection - this appears to be happening only on the two VMs running MM, and not on the two Raspberry Pis that I have MM running on.

                Does this represent a clue as to what is happening?

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @JohnGalt
                  last edited by sdetweil

                  @JohnGalt in the folder with the core dump files do

                  sudo file * >>~/somefile.txt

                  then ~/somefile.txt will have a line for each which should contain the failing code name

                  from
                  https://stackoverflow.com/questions/13308922/find-which-program-caused-a-core-dump-file

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JohnGalt @sdetweil
                    last edited by

                    @sdetweil

                    Well, there’s this under /var/lib/apport/coredump:

                    Name:
                    core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464

                    Size:
                    40,486,436,864

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @JohnGalt
                      last edited by

                      @JohnGalt well then… electron crashed…

                      which MM version are you on
                      cd ~/MagicMirror
                      grep version package.json

                      and for electron
                      grep version node_modules/electron/package.json

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        JohnGalt @sdetweil
                        last edited by

                        @sdetweil

                        JohnGalt@MM-Dev-VM:~/MagicMirror$ grep version package.json
                                "version": "2.35.0",
                        JohnGalt@MM-Dev-VM:~/MagicMirror$ grep version node_modules/electron/package.json
                          "version": "41.2.0"
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S
                          sdetweil @JohnGalt
                          last edited by

                          @JohnGalt if you hadn’t erased the logs, the pm2 log MIGHT have had a fault listed…

                          2.37 is the current release, 6 months newer… electron at 42.5.2

                          supposedly this could help find cause

                           Analyze the Crash Dump
                          Because Electron code is pre-compiled, looking at a raw dump file yields only unreadable memory addresses. 
                          You need to symbolicate the dump using matching Electron debugging symbols.
                          
                          The CLI Tool (electron-minidump)
                              The easiest open-source way to inspect a .dmp file locally is using the electron-   minidump CLI tool. 
                          It automatically fetches the matching Electron symbols and outputs a readable stack trace.
                          Install the utility:
                          sudo  npm install -g electron-minidump
                          
                          Analyze your file:
                          electron-minidump -f /path/to/your/file.dmp
                          
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            JohnGalt @sdetweil
                            last edited by

                            @sdetweil – OK, well… The program DID install (I was surprised , given what has been happening…). This resulted in an error. I specified that large file we identified earlier. Do let me know if I did the wrong thing. See results below.

                            While you are looking at this, I am going to fire up the other, older VM that also crashed and see if there is similar evidence there that might shed light.

                            JohnGalt@MM-Dev-VM:~/MagicMirror$ sudo  npm install -g electron-minidump
                            [sudo] password for JohnGalt:
                            
                            added 29 packages in 34s
                            
                            1 package is looking for funding
                              run `npm fund` for details
                            npm notice
                            npm notice New major version of npm available! 10.9.4 -> 12.0.2
                            npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2
                            npm notice To update run: npm install -g npm@12.0.2
                            npm notice
                            JohnGalt@MM-Dev-VM:~/MagicMirror$ electron-minidump -f /var/lib/apport/coredump/core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464
                            Error: EACCES: permission denied, open '/var/lib/apport/coredump/core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464'
                                at async Object.open (node:internal/fs/promises:641:25)
                                at async electronMinidump (/usr/local/lib/node_modules/electron-minidump/index.js:11:14) {
                              errno: -13,
                              code: 'EACCES',
                              syscall: 'open',
                              path: '/var/lib/apport/coredump/core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464'
                            }
                            JohnGalt@MM-Dev-VM:~/MagicMirror$ sudo electron-minidump -f /var/lib/apport/coredump/core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464
                            Not a minidump file (MDMP header not found): /var/lib/apport/coredump/core._home_al_MagicMirror_node_modules_electron_dist_electron.1000.f1d1264a-f2d2-4a44-8b27-e2f3182e030f.380943.121091464
                            JohnGalt@MM-Dev-VM:~/MagicMirror$
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S
                              sdetweil @JohnGalt
                              last edited by

                              @JohnGalt you need sudo in front of the mini dump. Line cause the file is in the /var folder

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                JohnGalt @sdetweil
                                last edited by

                                @sdetweil – Yes, I did.

                                The output I pasted included 2 runs. The first returned an access error as expected. The 2nd run says ‘not a minidump file’.

                                I guess I confused things by pasting all that. Sorry.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  sdetweil @JohnGalt
                                  last edited by

                                  @JohnGalt no problem… thx… I have not tried to examine them myself either

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0

                                  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
                                  • 1 / 1
                                  • 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