Read the statement by Michael Teeuw here.
node problem : I can't update my MM and MM disappears from my screen after reboot
-
Hello,
I can’t update my MM, it’s a node problem but I can’t solve it.
here’s what I did with no results…
What do you recommend ?
Thank you for your help -
@RIKKO14 now another module… DHT-Sensor missing a library
go to the module folder and
see this topic
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later
-
@RIKKO14 after all this time, you still don’t run my scripts?
and you still don’t remember that to do thing with MM you MUST be in the MagicMirror foldernpm anything has to have MagicMirror as the current folder
cd ~/MagicMirror
then continue on
yes, this release requires node 18 or 20 as the code depends on the new internal ‘fetch’ function, instead of using external libs…
was part of the announcement…my upgrade script does all the work… as usual
again see
https://github.com/sdetweil/MagicMirror_scripts -
I do this :
pi@raspberrypi:~ $ cd ~/MagicMirror pi@raspberrypi:~/MagicMirror $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)" $$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$\ $$$ | \__| $$$\ $$$ |\__| $$ __$$\ $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ \__/ $$ | $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____|$$\$$\$$ $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$ | $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ \$$$ $$ |$$ |$$ | \__|$$ | \__|$$ / $$ |$$ | \__|$$ ____/ $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ \__| \__| \_______| \____$$ |\__| \_______|\__| \__|\__|\__| \__| \______/ \__| \________| $$\ $$ | \$$$$$$ | \______/ install log being saved to /home/pi/install.log Updating packages ... W: Erreur de GPG : https://deb.nodesource.com/node_18.x nodistro InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 2F59B5F99B1BE0B4 E: Le dépôt https://deb.nodesource.com/node_18.x nodistro InRelease n'est pas signé. Update failed, retrying installation ... Installing helper tools ... installing correct version of node and npm, please wait It seems like MagicMirror is already installed. To prevent overwriting, the installer will be aborted. Please rename the ~/MagicMirror folder and try again. pi@raspberrypi:~/MagicMirror $ upgrade-script.sh bash: upgrade-script.sh : commande introuvable pi@raspberrypi:~/MagicMirror $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" update log will be in /home/pi/MagicMirror/installers/upgrade.log doing test run = true, NO updates will be applied! Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v20.8.0 Installed Node version: v20.8.0 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V10.1.0 Installed npm version: V10.1.0 No npm upgrade necessary. saving custom.css upgrading from version 2.25.0 to 2.25.0 fetching latest revisions Checking for modules with removed libraries updating dependencies for active modules with package.json files processing for module EXT-UpdateNotification please wait ---------------------------------- skipped processing for EXT-UpdateNotification, doing test run processing complete for module EXT-UpdateNotification processing for module MMM-GoogleAssistant please wait ---------------------------------- skipped processing for MMM-GoogleAssistant, doing test run processing complete for module MMM-GoogleAssistant processing for module EXT-Alert please wait ---------------------------------- skipped processing for EXT-Alert, doing test run processing complete for module EXT-Alert processing for module EXT-Bring please wait ---------------------------------- skipped processing for EXT-Bring, doing test run processing complete for module EXT-Bring processing for module EXT-Browser please wait ---------------------------------- skipped processing for EXT-Browser, doing test run processing complete for module EXT-Browser processing for module EXT-Detector please wait ---------------------------------- skipped processing for EXT-Detector, doing test run processing complete for module EXT-Detector processing for module EXT-Librespot please wait ---------------------------------- skipped processing for EXT-Librespot, doing test run processing complete for module EXT-Librespot processing for module EXT-Photos please wait ---------------------------------- skipped processing for EXT-Photos, doing test run processing complete for module EXT-Photos processing for module EXT-RadioPlayer please wait ---------------------------------- skipped processing for EXT-RadioPlayer, doing test run processing complete for module EXT-RadioPlayer processing for module EXT-ScreenManager please wait ---------------------------------- skipped processing for EXT-ScreenManager, doing test run processing complete for module EXT-ScreenManager processing for module EXT-Spotify please wait ---------------------------------- skipped processing for EXT-Spotify, doing test run processing complete for module EXT-Spotify processing for module Gateway please wait ---------------------------------- skipped processing for Gateway, doing test run processing complete for module Gateway processing for module MMM-DHT-Sensor please wait ---------------------------------- skipped processing for MMM-DHT-Sensor, doing test run processing complete for module MMM-DHT-Sensor processing for module MMM-RainForecast-FR please wait ---------------------------------- skipped processing for MMM-RainForecast-FR, doing test run processing complete for module MMM-RainForecast-FR processing for module MMM-TomTomTraffic please wait ---------------------------------- skipped processing for MMM-TomTomTraffic, doing test run processing complete for module MMM-TomTomTraffic processing for module MMM-MovieListings please wait ---------------------------------- skipped processing for MMM-MovieListings, doing test run processing complete for module MMM-MovieListings processing for module MMM-MarineWeather please wait ---------------------------------- skipped processing for MMM-MarineWeather, doing test run processing complete for module MMM-MarineWeather restoring custom.css pi@raspberrypi:~/MagicMirror $
but the problem stil the same… MagicMirror desn’t launch. Then after i reboot of my pi I do "bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)” but the problem stil the same. MagicMirror doesn’t launch. my screen is :
there is something I’m doing wrong but I don’t know what and don’t understand…
-
@RIKKO14 yes…
- install, it fails, already installed…
It seems like MagicMirror is already installed. To prevent overwriting, the installer will be aborted. Please rename the ~/MagicMirror folder and try again.
- upgrade, it is doing only test run, so no changes are made…
doing test run = true, NO updates will be applied!
- to ACTUALLY do the upgrade there is a parameter added to the end of the link ‘apply’ (no quotes)
If you WANT to actually apply the changes, copy/paste this line into the terminal window on your device:
upgrading from version 2.25.0 to 2.25.0
BUT, because your code level is already 2.25, upgrade will not work, unless you FORCE it…
by changing the parm from ‘apply’ to ‘force’ (again no quotes)
you should NOT clone this repo to your system, you click the link to copy it and then paste and execute directly from github
and MM won’t start cause u have the new code and old libs, and probably the wrong nodejs version when ‘installed’…
SO, try upgrade again with the ‘force’ parm
-
pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"force $$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$\ $$$ | \__| $$$\ $$$ |\__| $$ __$$\ $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ \__/ $$ | $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____|$$\$$\$$ $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$ | $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ \$$$ $$ |$$ |$$ | \__|$$ | \__|$$ / $$ |$$ | \__|$$ ____/ $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ \__| \__| \_______| \____$$ |\__| \_______|\__| \__|\__|\__| \__| \______/ \__| \________| $$\ $$ | \$$$$$$ | \______/ install log being saved to /home/pi/install.log Updating packages ... W: Erreur de GPG : https://deb.nodesource.com/node_18.x nodistro InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 2F59B5F99B1BE0B4 E: Le dépôt https://deb.nodesource.com/node_18.x nodistro InRelease n'est pas signé. Update failed, retrying installation ... Installing helper tools ... It seems like MagicMirror is already installed. To prevent overwriting, the installer will be aborted. Please rename the ~/MagicMirror folder and try again. pi@raspberrypi:~ $
-
@RIKKO14 DO NOT RUN INSTALL…
run UPGRADE with force
I will look for how to fix the gpg key problem
execute these commands, (copy paste)
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg NODE_MAJOR=18 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
then do
sudo apt-get update
-
-
My node version is 20.8.0 but i don’t know to launch my MM…
MM didn’t start…
-
-
The result :
pi@raspberrypi:~/MagicMirror $ pm2 stop all cd ~/MagicMirror npm run install-mm npm start [PM2] Applying action stopProcessId on app [all](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ > magicmirror@2.25.0 install-mm > npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev npm WARN config only Use `--omit=dev` to omit dev dependencies from the install. > magicmirror@2.25.0 postinstall > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully! > " > magicmirror@2.25.0 install-vendor > echo "Installing vendor files ... > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier Installing vendor files ... up to date in 1s > magicmirror@2.25.0 install-fonts > echo "Installing fonts ... > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier Installing fonts ... up to date in 1s MagicMirror² installation finished successfully! > magicmirror@2.25.0 prepare > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed. no husky installed. up to date in 14s > magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [05.11.2023 14:46.59.755] [LOG] Starting MagicMirror: v2.25.0 [05.11.2023 14:46.59.761] [LOG] Loading config ... [05.11.2023 14:46.59.767] [DEBUG] config template file not exists, no envsubst [05.11.2023 14:46.59.775] [LOG] Loading module helpers ... [05.11.2023 14:46.59.778] [LOG] No helper found for module: alert. [05.11.2023 14:46.59.800] [LOG] Initializing new module helper ... [05.11.2023 14:46.59.801] [LOG] Module helper loaded: EXT-UpdateNotification [05.11.2023 14:46.59.803] [LOG] No helper found for module: clock. [05.11.2023 14:47.00.090] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.091] [LOG] Module helper loaded: calendar [05.11.2023 14:47.00.098] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.099] [LOG] Module helper loaded: MMM-GoogleAssistant [05.11.2023 14:47.00.103] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.103] [LOG] Module helper loaded: EXT-Alert [05.11.2023 14:47.00.115] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.116] [LOG] Module helper loaded: EXT-Bring [05.11.2023 14:47.00.127] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.127] [LOG] Module helper loaded: EXT-Browser [05.11.2023 14:47.00.142] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.142] [LOG] Module helper loaded: EXT-Detector [05.11.2023 14:47.00.595] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.596] [LOG] Module helper loaded: EXT-Librespot [05.11.2023 14:47.00.599] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.599] [LOG] Module helper loaded: EXT-Photos [05.11.2023 14:47.00.603] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.603] [LOG] Module helper loaded: EXT-RadioPlayer [05.11.2023 14:47.00.638] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.638] [LOG] Module helper loaded: EXT-ScreenManager [05.11.2023 14:47.00.967] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.968] [LOG] Module helper loaded: EXT-Spotify [05.11.2023 14:47.00.975] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.975] [LOG] Module helper loaded: Gateway [05.11.2023 14:47.00.998] [LOG] Initializing new module helper ... [05.11.2023 14:47.00.999] [LOG] Module helper loaded: MMM-DHT-Sensor [05.11.2023 14:47.00.999] [LOG] No helper found for module: MMM-WeatherOrNot. [05.11.2023 14:47.01.093] [LOG] Initializing new module helper ... [05.11.2023 14:47.01.094] [LOG] Module helper loaded: MMM-RainForecast-FR [05.11.2023 14:47.01.094] [LOG] No helper found for module: MMM-TomTomTraffic. [05.11.2023 14:47.01.594] [LOG] Initializing new module helper ... [05.11.2023 14:47.01.595] [LOG] Module helper loaded: MMM-MovieListings [05.11.2023 14:47.01.600] [ERROR] (node:12072) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-fetch' Require stack: - /home/pi/MagicMirror/modules/MMM-MarineWeather/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 node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:117419) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MarineWeather/node_helper.js:14:15) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at loadModule (/home/pi/MagicMirror/js/app.js:180:19) (Use `electron --trace-warnings ...` to show where the warning was created) [05.11.2023 14:47.01.601] [ERROR] (node:12072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) [12072:1105/144701.952277:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: Ne peut ouvrir le fichier d'objet partagé: Permission non accordée (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: Ne peut ouvrir le fichier d'objet partagé: Permission non accordée (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
And MM didn’t launch…