Read the statement by Michael Teeuw here.
MM cant boot, wont boot!
-
@sdetweil Im sorry, where do i do this at?
-
@Cyric on the mirror black screen
-
@sdetweil when I go into the developer console, it says " devtools was disconnected from the page. Once the page is reloaded, devtools will automatically reconnect."
If I x out of that and go to console, it’s empty.
-
More troubleshooting: I deleted the config.js and it loaded and said I needed to load a config.js file. I loaded the sample one, and it went back ot being a black screen.
-
@Cyric ok, where do u start mm? pm2 or nom start manually
if pm2 do
pm2 logs --lines=100
if nom start, the console output is right there.
let us know what u find
-
@sdetweil Here is what it gave me when i tried npm start:
"magicmirror@2.11.0 start /home/pi/MagicMirrorDISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[2020-07-02 21:33:26.029] [LOG] Starting MagicMirror: v2.11.0
[2020-07-02 21:33:26.054] [LOG] Loading config …
[2020-07-02 21:33:26.071] [LOG] Loading module helpers …
[2020-07-02 21:33:26.079] [LOG] No helper found for module: alert.
[2020-07-02 21:33:26.249] [LOG] Initializing new module helper …
[2020-07-02 21:33:26.251] [LOG] Module helper loaded: updatenotification
[2020-07-02 21:33:26.253] [LOG] No helper found for module: clock.
[2020-07-02 21:33:26.279] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘ical’
Require stack:- /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
- /home/pi/MagicMirror/modules/default/calendar/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[2020-07-02 21:33:26.282] [LOG] Loading module helpers …
[2020-07-02 21:33:26.284] [LOG] No helper found for module: alert.
[2020-07-02 21:33:26.286] [LOG] Initializing new module helper …
[2020-07-02 21:33:26.287] [LOG] Module helper loaded: updatenotification
[2020-07-02 21:33:26.289] [LOG] No helper found for module: clock.
[2020-07-02 21:33:26.300] [ERROR] App threw an error during load
[2020-07-02 21:33:26.303] [ERROR] Error: Cannot find module ‘ical’
Require stack:- /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
- /home/pi/MagicMirror/modules/default/calendar/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
[2020-07-02 21:33:26.308] [ERROR] Whoops! There was an uncaught exception…
[2020-07-02 21:33:26.310] [ERROR] Error: Cannot find module ‘ical’
Require stack: - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
- /home/pi/MagicMirror/modules/default/calendar/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js’,
‘/home/pi/MagicMirror/modules/default/calendar/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[2020-07-02 21:33:26.337] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-07-02 21:33:26.338] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues"
-
@Cyric >Cannot find module ‘ical’
hm…
the calendar reader module is not foundcan you do
cd ~/MagicMirror rm package-lock.json rm -rf node_ modules npm install
-
I ran that, then did npm start again. It told me: "> magicmirror@2.11.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[2020-07-03 07:35:17.160] [ERROR] App threw an error during load
[2020-07-03 07:35:17.189] [ERROR] Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
Require stack:- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/home/pi/MagicMirror/js/app.js:12:22)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
Require stack: - /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/home/pi/MagicMirror/js/app.js:12:22)
at Module._compile (internal/modules/cjs/loader.js:786:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)"
Now it won’t load the black screen. I have not rebooted yet.
-
@Cyric weird
docd ~/MagicMirror git checkout modules/default/defaultmodules.js
then try npm start again
-
This post is deleted!