Solved I lost MMM-Weather and MMM-Shom after upgrading MM 2.12 to 2.17
-
Hello,
I had been several months since I last touched my MM because the configuration suited me , BUT for several days, I lost the MMM-MarineWeather module. I updated my MM which was in 2.12 which is now 2.17 (I used the sdetweil commandbash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
BUT MMM-MarineWeather still not work, It still loading…
AND I have lost 2 modules : MMM-Weather and MMM-Shom , I Have trynpm install -g npm
but I have this (see the enclosed : https://www.cjoint.com/c/KKopWKz3GpT)Finally, after upgrade 2.17 I have on the top of my screen “a new update is available”
My MM when it’s work well :
https://zupimages.net/viewer.php?id=21/45/8lhx.pngMy MM now :
https://zupimages.net/viewer.php?id=21/45/5non.pngThanks for your help
-
Hi,
Finally, after upgrade 2.17 I have on the top of my screen “a new update is available”
that you can see, you are again in v2.12.0 (MMM-Tools says it)
try to upgrade it properly and retry
cd ~/MagicMirror git reset --hard git pull npm install
-
I do this but I have a black screen and the “Electron” problem is back…
https://zupimages.net/viewer.php?id=21/45/i64n.png -
past log from start of MM for correct ?
-
yes, after past the commands that you said everything went well, but I often had this problem after updating MM, that’s why I was reluctant to update my MM And then the problem came back and i don’t know how to do it each time…
-
just describe the problem and past log from start of MM and we (Helpers or me) are able to correct your problem
Why ?
Because logs says all -
How to past the log ?
-
The last photo of my screen I have post is after reboot my MM (https://zupimages.net/viewer.php?id=21/45/i64n.png)
-
That i understand… you use pm2 app
so, stop pm2 processpm2 stop 0
when pm2 process of MM is stopped
try this:
cd ~/MagicMirror npm start
you will have all logs… copy it and past it there
-
I do this : “pm2 stop 0” then “cd ~/MagicMirror” then “npm start” and I have a black screen after , my log is :
pi@raspberrypi:~ $ pm2 stop 0
[PM2] Applying action stopProcessId on app [0](ids: 0)
[PM2] mm ✓
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0 │ mm │ fork │ 0 │ stopped │ 0% │ 0b │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
pi@raspberrypi:~ $ cd ~/MagicMirror
pi@raspberrypi:~/MagicMirror $ npm startmagicmirror@2.17.1 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[14.11.2021 17:53.41.098] [LOG] Starting MagicMirror: v2.17.1
[14.11.2021 17:53.41.105] [LOG] Loading config …
[14.11.2021 17:53.41.112] [LOG] Loading module helpers …
[14.11.2021 17:53.41.115] [LOG] No helper found for module: alert.
[14.11.2021 17:53.41.133] [LOG] Initializing new module helper …
[14.11.2021 17:53.41.134] [LOG] Module helper loaded: updatenotification
[14.11.2021 17:53.41.135] [LOG] No helper found for module: clock.
[14.11.2021 17:53.41.238] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘uuid’
Require stack:- /home/pi/MagicMirror/node_modules/node-ical/ical.js
- /home/pi/MagicMirror/node_modules/node-ical/node-ical.js
- /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
[14.11.2021 17:53.41.239] [LOG] Loading module helpers …
[14.11.2021 17:53.41.240] [LOG] No helper found for module: alert.
[14.11.2021 17:53.41.241] [LOG] Initializing new module helper …
[14.11.2021 17:53.41.242] [LOG] Module helper loaded: updatenotification
[14.11.2021 17:53.41.243] [LOG] No helper found for module: clock.
[14.11.2021 17:53.41.250] [ERROR] App threw an error during load
[14.11.2021 17:53.41.254] [ERROR] Error: Cannot find module ‘uuid’
Require stack:- /home/pi/MagicMirror/node_modules/node-ical/ical.js
- /home/pi/MagicMirror/node_modules/node-ical/node-ical.js
- /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:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node-ical/ical.js:3:20)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
[14.11.2021 17:53.41.256] [ERROR] Whoops! There was an uncaught exception…
[14.11.2021 17:53.41.263] [ERROR] Error: Cannot find module ‘uuid’
Require stack: - /home/pi/MagicMirror/node_modules/node-ical/ical.js
- /home/pi/MagicMirror/node_modules/node-ical/node-ical.js
- /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:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node-ical/ical.js:3:20)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/node_modules/node-ical/ical.js’,
‘/home/pi/MagicMirror/node_modules/node-ical/node-ical.js’,
‘/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
]
}
[14.11.2021 17:53.41.267] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[14.11.2021 17:53.41.268] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[14.11.2021 17:53.41.579] [LOG] Launching application.
^C[14.11.2021 17:54.36.971] [LOG] Shutting down server…
[14.11.2021 17:54.36.974] [LOG] Stopping module helper: updatenotification
[14.11.2021 17:54.36.975] [LOG] Stopping module helper: updatenotification
[14.11.2021 17:54.36.976] [ERROR] Whoops! There was an uncaught exception…
[14.11.2021 17:54.36.979] [ERROR] TypeError: Cannot read property ‘close’ of undefined
at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
at App.<anonymous> (/home/pi/MagicMirror/js/electron.js:139:7)
at App.emit (events.js:315:20)
[14.11.2021 17:54.36.980] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[14.11.2021 17:54.36.981] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
pi@raspberrypi:~/MagicMirror $
-
right
It’s related to bad install of MM, we try to fix it
can you try this:
cd ~/MagicMirror rm -rf node_modules git reset --hard npm install
when done
npm start
and past again resultNote, i destruct all library of MM and i recontruct it (like a clean install)
-
After that and
npm start
still black screen…
my log :pi@raspberrypi:~ $ cd ~/MagicMirror pi@raspberrypi:~/MagicMirror $ rm -rf node_modules pi@raspberrypi:~/MagicMirror $ git reset --hard HEAD est maintenant à 222a5f377 Merge pull request #2674 from rejas/issue_2671_master pi@raspberrypi:~/MagicMirror $ npm install npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! > electron-chromedriver@13.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver > node ./download-chromedriver.js > core-js@3.15.2 postinstall /home/pi/MagicMirror/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > electron@13.5.1 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js > spectron@15.0.0 postinstall /home/pi/MagicMirror/node_modules/spectron > node lib/rpath-fix.js > magicmirror@2.17.1 install /home/pi/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... audited 9 packages in 0.91s found 0 vulnerabilities > magicmirror@2.17.1 postinstall /home/pi/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.17.1 install-fonts /home/pi/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... audited 1 package in 2.692s found 0 vulnerabilities MagicMirror installation finished successfully! > magicmirror@2.17.1 prepare /home/pi/MagicMirror > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed. husky - Git hooks installed npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) added 916 packages from 1075 contributors and audited 918 packages in 196.118s 109 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.17.1 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [14.11.2021 18:09.44.063] [LOG] Starting MagicMirror: v2.17.1 [14.11.2021 18:09.44.072] [LOG] Loading config ... [14.11.2021 18:09.44.080] [LOG] Loading module helpers ... [14.11.2021 18:09.44.085] [LOG] No helper found for module: alert. [14.11.2021 18:09.44.106] [LOG] Initializing new module helper ... [14.11.2021 18:09.44.107] [LOG] Module helper loaded: updatenotification [14.11.2021 18:09.44.108] [LOG] No helper found for module: clock. [14.11.2021 18:09.44.207] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'uuid' Require stack: - /home/pi/MagicMirror/node_modules/node-ical/ical.js - /home/pi/MagicMirror/node_modules/node-ical/node-ical.js - /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 - [14.11.2021 18:09.44.208] [LOG] Loading module helpers ... [14.11.2021 18:09.44.209] [LOG] No helper found for module: alert. [14.11.2021 18:09.44.210] [LOG] Initializing new module helper ... [14.11.2021 18:09.44.211] [LOG] Module helper loaded: updatenotification [14.11.2021 18:09.44.212] [LOG] No helper found for module: clock. [14.11.2021 18:09.44.218] [ERROR] App threw an error during load [14.11.2021 18:09.44.222] [ERROR] Error: Cannot find module 'uuid' Require stack: - /home/pi/MagicMirror/node_modules/node-ical/ical.js - /home/pi/MagicMirror/node_modules/node-ical/node-ical.js - /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:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node-ical/ical.js:3:20) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) [14.11.2021 18:09.44.224] [ERROR] Whoops! There was an uncaught exception... [14.11.2021 18:09.44.231] [ERROR] Error: Cannot find module 'uuid' Require stack: - /home/pi/MagicMirror/node_modules/node-ical/ical.js - /home/pi/MagicMirror/node_modules/node-ical/node-ical.js - /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:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node-ical/ical.js:3:20) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/node_modules/node-ical/ical.js', '/home/pi/MagicMirror/node_modules/node-ical/node-ical.js', '/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 ] } [14.11.2021 18:09.44.236] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [14.11.2021 18:09.44.236] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [14.11.2021 18:09.44.525] [LOG] Launching application.
-
I suspect an very old node version…
node -v npm -v
give me result ?
-
pi@raspberrypi:~ $ node -v
v10.24.1
pi@raspberrypi:~ $ npm -v
6.14.12
pi@raspberrypi:~ $ -
humm, last version of MM require node v12 and npm v6.14.15
can you try this:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
copy past this line in your terminalwhen done and install done
node -v
? should be v14.X.X -
pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - ## Installing the NodeSource Node.js 14.x repo... ## Populating apt-get cache... + apt-get update Réception de :1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] Atteint :2 https://deb.nodesource.com/node_10.x buster InRelease Réception de :3 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB] Lecture des listes de paquets... Fait E: Le dépôt « http://raspbian.raspberrypi.org/raspbian buster InRelease » a modifié sa valeur « Suite » de « stable » à « oldstable » N: Ceci doit être pleinement accepté avant que les mises à jour depuis ce dépôt puissent être appliquées. Veuillez vous référer aux pages de manuel « apt-secure(8) » pour plus de détails. E: Le dépôt « http://archive.raspberrypi.org/debian buster InRelease » a modifié sa valeur « Suite » de « testing » à « oldstable » N: Ceci doit être pleinement accepté avant que les mises à jour depuis ce dépôt puissent être appliquées. Veuillez vous référer aux pages de manuel « apt-secure(8) » pour plus de détails. Error executing command, exiting pi@raspberrypi:~ $ node -v v10.24.1 pi@raspberrypi:~ $
-
sudo apt-get --allow-releaseinfo-change update
and retry last topic command
(complex… when you never update your pi ^^)
-
pi@raspberrypi:~ $ sudo apt-get --allow-releaseinfo-change update Réception de :1 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB] Réception de :2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] Atteint :3 https://deb.nodesource.com/node_10.x buster InRelease Réception de :4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13,0 MB] Réception de :5 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB] Réception de :6 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58,8 kB] Réception de :7 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB] 13,6 Mo réceptionnés en 9s (1 496 ko/s) Lecture des listes de paquets... Fait N: Le dépôt « http://raspbian.raspberrypi.org/raspbian buster InRelease » a modifié sa valeur « Suite » de « stable » à « oldstable » N: Le dépôt « http://archive.raspberrypi.org/debian buster InRelease » a modifié sa valeur « Suite » de « testing » à « oldstable » pi@raspberrypi:~ $
-
@bugsounet said in I lost MMM-Weather and MMM-Shom after upgrading MM 2.12 to 2.17:
humm, last version of MM require node v12 and npm v6.14.15
can you try this:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
copy past this line in your terminalwhen done and install done
node -v
? should be v14.X.Xnow try
-
apparently node does not want to update…
pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - ## Installing the NodeSource Node.js 14.x repo... ## Populating apt-get cache... + apt-get update Atteint :1 http://raspbian.raspberrypi.org/raspbian buster InRelease Atteint :2 http://archive.raspberrypi.org/debian buster InRelease Atteint :3 https://deb.nodesource.com/node_10.x buster InRelease Lecture des listes de paquets... Fait ## Confirming "buster" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null gpg: Attention : le propriétaire du répertoire personnel « /home/pi/.gnupg » n'est pas sûr ## Creating apt sources list file for the NodeSource Node.js 14.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Atteint :1 http://archive.raspberrypi.org/debian buster InRelease Atteint :2 http://raspbian.raspberrypi.org/raspbian buster InRelease Réception de :3 https://deb.nodesource.com/node_14.x buster InRelease [4 584 B] Réception de :4 https://deb.nodesource.com/node_14.x buster/main armhf Packages [781 B] 5 365 o réceptionnés en 2s (3 166 o/s) Lecture des listes de paquets... Fait ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn pi@raspberrypi:~ $ node -v v10.24.1 pi@raspberrypi:~ $