Read the statement by Michael Teeuw here.
fix for black screen in 2.16 and later
-
@darrenhill cool. thx for the feedback
-
@sdetweil
Ran your update script today and now got black screen. Should I still check each module for json files and npm install or will the script have done that already?
How to I go about trying to troubleshoot this ? Any help is much appreciated! -
@np27np27 want to see installers/upgrade.log
same process as listed in post 1
‘request’ is NOT the only library missing
the messages tell you what needs to be added
-
@sdetweil
hi, im getting this error in the pm2 log:/home/pi/.pm2/logs/mm-error.log last 100 lines: 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 | [30.01.2022 19:11.04.155] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [30.01.2022 19:11.04.156] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Gdk-Message: 19:12:35.663: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. 0|mm | 0|mm | [30.01.2022 19:13.00.598] [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' 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 | [30.01.2022 19:13.00.615] [ERROR] App threw an error during load 0|mm | [30.01.2022 19:13.00.618] [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 | [30.01.2022 19:13.00.622] [ERROR] Whoops! There was an uncaught exception... 0|mm | [30.01.2022 19:13.00.632] [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 | [30.01.2022 19:13.00.634] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [30.01.2022 19:13.00.635] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT 0|mm | [31.01.2022 10:27.29.417] [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' 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 | [31.01.2022 10:27.29.428] [ERROR] App threw an error during load 0|mm | [31.01.2022 10:27.29.431] [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 | [31.01.2022 10:27.29.433] [ERROR] Whoops! There was an uncaught exception... 0|mm | [31.01.2022 10:27.29.439] [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 | [31.01.2022 10:27.29.440] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [31.01.2022 10:27.29.441] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
-
Looks like the issue is the PIR sensor module. I believe there is a new PIR module?
-
-
@sdetweil
Thanks, installed the newer PIR module from @bugsounet and all seems to work fine now. Thanks for the help 👍🏾 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@sdetweil Thank you for your instruction.
One question, my modules are in the directory:
home/pi/MagicMirror/modules/default.
You don’t mention the default subdirectory.
I presume that my path is okay, because all the modules are located in this subdirectory. Is that okay?
Thank you. -
@lodevries you should never put your extra modules in the default folder, that is reserved for modules MM ships as part of the package
see the ‘How to add modules’ link in my signature below
-
@lodevries you can move the out pretty easily
cd modules/default
mv whatever-name …
then the config.js shoudl change from
“module”: “default/whatever_name”
to
“module”:“whatever-name”