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.

    MMM-PIR-Sensor error

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 3 Posters 898 Views 3 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 Offline
      JoeFranz
      last edited by

      After the update I only have a black screen with the MMM-PIR-Sensor module.
      This is shown in the PM2 log:

      0|MagicMir | NODE_MODULE_VERSION 89. Please try re-compiling or re-installing
      0|MagicMir | the module (for instance, using npm rebuild or npm install).
      0|MagicMir | at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
      0|MagicMir | at Object.Module._extensions…node (internal/modules/cjs/loader.js:1138:18)
      0|MagicMir | at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1846)
      0|MagicMir | at Module.load (internal/modules/cjs/loader.js:935:32)
      0|MagicMir | at Module._load (internal/modules/cjs/loader.js:776:14)
      0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
      0|MagicMir | at Module.require (internal/modules/cjs/loader.js:959:19)
      0|MagicMir | at require (internal/modules/cjs/helpers.js:88:18)
      0|MagicMir | at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
      0|MagicMir | at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
      0|MagicMir | [08.10.2021 15:34.20.030] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [08.10.2021 15:34.20.033] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

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

        @joefranz the binary library used by this module was not built to run with this electron version

        do

        cd ~/MagicMirror
        npm install electron-rebuild
        cd modules/MMM-PIR-Sensor
        ~/MagicMirror/node_modules/.bin/electron-rebuild
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J C 2 Replies Last reply Reply Quote 0
        • J Offline
          JoeFranz @sdetweil
          last edited by

          @sdetweil said in MMM-PIR-Sensor error:

          ~/MagicMirror/node_modules/.bin/electron-rebuild

          Thank you, works again :thumbs_up: :thumbs_up: :slightly_smiling_face:

          1 Reply Last reply Reply Quote 0
          • C Offline
            ChrizZz @sdetweil
            last edited by ChrizZz

            @sdetweil I have the same error, tried your commands but running into another issue:

            ⠼ Building module: epoll, Completed: 0make: Verzeichnis „/home/pi/MagicMirror/mo                                                                                                                                                             dules/MMM-PIR-Sensor/node_modules/epoll/build“ wird betreten
              CXX(target) Release/obj.target/epoll/src/epoll.o
            ⠴ Building module: epoll, Completed: 0In file included from ../../nan/nan.h:288                                                                                                                                                              ,
                             from ../src/epoll.cc:15:
            ../../nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>:                                                                                                                                                             :TypedArrayContents(v8::Local<v8::Value>)’:
            ../../nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no                                                                                                                                                              member named ‘GetContents’; did you mean ‘IsContext’?
                   data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
                                                       ^~~~~~~~~~~
                                                       IsContext
            ⠏ Building module: epoll, Completed: 0make: *** [epoll.target.mk:117: Release/ob                                                                                                                                                             j.target/epoll/src/epoll.o] Fehler 1
            make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epol                                                                                                                                                             l/build“ wird verlassen
            ✖ Rebuild Failed
            
            An unhandled error occurred inside electron-rebuild
            node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_mod                                                                                                                                                             ules/epoll'.
            For more information, rerun with the DEBUG environment variable set to "electron                                                                                                                                                             -rebuild".
            
            Error: `make` failed with exit code: 2
            
            
            
            Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/n                                                                                                                                                             ode_modules/epoll'.
            For more information, rerun with the DEBUG environment variable set to "electron                                                                                                                                                             -rebuild".
            
            Error: `make` failed with exit code: 2
            
            
                at NodeGyp.rebuildModule (/home/pi/MagicMirror/node_modules/electron-rebuild                                                                                                                                                             /lib/src/module-type/node-gyp.js:109:19)
                at processTicksAndRejections (internal/process/task_queues.js:95:5)
                at async ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/node_mod                                                                                                                                                             ules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
                at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/node_modules/electr                                                                                                                                                             on-rebuild/lib/src/rebuild.js:226:9)
                at async Rebuilder.rebuild (/home/pi/MagicMirror/node_modules/electron-rebui                                                                                                                                                             ld/lib/src/rebuild.js:184:17)
                at async /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js:1                                                                                                                                                             54:9
            
            

            Do you have an idea how to solve it?

            //edit: Just removed the MMM-PIR-Sensor directory, cloned it again from GitHub and made a fresh installation worked. Seems like I messed up the node_modules folder.

            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