A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Black screen
-
I have the dreaded black screen. The output of pm2 logs is below.
/home/pi/.pm2/logs/MagicMirror-error.log last 100 lines: 0|MagicMir | at Module._load (internal/modules/cjs/loader.js:732:27) 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 Object.<anonymous> (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:1:17) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) 0|MagicMir | [19.12.2021 20:52.42.139] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [19.12.2021 20:52.42.156] [ERROR] Error: Cannot find module 'simple-git' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMir | at Module._load (internal/modules/cjs/loader.js:732:27) 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 Object.<anonymous> (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:1:17) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { 0|MagicMir | code: 'MODULE_NOT_FOUND', 0|MagicMir | requireStack: [ 0|MagicMir | '/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js', 0|MagicMir | '/home/pi/MagicMirror/js/app.js', 0|MagicMir | '/home/pi/MagicMirror/js/electron.js', 0|MagicMir | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|MagicMir | undefined 0|MagicMir | ] 0|MagicMir | } 0|MagicMir | [19.12.2021 20:52.42.158] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [19.12.2021 20:52.42.160] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | npm ERR! code ELIFECYCLE 0|MagicMir | npm ERR! errno 1 0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` 0|MagicMir | npm ERR! Exit status 1 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2021-12-20T02_15_41_536Z-debug.log 0|MagicMir | [19.12.2021 21:16.26.632] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | [19.12.2021 21:16.26.646] [ERROR] App threw an error during load 0|MagicMir | [19.12.2021 21:16.26.651] [ERROR] Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMir | at Module._load (internal/modules/cjs/loader.js:732:27) 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 Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:9:16) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) 0|MagicMir | [19.12.2021 21:16.26.654] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [19.12.2021 21:16.26.665] [ERROR] Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMir | at Module._load (internal/modules/cjs/loader.js:732:27) 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 Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:9:16) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { 0|MagicMir | code: 'MODULE_NOT_FOUND', 0|MagicMir | requireStack: [ 0|MagicMir | '/home/pi/MagicMirror/modules/default/calendar/node_helper.js', 0|MagicMir | '/home/pi/MagicMirror/js/app.js', 0|MagicMir | '/home/pi/MagicMirror/js/electron.js', 0|MagicMir | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|MagicMir | undefined 0|MagicMir | ] 0|MagicMir | } 0|MagicMir | [19.12.2021 21:16.26.668] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [19.12.2021 21:16.26.669] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines: 0|MagicMir | [19.12.2021 20:13.05.229] [LOG] No helper found for module: weather. 0|MagicMir | [19.12.2021 20:13.05.307] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 20:13.05.309] [LOG] Module helper loaded: newsfeed 0|MagicMir | [19.12.2021 20:13.05.310] [LOG] All module helpers loaded. 0|MagicMir | [19.12.2021 20:13.05.596] [LOG] Starting server on port 8080 ... 0|MagicMir | [19.12.2021 20:13.05.639] [LOG] Server started ... 0|MagicMir | [19.12.2021 20:13.05.641] [LOG] Connecting socket for: updatenotification 0|MagicMir | [19.12.2021 20:13.05.644] [LOG] Connecting socket for: calendar 0|MagicMir | [19.12.2021 20:13.05.645] [LOG] Starting node helper for: calendar 0|MagicMir | [19.12.2021 20:13.05.647] [LOG] Connecting socket for: newsfeed 0|MagicMir | [19.12.2021 20:13.05.648] [LOG] Starting node helper for: newsfeed 0|MagicMir | [19.12.2021 20:13.05.649] [LOG] Sockets connected & modules started ... 0|MagicMir | [19.12.2021 20:13.06.847] [LOG] Launching application. 0|MagicMir | [19.12.2021 20:13.13.741] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|MagicMir | [19.12.2021 20:13.13.947] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 0|MagicMir | [19.12.2021 20:13.14.021] [INFO] Checking git for module: default 0|MagicMir | [19.12.2021 20:13.14.762] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:13.16.845] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:18.15.285] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:18.19.265] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:23.15.841] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:23.20.160] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:28.16.431] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:28.22.395] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:33.16.913] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:33.25.392] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:38.17.430] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:38.26.122] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:39.03.828] [LOG] Shutting down server... 0|MagicMir | [19.12.2021 20:39.03.832] [LOG] Stopping module helper: updatenotification 0|MagicMir | [19.12.2021 20:39.03.833] [LOG] Stopping module helper: calendar 0|MagicMir | [19.12.2021 20:39.03.834] [LOG] Stopping module helper: newsfeed 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:39.08.654] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:39.08.668] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:39.08.681] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:39.08.685] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:39.08.688] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:39.08.690] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:39.08.708] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:39.08.710] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:39.08.712] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:39.08.714] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:39.09.222] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:44.13.732] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:44.13.747] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:44.13.790] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:44.13.794] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:44.13.797] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:44.13.801] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:44.13.823] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:44.13.826] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:44.13.828] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:44.13.830] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:44.14.855] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:51.49.259] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:51.49.277] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:51.49.292] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:51.49.297] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:51.49.313] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:51.49.316] [LOG] No helper found for module: alert. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:52.42.062] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:52.42.079] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:52.42.097] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:52.42.102] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:52.42.118] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:52.42.121] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:52.43.154] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 21:16.26.099] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 21:16.26.114] [LOG] Loading config ... 0|MagicMir | [19.12.2021 21:16.26.131] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 21:16.26.135] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 21:16.26.619] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 21:16.26.621] [LOG] Module helper loaded: updatenotification 0|MagicMir | [19.12.2021 21:16.26.624] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 21:16.26.634] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 21:16.26.637] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 21:16.26.638] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 21:16.26.640] [LOG] Module helper loaded: updatenotification 0|MagicMir | [19.12.2021 21:16.26.642] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 21:16.27.690] [LOG] Launching application.
-
@theaddies looks like you didnt do the npm install in the MagicMirror folder