Read the statement by Michael Teeuw here.
Update from 2.15 to 2.16
-
Solved for now :)
I did:
sudo git fetch --all sudo git reset --hard origin/master sudo git pull origin master
My system is still very fragile. When do npm install after that, the screen turn black after reboot.
-
@andyyy said in Update from 2.15 to 2.16:
the screen turn black after reboot.
again, this si because libraries in 2.15 were removed in 2.16 and some modules didn’t document their requirements properly…
find the MM startup messages (npm start or pm2 logs)
and look for ‘module not found’I REALLY hate reset --hard…
-
@andyyy I uploaded fixes to the upgrade script to handle this…
-
Hi!
I did the upgrade to my system to 2.16Uploading upgrade.log with 600 lines is not possible… because of file format.
After reboot I have only the mouse in the middle of the screen but MM is not working.
Also I’m not able to get a connection wit ma Web-Browser.
Raspberry itself is accessible via SSH.
Any idea?
-
@bdream yes look at the mm startup messages
we call this the black screen -
@sdetweil does it mean I have to do in MagicMirror folder?
sudo git fetch --all sudo git reset --hard origin/master sudo git pull origin master
-
@bdream no. u are probably missing some modules that mm removed
read the startup messages
npm start
or
if using pm2
pm2 logs --lines=100 -
@bdream I strongly guess that one of the 3rd party modules is not compatible vith MM2.16.0. I had the same issues with MMM-MyCalendar, which caused a black screen after starting MM. My approach is to disable all 3rd party modules by adding the line
disabled: true;
for each module and enable it one after the other by setting it to
disabled: false;
Taht might discover quicker, which module is the culprit instead of poking in logs (that is my personal approach!).
When you found the module, that causes issues, contact the developer on github, or look for an alternative fork which seems to be maintained.
Regarding the above mentioned MMM-MyCalendar module, I reverted to the default calendar module, which works just fine and delivers the same features.
-
@fozi come on, this is easy. get the messages. it will tell you which lib to install
-
@sdetweil okay, I’m going to try with messages.
pi@MagicMirror:~ $ pm2 logs --lines=100 [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option) : : /home/pi/.pm2/logs/mm-error.log last 100 lines: 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|mm | - 0|mm | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) 0|mm | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) 0|mm | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (internal/modules/cjs/loader.js:848:27) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|mm | [31.07.2021 03:30.08.854] [ERROR] Whoops! There was an uncaught exception... 0|mm | [31.07.2021 03:30.08.865] [ERROR] Error: Cannot find module 'request' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|mm | - 0|mm | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) 0|mm | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) 0|mm | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (internal/modules/cjs/loader.js:848:27) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js', 0|mm | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|mm | undefined 0|mm | ] 0|mm | } 0|mm | [31.07.2021 03:30.08.868] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [31.07.2021 03:30.08.869] [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 | [02.08.2021 08:40.08.979] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|mm | - 0|mm | [02.08.2021 08:40.09.001] [ERROR] App threw an error during load 0|mm | [02.08.2021 08:40.09.005] [ERROR] Error: Cannot find module 'request' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|mm | - 0|mm | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) 0|mm | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) 0|mm | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (internal/modules/cjs/loader.js:848:27) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|mm | [02.08.2021 08:40.09.007] [ERROR] Whoops! There was an uncaught exception... 0|mm | [02.08.2021 08:40.09.018] [ERROR] Error: Cannot find module 'request' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|mm | - 0|mm | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) 0|mm | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) 0|mm | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (internal/modules/cjs/loader.js:848:27) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js', 0|mm | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|mm | undefined 0|mm | ] 0|mm | } 0|mm | [02.08.2021 08:40.09.021] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [02.08.2021 08:40.09.022] [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/mm-out.log last 100 lines: 0|mm | 0|mm | > magicmirror@2.16.0 start 0|mm | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|mm | 0|mm | [30.07.2021 03:30.08.295] [LOG] Starting MagicMirror: v2.16.0 0|mm | [30.07.2021 03:30.08.304] [LOG] Loading config ... : :
So it looks to me as
MMM-DWD-Pollen
will be the problem.
That is faster, than going withdisabled: true;
anddisabled: false;
over all my modules :crossed_fingers: even it was a guess with the related module to me.@Fozi now i have to see how to deal with your statement “When you found the module, that causes issues, contact the developer on github, or look for an alternative fork which seems to be maintained.”
Comment out this module in config and it works again.
Many thanks for your fast help!!!