Read the statement by Michael Teeuw here.
Problem whit MMM-PIE-Sensor modules
-
Hello, and happy new year, After a new update of magic mirror, pir modules don’t work.
pi@raspberrypi:~ $ cd MagicMirror
pi@raspberrypi:~/MagicMirror $ npm startmagicmirror@2.18.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[01.01.2022 23:44.15.704] [LOG] Starting MagicMirror: v2.18.0
[01.01.2022 23:44.15.712] [LOG] Loading config …
[01.01.2022 23:44.15.720] [LOG] Loading module helpers …
[01.01.2022 23:44.15.765] [ERROR] 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’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
[01.01.2022 23:44.15.767] [LOG] Loading module helpers …
[01.01.2022 23:44.15.774] [ERROR] App threw an error during load
[01.01.2022 23:44.15.776] [ERROR] Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions…node (node:internal/modules/cjs/loader:1199:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:94:18)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
[01.01.2022 23:44.15.778] [ERROR] Whoops! There was an uncaught exception…
[01.01.2022 23:44.15.784] [ERROR] Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions…node (node:internal/modules/cjs/loader:1199:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:94:18)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
code: ‘ERR_DLOPEN_FAILED’
}
[01.01.2022 23:44.15.787] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[01.01.2022 23:44.15.788] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[01.01.2022 23:44.16.160] [LOG] Launching application.
[01.01.2022 23:44.23.203] [LOG] Shutting down server…
[01.01.2022 23:44.23.209] [ERROR] Whoops! There was an uncaught exception…
[01.01.2022 23:44.23.216] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
at App. (/home/pi/MagicMirror/js/electron.js:139:7)
at App.emit (node:events:394:28)
at appMethod (node:electron/js2c/browser_init:69:1830 -
@mecco86 in the MMM-PIR-Sensor folder do
npm rebuildhttps://docs.npmjs.com/cli/v7/commands/npm-rebuild
actually, don’t do that
that is needed for server only mode
docd ~/MagicMirror npm install electron-rebuild --save cd modules/MMM-PIR-Sensor ../../node_modules/bin/electron-rebuild -
@sdetweil don’t work here :-(
/home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
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 | code: ‘ERR_DLOPEN_FAILED’
0|MagicMir | }
0|MagicMir | [02.01.2022 17:15.53.329] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|MagicMir | [02.01.2022 17:15.53.332] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
0|MagicMir | [4288:0102/171555.340330:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
0|MagicMir | [4321:0102/171555.638445:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
0|MagicMir | [02.01.2022 17:18.59.907] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [02.01.2022 17:18.59.912] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
0|MagicMir | at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
0|MagicMir | at App. (/home/pi/MagicMirror/js/electron.js:139:7)
0|MagicMir | at App.emit (node:events:394:28)
0|MagicMir | [02.01.2022 17:18.59.913] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|MagicMir | [02.01.2022 17:18.59.914] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues -
-
@bugsounet said in Problem whit MMM-PIE-Sensor modules:
node -v
pi@raspberrypi:~/MagicMirror $ node -v
v16.13.1It works now, thank you :-)
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