Solved I can't update my MM and MM disappears from my screen after reboot
-
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 ?
-
And Jarvis doen’t launch…
And can I and How to reinstall Pm2 ?
-
try this:
cd ~/MagicMirror/modules/MMM-GoogleAssistant npm run update npm run refresh
-
Note:
npm run refresh
will scan all EXTs component and will update and reinstall it (for new MM² version or new node version) -
It’s works well, so thank you.
Last question :
How to reinstall pm2 mode ?
-
just close your actually MM² (
CTRL + C
)and try:
pm2 restart 0
and if it’s ok, try to reboot:
sudo reboot now
MM² must start automaticaly on reboot
-
So magic !
thank you so much !!! -
Perfect so, i’m happy that is works again
-