Read the statement by Michael Teeuw here.
Mirror not starting after update
-
Now I have:
node -v v22.9.0
And when starting with pm2 I get 2 errors. Fist is directly im PM2:
chris@MagicPi:~ $ pm2 start mm (node:3915) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead. (Use `node --trace-deprecation ...` to show where the warning was created) [PM2] Applying action restartProcessId on app [mm](ids: [ 0 ]) [PM2] [mm](0) ✓ [PM2] Process successfully started ┌────┬───────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼───────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 1 │ Display_Drehen │ default │ N/A │ fork │ 3913 │ 2s │ 26 │ online │ 0% │ 1.8mb │ chris │ disabled │ │ 0 │ mm │ default │ N/A │ fork │ 3922 │ 0s │ 1 │ online │ 0% │ 1.8mb │ chris │ disabled │ └────┴───────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Second with “pm2 log mm”:
0|mm | > magicmirror@2.29.0 start 0|mm | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|mm | App threw an error during load 0|mm | Error: Cannot find module 'logger' 0|mm | Require stack: 0|mm | - /home/chris/MagicMirror/js/app.js 0|mm | - /home/chris/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/chris/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at Object.<anonymous> (/home/chris/MagicMirror/js/app.js:7:13) 0|mm | at Module._compile (node:internal/modules/cjs/loader:1484:14) 0|mm | at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) 0|mm | at Module.load (node:internal/modules/cjs/loader:1295:32) 0|mm | at Module._load (node:internal/modules/cjs/loader:1111:12) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at Object.<anonymous> (/home/chris/MagicMirror/js/electron.js:4:14) 0|mm | A JavaScript error occurred in the main process 0|mm | Uncaught Exception: 0|mm | Error: Cannot find module 'logger' 0|mm | Require stack: 0|mm | - /home/chris/MagicMirror/js/app.js 0|mm | - /home/chris/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/chris/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at Object.<anonymous> (/home/chris/MagicMirror/js/app.js:7:13) 0|mm | at Module._compile (node:internal/modules/cjs/loader:1484:14) 0|mm | at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) 0|mm | at Module.load (node:internal/modules/cjs/loader:1295:32) 0|mm | at Module._load (node:internal/modules/cjs/loader:1111:12) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at Object.<anonymous> (/home/chris/MagicMirror/js/electron.js:4:14) 0|mm | [4076:1001/220004.817112:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.817605:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.817935:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.818158:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.818461:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.818629:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.818957:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.819176:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.819569:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.819796:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.820180:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.820424:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.820811:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.821043:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2) 0|mm | [4076:1001/220004.821511:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
and so on…
-
Error: Cannot find module ‘logger’
you have to do
npm run install-mm ( in the MagicMirror folder)
after updating nodejs -
@chrisfr1976 I have just updated the upgrade script to check for node V21 and if found, upgrade to 22.9
-
@sdetweil I did the npm run install-mm already. Still the same error.
I have a copy of my SD Card. I could start from last version again only with the update script. Maybe this helps.Chris.
-
@chrisfr1976 its been reported that the upgrade script doesn’t restore the installers/MagicMirror.sh we took out of the MagicMirror repo and put in my repo
pm2 info 0
will list out the details of the managed app. it will list the program started
-
I have fixed the upgrade script to save/restore the installers folder and mm.sh
-
@sdetweil
how can I update nodejs?I have:
nodejs -v
v18.19.0
and
node -v
v20.9.0npm install nodejs@latest
does not change my nodejs version. -
@xIExodusIx what OS are you on?
lsb_release -a
and
uname -a
will showdid you use my upgrade script? it will upgrade node too
-
Raspberry Pi 4
OS = bookworm 64bit -
@xIExodusIx did you use my upgrade script?