Read the statement by Michael Teeuw here.
MM Not Displaying after update
-
@achilles (a lot or lines ) aka 100
So, this is another case where to update didn’t work well… as electron didn’t get upgraded, but messed up …
SO…
ugly recovery
rename the MagiMirror/modules/default folder to default2
rename the MM folder to something elseinstall MM again
(Use my script) see https://github.com/sdetweil/MagicMirror_scripts
verify it worksthen copy the savedMagicMirror/modules folder over the MagicMirror folder
cp -r -p ~/oldMMname/modules ~/Magicmirror/modules
and then copy your old config,js to the new MM/config folder
test it out
Now, its still possible to have the module not found problem.
I am going to bed now, but in case
if u find module not found, take the name (valid-url, request) and do npm install ??? while in the MM folder
my upgrade script MIGHT have helped avoid all this… (I say might, cause I haven’t seen it myself, but I never upgrade manually)
-
@sdetweil Thanks, I am doing this now. Will respond back when I finish…
-
This post is deleted! -
@sdetweil Thank you so much for your help on this. I ran your script, and the MagicMirror was working minus my modules, of course. I copied over my config file, and only three of my modules displayed. I rebooted my raspberry pi, and then MagicMirror would not display at all. Here are the logs:
Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~ $ pm2 logs MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 0|MagicMir | [09.08.2021 01:34.41.419] [LOG] Connecting socket for: currentweather 0|MagicMir | [09.08.2021 01:34.41.423] [LOG] Connecting socket for: newsfeed 0|MagicMir | [09.08.2021 01:34.41.425] [LOG] Starting node helper for: newsfeed 0|MagicMir | [09.08.2021 01:34.41.426] [LOG] Sockets connected & modules started ... 0|MagicMir | [09.08.2021 01:34.42.061] [LOG] Launching application. 0|MagicMir | [09.08.2021 01:34.49.566] [LOG] Shutting down server... 0|MagicMir | [09.08.2021 01:36.01.706] [LOG] Starting MagicMirror: v2.16.0 0|MagicMir | [09.08.2021 01:37.27.498] [LOG] [SIGINT] Received. Shutting down server... 0|MagicMir | [09.08.2021 01:37.29.125] [LOG] Starting MagicMirror: v2.16.0 0|MagicMir | [09.08.2021 02:01.15] [LOG] [SIGINT] Received. Shutting down server... 0|MagicMir | [09.08.2021 02:01.17.151] [LOG] Starting MagicMirror: v2.16.0 0|MagicMir | [09.08.2021 02:06.47.453] [LOG] [SIGINT] Received. Shutting down server... 0|MagicMir | [09.08.2021 02:06.49.001] [LOG] Starting MagicMirror: v2.16.0 0|MagicMir | [09.08.2021 02:07.10.237] [LOG] [SIGINT] Received. Shutting down server... 0|MagicMir | [09.08.2021 02:07.11.810] [LOG] Starting MagicMirror: v2.16.0 /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:778:12) 0|MagicMir | [09.08.2021 02:07.11.831] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [09.08.2021 02:07.11.835] [ERROR] TypeError: Cannot read property 'on' of undefined 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:98:5) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1072:14) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) 0|MagicMir | at Module.load (internal/modules/cjs/loader.js:937:32) 0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:778:12) 0|MagicMir | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:75:21) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1072:14) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) 0|MagicMir | at Module.load (internal/modules/cjs/loader.js:937:32) 0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:778:12) 0|MagicMir | [09.08.2021 02:07.11.837] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [09.08.2021 02:07.11.839] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
I do have an internet connection working, so that is not the issue…you see anything?
Thanks again.
-
@achilles I would go thru each module folder and check for package.json file
if present do an npm install in each such module folder.
I would use npm start in the MagicMirror folder (and ctrl-q on mm screen) til u get it all working, then use pm2 to start
so pm2 stop all
then do above, then pm2 start 0
then reboot -
@sdetweil Thank you…quick question, as I have followed your above steps…what if the module does not have the package.json file? Should I continue with those that do and then to the pm2 to start, or do I need to go back and do something with those modules that do not have the package.json file before I npm start?
-
@achilles you can look in the modules without a package.json, to see if they have a node_helper.js, and if they have one, check for require(‘???’)
where ??? is NOT node_helper
if they have those types of require, then they are dependent on mm providing the library
request and valid-url
are two we know modules didn’t document.
(because it just worked) -
@sdetweil When I run npm start, I just get a black screen. Does this mean every one of my modules is wrong?
-
@achilles no. look at the messages
-
@sdetweil Okay, so when it says 'no helper found for the module, it is missing the node_helper,js, correct?