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 doesn't work after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 3 Posters 883 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

      Hello,

      pi@MagicMirror:~/MagicMirror $ npm -v
      8.1.4
      pi@MagicMirror:~/MagicMirror $ node -v
      v16.13.0
      pi@MagicMirror:~/MagicMirror $ cat package.json | grep version
              "version": "2.18.0",
      

      Today, I’ve upgraded my MM with the git pull && npm install command.
      At the end, It offered me to upgrade NPM to the 8.3.1, so i’ve do it with the next command : npm install -g npm@8.3.1

      Since, I’ve 2 problem.

      1# My MM can’t launch anymore.
      Here’s associated logs.

      0|mm     | > magicmirror@2.18.0 start
      0|mm     | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm     | [19.01.2022 18:45.29.030] [LOG]
      0|mm     | Starting MagicMirror: v2.18.0
      0|mm     | [19.01.2022 18:45.29.044] [LOG]
      0|mm     | Loading config ...
      0|mm     | [19.01.2022 18:45.29.066] [LOG]
      0|mm     | Loading module helpers ...
      0|mm     | [19.01.2022 18:45.29.132] [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 99. Please try re-compiling or re-installing
      0|mm     | the module (for instance, using `npm rebuild` or `npm install`).
      0|mm     | [19.01.2022 18:45.29.136] [LOG]   Loading module helpers ...
      0|mm     | [19.01.2022 18:45.29.152] [ERROR]
      0|mm     | App threw an error during load
      0|mm     | [19.01.2022 18:45.29.157] [ERROR] 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 99. 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:94: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     | [19.01.2022 18:45.29.161] [ERROR] Whoops! There was an uncaught exception...
      0|mm     | [19.01.2022 18:45.29.176] [ERROR] 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 99. 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:94: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     | [19.01.2022 18:45.29.180] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm     | [19.01.2022 18:45.29.182] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm     | [19.01.2022 18:45.29.676] [LOG]
      0|mm     | Launching application.
      0|mm     | [5653:0119/184530.581252:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [5680:0119/184530.915954:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      

      The problem is no more present if I comment the module MMM-PIR-Sensor in my config.js

      I’ve downgraded npm to the previous version with npm install -g npm@8.1.4, but problem is still present.

      Any idea ?

      2# ERROR:viz_main_impl.cc
      Other problem is the two lines displayed at the end, ever present still MMM-PIR-Sensor present. Here’s pm2 logs without the MMM-PIR-Sensor activated.

      0|mm     | > magicmirror@2.18.0 start
      0|mm     | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm     | [19.01.2022 18:38.31.479] [LOG]
      0|mm     | Starting MagicMirror: v2.18.0
      0|mm     | [19.01.2022 18:38.31.502] [LOG]
      0|mm     | Loading config ...
      0|mm     | [19.01.2022 18:38.31.517] [LOG]
      0|mm     | Loading module helpers ...
      0|mm     | [19.01.2022 18:38.31.937] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.31.941] [LOG]
      0|mm     | Module helper loaded: MMM-Remote-Control
      0|mm     | [19.01.2022 18:38.31.951] [LOG]
      0|mm     | No helper found for module: alert.
      0|mm     | [19.01.2022 18:38.31.963] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.31.965] [LOG]
      0|mm     | Module helper loaded: updatenotification
      0|mm     | [19.01.2022 18:38.31.972] [LOG]
      0|mm     | No helper found for module: clock.
      0|mm     | [19.01.2022 18:38.32.347] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.32.357] [LOG]
      0|mm     | Module helper loaded: calendar
      0|mm     | [19.01.2022 18:38.32.365] [LOG]
      0|mm     | No helper found for module: weather.
      0|mm     | [19.01.2022 18:38.32.566] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.32.574] [LOG]
      0|mm     | Module helper loaded: MMM-VigilanceMeteoFrance
      0|mm     | [19.01.2022 18:38.32.583] [LOG]
      0|mm     | No helper found for module: compliments.
      0|mm     | [19.01.2022 18:38.32.593] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.32.594] [LOG]   Module helper loaded: MMM-Jeedom
      0|mm     | [19.01.2022 18:38.32.654] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [19.01.2022 18:38.32.655] [LOG]   Module helper loaded: newsfeed
      0|mm     | [19.01.2022 18:38.32.656] [LOG]   All module helpers loaded.
      0|mm     | [19.01.2022 18:38.32.842] [LOG]
      0|mm     | Starting server on port 8080 ...
      0|mm     | [19.01.2022 18:38.32.868] [LOG]
      0|mm     | Server started ...
      0|mm     | [19.01.2022 18:38.32.870] [LOG]   Connecting socket for: MMM-Remote-Control
      0|mm     | [19.01.2022 18:38.32.873] [LOG]   Starting node helper for: MMM-Remote-Control
      0|mm     | [19.01.2022 18:38.32.887] [LOG]
      0|mm     | Connecting socket for: updatenotification
      0|mm     | [19.01.2022 18:38.32.888] [LOG]   Starting module helper: updatenotification
      0|mm     | [19.01.2022 18:38.32.891] [LOG]   Connecting socket for: calendar
      0|mm     | [19.01.2022 18:38.32.899] [LOG]
      0|mm     | Starting node helper for: calendar
      0|mm     | [19.01.2022 18:38.32.901] [LOG]   Connecting socket for: MMM-VigilanceMeteoFrance
      0|mm     | [19.01.2022 18:38.32.902] [LOG]   Starting module helper: MMM-VigilanceMeteoFrance
      0|mm     | [19.01.2022 18:38.32.904] [LOG]   Connecting socket for: MMM-Jeedom
      0|mm     | [19.01.2022 18:38.32.906] [LOG]   Connecting socket for: newsfeed
      0|mm     | [19.01.2022 18:38.32.908] [LOG]   Starting node helper for: newsfeed
      0|mm     | [19.01.2022 18:38.32.909] [LOG]   Sockets connected & modules started ...
      0|mm     | [19.01.2022 18:38.33.395] [LOG]
      0|mm     | Launching application.
      ********0|mm     | [4731:0119/183834.710177:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [4813:0119/183836.346175:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [4863:0119/183837.534871:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization********
      0|mm     | [4887:0119/183837.864415:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|mm     | [19.01.2022 18:38.40.430] [LOG]
      0|mm     | Create new calendarfetcher for url: http://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.491] [LOG]
      0|mm     | Create new calendarfetcher for url: http://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.752] [LOG]
      0|mm     | Create new newsfetcher for url: https://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.765] [LOG]
      0|mm     | Create new newsfetcher for url: https://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.776] [LOG]
      0|mm     | Create new newsfetcher for url: https://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.789] [LOG]
      0|mm     | Create new newsfetcher for url: https://*** - Interval: 300000
      0|mm     | [19.01.2022 18:38.40.819] [INFO]
      0|mm     | Checking git for module: MMM-Remote-Control
      0|mm     | [19.01.2022 18:38.40.956] [INFO]
      0|mm     | Checking git for module: MMM-VigilanceMeteoFrance
      0|mm     | [19.01.2022 18:38.41.114] [INFO]
      0|mm     | Checking git for module: MMM-Jeedom
      0|mm     | [19.01.2022 18:38.41.485] [INFO]
      0|mm     | Checking git for module: default
      0|mm     | [19.01.2022 18:38.41.824] [INFO]
      0|mm     | Newsfeed-Fetcher: Broadcasting 30 items.
      0|mm     | [19.01.2022 18:38.43.049] [INFO]
      0|mm     | Calendar-Fetcher: Broadcasting 10 events.
      0|mm     | [19.01.2022 18:38.43.356] [INFO]
      0|mm     | Newsfeed-Fetcher: Broadcasting 100 items.
      0|mm     | [19.01.2022 18:38.43.794] [INFO]  Newsfeed-Fetcher: Broadcasting 10 items.
      0|mm     | [19.01.2022 18:38.48.372] [INFO]
      0|mm     | Calendar-Fetcher: Broadcasting 7 events.
      0|mm     | [19.01.2022 18:38.51.644] [INFO]
      0|mm     | Newsfeed-Fetcher: Broadcasting 60 items.
      

      I don’t know if these lines was present before update

      [...]
      0|mm     | [4731:0119/183834.710177:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [4813:0119/183836.346175:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [4863:0119/183837.534871:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|mm     | [4887:0119/183837.864415:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      [...]
      

      Si if you have any idea to solve my 2 problem i would appreciate it :)

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

        @selyjohns see
        https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?page=1

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil Perfect ! Thank you for this sharing :)
          I’ve leave a post to thanks bugsounet.

          Si my #1 problem is now solved.
          Any idea for the #2 ? I’ve always theses lines

          0|mm     | [7143:0119/191711.084830:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
          0|mm     | [7219:0119/191711.800740:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
          

          Thank you :)

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

            @selyjohns ignore them nothing we can do.

            u can try my fixsandbox script from here. might work

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            karsten13K 1 Reply Last reply Reply Quote 0
            • karsten13K Offline
              karsten13 @sdetweil
              last edited by

              @sdetweil

              The sandbox error is mentioned in this github electron issue. It’s a chromium bug and everything should still work normally.

              1 Reply Last reply Reply Quote 1
              • S Offline
                selyjohns
                last edited by

                Ok, so I’ll just ignore it.
                Thank you guys, have a nice day.

                1 Reply Last reply Reply Quote 0
                • 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