Read the statement by Michael Teeuw here.
MM won't start up after upgrading to 2.27
-
I just upgraded to 2.27. I have backed up my config, modules, css now my mirror isn’t running.
I did the following
git pull && npm run install-mm
Upon completion of the install everything checked out and looked good
changed 2 packages in 2m MagicMirror² installation finished successfully!
I then went and restarted my magic mirror using my npm restart and it shows the following but its not running?
[PM2] mm ✓
┌────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ mm │ default │ 2.27.0 │ fork │ 2165 │ 0s │ 1 │ online │ 0% │ 3.0mb │ k │ disabled │
└────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ -
@nobbie35 do
pm2 stop all cd~/MagicMirror npm start
what happens
in your pm2 output above the number after fork
is the number of times the app has been. restarted since the last boot2165 is a lot…
-
I have updated all of my custom changes back into this after the update ie config, css, modules
I did an npm start and here is my output
:~/Dashboard/MagicMirror $ npm start > magicmirror@2.27.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2024-04-26 15:59:34.482] [LOG] Starting MagicMirror: v2.27.0 [2024-04-26 15:59:34.534] [LOG] Loading config ... [2024-04-26 15:59:34.539] [LOG] config template file not exists, no envsubst [2024-04-26 15:59:34.545] [LOG] Loading module helpers ... [2024-04-26 15:59:34.644] [LOG] Initializing new module helper ... [2024-04-26 15:59:34.646] [LOG] Module helper loaded: MMM-OpenWeatherForecast [2024-04-26 15:59:34.902] [LOG] Initializing new module helper ... [2024-04-26 15:59:34.902] [LOG] Module helper loaded: MMM-Wallpaper [2024-04-26 15:59:34.903] [LOG] No helper found for module: clock. [2024-04-26 15:59:35.099] [LOG] Initializing new module helper ... [2024-04-26 15:59:35.100] [LOG] Module helper loaded: calendar [2024-04-26 15:59:35.101] [LOG] No helper found for module: MMM-CalendarExt3. [2024-04-26 15:59:37.975] [LOG] Initializing new module helper ... [2024-04-26 15:59:37.980] [LOG] Module helper loaded: MMM-GoogleCalendar [2024-04-26 15:59:37.982] [LOG] Initializing new module helper ... [2024-04-26 15:59:37.983] [LOG] Module helper loaded: MMM-CustomMessage [2024-04-26 15:59:38.665] [ERROR] (node:2997) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis' Require stack: - /home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js - /home/k/Dashboard/MagicMirror/js/app.js - /home/k/Dashboard/MagicMirror/js/electron.js at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15) at s._resolveFilename (node:electron/js2c/browser_init:2:115476) at Module._resolveFilename (/home/k/Dashboard/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:908:27) at c._load (node:electron/js2c/node_init:2:13672) at Module.require (node:internal/modules/cjs/loader:1122:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js:2:18) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1311:10) at Module.load (node:internal/modules/cjs/loader:1098:32) at Module._load (node:internal/modules/cjs/loader:945:12) at c._load (node:electron/js2c/node_init:2:13672) at Module.require (node:internal/modules/cjs/loader:1122:19) at require (node:internal/modules/helpers:130:18) at loadModule (/home/k/Dashboard/MagicMirror/js/app.js:183:19) (Use `electron --trace-warnings ...` to show where the warning was created) [2024-04-26 15:59:38.667] [ERROR] (node:2997) 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) [3112:0426/155940.054621:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [3112:0426/155940.055560:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
-
-
@sdetweil Just for extra context I have updated my config css and modules from my backup
I also have rebooted and completed your steps above… here is the output
:~/Dashboard/MagicMirror $ npm start > magicmirror@2.27.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2024-04-26 15:59:34.482] [LOG] Starting MagicMirror: v2.27.0 [2024-04-26 15:59:34.534] [LOG] Loading config ... [2024-04-26 15:59:34.539] [LOG] config template file not exists, no envsubst [2024-04-26 15:59:34.545] [LOG] Loading module helpers ... [2024-04-26 15:59:34.644] [LOG] Initializing new module helper ... [2024-04-26 15:59:34.646] [LOG] Module helper loaded: MMM-OpenWeatherForecast [2024-04-26 15:59:34.902] [LOG] Initializing new module helper ... [2024-04-26 15:59:34.902] [LOG] Module helper loaded: MMM-Wallpaper [2024-04-26 15:59:34.903] [LOG] No helper found for module: clock. [2024-04-26 15:59:35.099] [LOG] Initializing new module helper ... [2024-04-26 15:59:35.100] [LOG] Module helper loaded: calendar [2024-04-26 15:59:35.101] [LOG] No helper found for module: MMM-CalendarExt3. [2024-04-26 15:59:37.975] [LOG] Initializing new module helper ... [2024-04-26 15:59:37.980] [LOG] Module helper loaded: MMM-GoogleCalendar [2024-04-26 15:59:37.982] [LOG] Initializing new module helper ... [2024-04-26 15:59:37.983] [LOG] Module helper loaded: MMM-CustomMessage [2024-04-26 15:59:38.665] [ERROR] (node:2997) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis' Require stack: - /home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js - /home/k/Dashboard/MagicMirror/js/app.js - /home/k/Dashboard/MagicMirror/js/electron.js at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15) at s._resolveFilename (node:electron/js2c/browser_init:2:115476) at Module._resolveFilename (/home/k/Dashboard/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:908:27) at c._load (node:electron/js2c/node_init:2:13672) at Module.require (node:internal/modules/cjs/loader:1122:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js:2:18) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1311:10) at Module.load (node:internal/modules/cjs/loader:1098:32) at Module._load (node:internal/modules/cjs/loader:945:12) at c._load (node:electron/js2c/node_init:2:13672) at Module.require (node:internal/modules/cjs/loader:1122:19) at require (node:internal/modules/helpers:130:18) at loadModule (/home/k/Dashboard/MagicMirror/js/app.js:183:19) (Use `electron --trace-warnings ...` to show where the warning was created) [2024-04-26 15:59:38.667] [ERROR] (node:2997) 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) [3112:0426/155940.054621:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [3112:0426/155940.055560:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
-
@nobbie35 yes looks like you forgot to do npm install in one module folder
🔒 Log in to view -
@sdetweil I didn’t realize that you have to reinstall all of the modules after an install I’ve been running MM for over a year and have upgraded before like this and never had to npm install each of the modules again… I’ll go back and reinstall all of them just incase and report back
-
@nobbie35 if you use my upgrade script I handle this for you
-
@nobbie35 yes, but what happens is always subject to change…
so looking at the messages tells you a module had trouble finding a library
which should lead you back to npm install for that module
-
@sdetweil I npm installed the Google Tasks module and its still throwing the same error
-
@nobbie35 where did you do the npm install, what folder were you in?
I see the problem
the module doesn’t have a package.json file, so the loaded module is considered a security risk and is removed
do
npm init -y
then
npm install googleapis