• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

NODE.JS problem after 2.19

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 3 Posters 553 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.
  • S Offline
    selyjohns
    last edited by Apr 2, 2022, 10:22 AM

    Hi,
    My MM doesn’t work anymore since last update this morning.
    It seem to be a problem with PIR SENSOR module. Look like a problem with the version of node.js, but my knowledge is too bad to understand the problem…

    Can someone could help me please ?
    Thank you in advance.

    Here’s the pm2 logs.

    /home/pi/.pm2/logs/mm-out.log last 15 lines:
    0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    0|mm       |
    0|mm       | [02.04.2022 12:16.33.654] [LOG]   Starting MagicMirror: v2.19.0
    0|mm       | [02.04.2022 12:16.33.674] [LOG]   Loading config ...
    0|mm       | [02.04.2022 12:16.33.691] [LOG]   Loading module helpers ...
    0|mm       | [02.04.2022 12:16.33.843] [LOG]   Initializing new module helper ...
    0|mm       | [02.04.2022 12:16.33.849] [LOG]   Module helper loaded: MMM-ModuleScheduler
    0|mm       | [02.04.2022 12:16.33.914] [LOG]   Loading module helpers ...
    0|mm       | [02.04.2022 12:16.33.918] [LOG]   Initializing new module helper ...
    0|mm       | [02.04.2022 12:16.33.923] [LOG]   Module helper loaded: MMM-ModuleScheduler
    0|mm       | [02.04.2022 12:16.34.531] [LOG]   Launching application.
    0|mm       |
    0|mm       | > magicmirror@2.19.0 start
    0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    0|mm       |
    
    0|mm  | [02.04.2022 12:20.46.159] [LOG]
    0|mm  | Starting MagicMirror: v2.19.0
    0|mm  | [02.04.2022 12:20.46.181] [LOG]
    0|mm  | Loading config ...
    0|mm  | [02.04.2022 12:20.46.197] [LOG]
    0|mm  | Loading module helpers ...
    0|mm  | [02.04.2022 12:20.46.348] [LOG]
    0|mm  | Initializing new module helper ...
    0|mm  | [02.04.2022 12:20.46.353] [LOG]
    0|mm  | Module helper loaded: MMM-ModuleScheduler
    0|mm  | [02.04.2022 12:20.46.415] [ERROR]
    0|mm  | WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
    0|mm  | was compiled against a different Node.js version using
    0|mm  | NODE_MODULE_VERSION 93. This version of Node.js requires
    0|mm  | NODE_MODULE_VERSION 101. Please try re-compiling or re-installing
    0|mm  | the module (for instance, using `npm rebuild` or `npm install`).
    0|mm  | [02.04.2022 12:20.46.419] [LOG]
    0|mm  | Loading module helpers ...
    0|mm  | [02.04.2022 12:20.46.422] [LOG]
    0|mm  | Initializing new module helper ...
    0|mm  | [02.04.2022 12:20.46.428] [LOG]
    0|mm  | Module helper loaded: MMM-ModuleScheduler
    0|mm  | [02.04.2022 12:20.46.457] [ERROR]
    0|mm  | App threw an error during load
    0|mm  | [02.04.2022 12:20.46.461] [ERROR]
    0|mm  | Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
    0|mm  | was compiled against a different Node.js version using
    0|mm  | NODE_MODULE_VERSION 93. This version of Node.js requires
    0|mm  | NODE_MODULE_VERSION 101. Please try re-compiling or re-installing
    0|mm  | the module (for instance, using `npm rebuild` or `npm install`).
    0|mm  |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
    0|mm  |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
    0|mm  |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
    0|mm  |     at Module.load (node:internal/modules/cjs/loader:988:32)
    0|mm  |     at Module._load (node:internal/modules/cjs/loader:829:12)
    0|mm  |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    0|mm  |     at Module.require (node:internal/modules/cjs/loader:1012:19)
    0|mm  |     at require (node:internal/modules/cjs/helpers:102:18)
    0|mm  |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
    0|mm  |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
    0|mm  | [02.04.2022 12:20.46.465] [ERROR]
    0|mm  | Whoops! There was an uncaught exception...
    0|mm  | [02.04.2022 12:20.46.481] [ERROR]
    0|mm  | Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
    0|mm  | was compiled against a different Node.js version using
    0|mm  | NODE_MODULE_VERSION 93. This version of Node.js requires
    0|mm  | NODE_MODULE_VERSION 101. Please try re-compiling or re-installing
    0|mm  | the module (for instance, using `npm rebuild` or `npm install`).
    0|mm  |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
    0|mm  |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
    0|mm  |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
    0|mm  |     at Module.load (node:internal/modules/cjs/loader:988:32)
    0|mm  |     at Module._load (node:internal/modules/cjs/loader:829:12)
    0|mm  |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    0|mm  |     at Module.require (node:internal/modules/cjs/loader:1012:19)
    0|mm  |     at require (node:internal/modules/cjs/helpers:102:18)
    0|mm  |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
    0|mm  |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
    0|mm  |   code: 'ERR_DLOPEN_FAILED'
    0|mm  | }
    0|mm  | [02.04.2022 12:20.46.486] [ERROR]
    0|mm  | MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm  | [02.04.2022 12:20.46.488] [ERROR]
    0|mm  | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm  | [02.04.2022 12:20.47.011] [LOG]
    0|mm  | Launching application.
    0|mm  | [27831:0402/122047.955144:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
    0|mm  | [27864:0402/122048.123836:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
    
    T 1 Reply Last reply Apr 2, 2022, 2:15 PM Reply Quote 0
    • S Offline
      selyjohns
      last edited by Apr 2, 2022, 12:24 PM

      Hi,
      Please look like at
      https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more/24?_=1648901728548

      So no solution.
      Problem “solved”.

      Nice day.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tanvir586 @selyjohns
        last edited by Apr 2, 2022, 2:15 PM

        @selyjohns hi can you try
        Cd MagicMirror/modules/MMM-PIR-Sensor
        And then
        npm i magicmirror-rebuild
        Then
        ./node_modules/.bin/MagicMirror-rebuild

        It might work.

        S 1 Reply Last reply Apr 2, 2022, 3:01 PM Reply Quote 0
        • S Away
          sdetweil @tanvir586
          last edited by Apr 2, 2022, 3:01 PM

          @tanvir586 said in NODE.JS problem after 2.19:
          MagicMirror-rebuild author said because this module is archived, he won’t fix his rebuild tool for it anymore

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            2/4
            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