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
    25 Posts 2 Posters 797 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 – 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 2 Replies 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
            • S
              sdetweil @JohnGalt
              last edited by

              @JohnGalt there is a new script in my package , cleanup.sh

              intended to erase all the electron binary downloads and
              any npm cache

              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 – Thanks, Sam.

                When I get back from my travels next week I hope to have time to look at this.

                IIRC, my primary stumbling block is how full the disk is, meaning I don’t recall if the machine even still boots. I hope it still has room to boot and load the script! That would be great.

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

                  @JohnGalt if you have a usb carrier for the sd card, you could make and boot another one and mount the old one to erase the files

                  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 – Just as a reminder, this is an instance of Magic Mirror installed on Linux in a Virtual Machine, running under TrueNAS Scale.

                    I just confirmed that the VM will start and run and I can SSH into it from my desktop. As such, I should be able to upload the script.

                    Query: Do we expect the script to run as intended under a VM?

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

                      @JohnGalt it should under a VM… under a docker container no

                      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, I was able to run the script on 2 different VMs where MagicMirror is failing to run. In both cases, it still doesn’t run. Th script reported substantially more space available after running, but MagicMirror still doesn’t run. While I am approaching the point where it will be more efficient of my time and yours to just create a 3rd VM, I will post the output of pm2 status below, in case it happens to shed any light on the subject:

                        al@MM-Dev-VM:~/MagicMirror$ pm2 status
                        SyntaxError: Unexpected end of JSON input
                            at JSON.parse (<anonymous>)
                            at Configuration.getAllSync (/usr/local/lib/node_modules/pm2/lib/Configuration.js:299:17)
                            at Configuration.getSync (/usr/local/lib/node_modules/pm2/lib/Configuration.js:270:30)
                            at new API (/usr/local/lib/node_modules/pm2/lib/API.js:116:44)
                            at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/binaries/CLI.js:27:11)
                            at Module._compile (node:internal/modules/cjs/loader:1706:14)
                            at Object..js (node:internal/modules/cjs/loader:1839:10)
                            at Module.load (node:internal/modules/cjs/loader:1441:32)
                            at Function._load (node:internal/modules/cjs/loader:1263:12)
                            at TracingChannel.traceSync (node:diagnostics_channel:328:14)
                        SyntaxError: Unexpected end of JSON input
                            at JSON.parse (<anonymous>)
                            at Configuration.getAllSync (/usr/local/lib/node_modules/pm2/lib/Configuration.js:299:17)
                            at Configuration.getSync (/usr/local/lib/node_modules/pm2/lib/Configuration.js:270:30)
                            at module.exports [as list] (/usr/local/lib/node_modules/pm2/lib/API/UX/pm2-ls.js:470:32)
                            at doList (/usr/local/lib/node_modules/pm2/lib/API.js:1758:12)
                            at /usr/local/lib/node_modules/pm2/lib/API.js:1728:7
                            at /usr/local/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
                            at Parser.<anonymous> (/usr/local/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
                            at Parser.emit (node:events:519:28)
                            at Parser._write (/usr/local/lib/node_modules/pm2/node_modules/amp/lib/stream.js:91:16)
                        ┌────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                        │ id │ name      │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
                        └────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                        al@MM-Dev-VM:~/MagicMirror$
                        
                        
                        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
                        • 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