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.

    ENOMEM errors coming from UpdateNotification and MMM-PIR-Sensor modules

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 3.3k 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.
    • M Offline
      malicious_banjo
      last edited by

      My mirror has crashed twice in the past 24 hours due to ENOMEM errors, the stack trace from the error log is as follows:

      { Error: spawn ENOMEM
          at exports._errnoException (util.js:1022:11)
          at ChildProcess.spawn (internal/child_process.js:313:11)
          at Object.exports.spawn (child_process.js:399:9)
          at Git._schedule (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1249:42)
          at Git._run (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1231:12)
          at Git.fetch (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:317:19)
          at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:64:11
          at Array.forEach (native)
          at Class.preformFetch (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:63:14)
          at Timeout._onTimeout (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:83:9) code: 'ENOMEM', errno: 'ENOMEM', syscall: 'spawn' }
      { Error: spawn ENOMEM
          at exports._errnoException (util.js:1022:11)
          at ChildProcess.spawn (internal/child_process.js:313:11)
          at exports.spawn (child_process.js:399:9)
          at Object.exports.execFile (child_process.js:160:15)
          at Object.module.(anonymous function) [as execFile] (ELECTRON_ASAR.js:200:20)
          at exports.exec (child_process.js:120:18)
          at childProcess.(anonymous function) (ELECTRON_ASAR.js:685:22)
          at Class.deactivateMonitor (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:37:7)
          at Timeout._onTimeout (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:74:18)
          at ontimeout (timers.js:365:14) code: 'ENOMEM', errno: 'ENOMEM', syscall: 'spawn' }
      
      

      I’ve had the mirror running for about a week, this is the first time I’m coming across this. Does anyone know what I can do to resolve this?

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

        @malicious_banjo said in ENOMEM errors coming from UpdateNotification and MMM-PIR-Sensor modules:

        ENOMEM errors

        What modules are you running? It’s an out of memory error…

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          malicious_banjo @cowboysdude
          last edited by

          @cowboysdude Oh, my bad. Those two are both the modules that failed both times, assumed they were the root cause.
          Modules:

          • UpdateNotification
          • default Clock
          • default Calendar
          • default Compliments
          • default CurrentWeather
          • default Weatherforecast
          • default NewsFeed
          • MMM-Scrobbler
          • MMM-My-Commute
          • MMM-pihole-stats
          • phone notifications
          1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer
            last edited by yawns

            Comment out all of these:

            MMM-Scrobbler
            MMM-My-Commute
            MMM-pihole-stats
            phone notifications

            like this:

                      {
                        disabled: true,
                        module: 'MMM-NPMWeather',
                        position: 'bottom_bar',	
            		config: {
            				location: "76123",
            				read: "F",
            				maxWidth: "50%"
            			}
                        },
            

            just add disabled: true, to the top of each one like the example then try rerunning the mirror…
            If it runs okay then one at a time change the true to false… and rerun…

            That’s troubleshooting to see if any of the modules are causing this issue.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              malicious_banjo @cowboysdude
              last edited by

              @cowboysdude I’m expecting the error to come from the pihole module, it didn’t start happening until I added that yesterday.
              If/when I diagnose that it’s the source, how would you recommend I fix it?

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

                @malicious_banjo said in ENOMEM errors coming from UpdateNotification and MMM-PIR-Sensor modules:

                pihole module

                I would suggest uninstalling the pihole module… pihole uninstall [I believe I read somewhere]

                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