Solved I can't update my MM and MM disappears from my screen after reboot
-
Hello bugsounet,
So to update my node version, I just have to write this in my terminal , not in a file ?
-
sure in a terminal
-
@bugsounet So I did as you said and this is what appears as the response :
pi@raspberrypi:~ $ sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt-get update && sudo apt-get install nodejs -y Atteint :1 http://archive.raspberrypi.org/debian bullseye InRelease Atteint :2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Réception de :3 https://deb.nodesource.com/node_16.x bullseye InRelease [4 586 B] 4 586 o réceptionnés en 1s (4 944 o/s) Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait ca-certificates est déjà la version la plus récente (20210119). curl est déjà la version la plus récente (7.74.0-1.3+deb11u10). gnupg est déjà la version la plus récente (2.2.27-2+deb11u2). Le paquet suivant a été installé automatiquement et n'est plus nécessaire : libfuse2 Veuillez utiliser « sudo apt autoremove » pour le supprimer. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour. gpg: impossible de créer « /etc/apt/keyrings/nodesource.gpg » : Aucun fichier ou dossier de ce type gpg: aucune donnée OpenPGP valable n'a été trouvée. gpg: échec de déconstruction d'une armure : Aucun fichier ou dossier de ce type (23) Failed writing body deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main Atteint :1 http://archive.raspberrypi.org/debian bullseye InRelease Atteint :2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Réception de :3 https://deb.nodesource.com/node_18.x nodistro InRelease [12,1 kB] Err :3 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 Lecture des listes de paquets... Fait 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é. N: Les mises à jour depuis un tel dépôt ne peuvent s'effectuer de manière sécurisée, et sont donc désactivées par défaut. N: Voir les pages de manuel d'apt-secure(8) pour la création des dépôts et les détails de configuration d'un utilisateur.
-
Réception de :3 https://deb.nodesource.com/node_16.x bullseye InRelease [4 586 B]
delete node repo from apt
cd /etc/apt/sources.list.d/ sudo rm nodesource.list
and retry
-
I do but I thinks it’s not work :
-
I do but I think it’s not work :
Pffff…
It’s still incredible that an update can’t be done… -
I had the same problem as you, I solved it, I can help you.
-
Yes , I’m newbie and try lot of things but the problem stile the same. I can’t update node.js and after my MM.
Can you tell me all the script I have to write in “~ cd/MagicMirror” ?
I do somethings wrong but I don’t know what -
click on link and install
https://linux.tips/tutorials/how-to-install-latest-version-of-node-js-on-raspberry-pi-3
-
This post is deleted! -
I have a Pi 4 and not P3, it doesn’t matter ?
-
doesn’t matter
-
My node version is 20.8.0 but i don’t know to launch my MM…
MM didn’t start…
-
riko send on chat please
-
@RIKO14 :
- MM² is actually running , so stop it:
pm2 stop 0
- Start MM³ Manually and see what happen:
cd ~/MagicMirror npm start
and past log content from start of MM²
-
wrong command
-
pi@raspberrypi:~/MagicMirror $ pm2 stop 0 [PM2] Applying action stopProcessId on app [0](ids: [ '0' ]) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ pi@raspberrypi:~/MagicMirror $ cd ~/MagicMirror npm start > magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [05.11.2023 15:59.49.467] [LOG] Starting MagicMirror: v2.25.0 [05.11.2023 15:59.49.477] [LOG] Loading config ... [05.11.2023 15:59.49.483] [DEBUG] config template file not exists, no envsubst [05.11.2023 15:59.49.489] [LOG] Loading module helpers ... [05.11.2023 15:59.49.492] [LOG] No helper found for module: alert. [05.11.2023 15:59.49.508] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.511] [LOG] Module helper loaded: EXT-UpdateNotification [05.11.2023 15:59.49.514] [LOG] No helper found for module: clock. [05.11.2023 15:59.49.832] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.833] [LOG] Module helper loaded: calendar [05.11.2023 15:59.49.838] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.839] [LOG] Module helper loaded: MMM-GoogleAssistant [05.11.2023 15:59.49.841] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.841] [LOG] Module helper loaded: EXT-Alert [05.11.2023 15:59.49.847] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.847] [LOG] Module helper loaded: EXT-Bring [05.11.2023 15:59.49.850] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.850] [LOG] Module helper loaded: EXT-Browser [05.11.2023 15:59.49.863] [LOG] Initializing new module helper ... [05.11.2023 15:59.49.863] [LOG] Module helper loaded: EXT-Detector [05.11.2023 15:59.50.191] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.191] [LOG] Module helper loaded: EXT-Librespot [05.11.2023 15:59.50.193] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.194] [LOG] Module helper loaded: EXT-Photos [05.11.2023 15:59.50.196] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.196] [LOG] Module helper loaded: EXT-RadioPlayer [05.11.2023 15:59.50.216] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.216] [LOG] Module helper loaded: EXT-ScreenManager [05.11.2023 15:59.50.444] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.444] [LOG] Module helper loaded: EXT-Spotify [05.11.2023 15:59.50.453] [LOG] Initializing new module helper ... [05.11.2023 15:59.50.453] [LOG] Module helper loaded: Gateway [05.11.2023 15:59.50.458] [ERROR] (node:17290) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-dht-sensor' Require stack: - /home/pi/MagicMirror/modules/MMM-DHT-Sensor/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-DHT-Sensor/node_helper.js:11:16) 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 15:59.50.459] [ERROR] (node:17290) 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) [17290:1105/155951.307489: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
-
- you have this:
[05.11.2023 15:59.50.458] [ERROR] (node:17290) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-dht-sensor'
(MMM-DHT-Sensor)
So, try to reinstall it:
cd ~/MagicMirror/modules/MMM-DHT-Sensor npm install
- restart MM² and past again all contents
cd ~/MagicMirror npm start
- you have this:
-
It 's works, my MM appears but lot’s of message are in the top of my screen like
-
what’s message ?