Read the statement by Michael Teeuw here.
Update from 2.15 to 2.16
-
Hi,
I do have an issue updating to 2.16. As usual I needed to reset the repro (git reset --hard), but few files are there they prevent updating:
Updating 491f5aa7..26a76f80 error: The following untracked working tree files would be overwritten by merge: .github/codecov.yml .husky/.gitignore .husky/pre-commit css/custom.css.sample modules/default/weather/providers/envcanada.js tests/configs/data/calendar_test_recurring.ics tests/configs/data/weatherforecast_data.json tests/configs/modules/alert/default.js tests/configs/modules/calendar/recurring.js tests/configs/modules/weather/forecastweather_units.js tests/e2e/ipWhitelist_spec.js tests/e2e/modules/alert_spec.js tests/unit/mocks/logger.js Please move or remove them before you merge.Just removing them wasn’t a good idea. Eventually the update went through but I did end up with black screen even with npm install on all modules.
@sdetweil
Unfortunately your update script didn’t work either.Any advice?
Thanks!
-
@andyyy black screen is probably because of the removed request and other libs in 2.16
look at the messages where start mm
if npm start, that window
if pm2, the pm2 logs --lines=100u should see a module not found message
-
@andyyy my script won’t help if u do it manually.
but it does give u the chance to save the files so you can continue ( using git stash ) -
I did revert to the last working backup and tried your update script. And here it failed updating with same error message in the log file.
Should I delete all the files in the error file as I did?
-
@andyyy I’ll check out my script
untracked may be the cause.
wonder how u got the files, but not in git…
but the black screen isn’t because of those
-
@andyyy just do git stash
or delete them if u don’t know what they are.then try again
-
@andyyy can u send me the ~/MagiMirror/installers/upgrade.log
| doah, not install , upgrade log… yeesh
my email is the same user ID at gmail
-
I can recreate the problem in my script
I bet u tried the develop branch. and switched back to master, and these files aren’t in master on 2.15, but the final versions are different than the develop versions.
-
Solved for now :)
I did:
sudo git fetch --all sudo git reset --hard origin/master sudo git pull origin masterMy 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-Pollenwill 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!!!
-
I tried it again. Now the electron does not even start.
> magicmirror@2.16.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js sh: 1: ./node_modules/.bin/electron: not foundI tried to re-install electron with "sudo npm install electron@latest
", but no change. -
@bdream so you need to go to the
MMM-DWD-Pollen folder and do
npm install request --save
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