Read the statement by Michael Teeuw here.
After update 2.29.0 PM2 does not work
-
I updated my mirror to latest version 2.29.0 using script SdetWeil
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" applyAfter reboot, no startup.
npm start works
pm2 does not workreinstall using script
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"Still no luck. Manual
pm2 start MagicMirrorpi@mm:~ $ pm2 start MagicMirror [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ [PM2] Process successfully started ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.29.0 │ fork │ 17189 │ 0s │ 122 │ online │ 0% │ 23.1mb │ pi │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ pi@mm:~ $but MagicMirror does not appear on my mirror.
I have this problem on 2 MagicMirror installations. -
@sdetweil
I created the mm.sh script in the /MagicMirror/installers folder (copied from your site) and run the fixuppm2 script again.Now it started MagicMirror as normal.
I tried a reboot and it works now.Now only the same on the other MagicMirror screen and I’m happy again.
If i have to do anything more or reinstall, let me know.
But it seems I’ve a working installation of MagicMirror again.
Thanks!! -
pm2 logs MagicMirror --lines 100 shows
0|MagicMirror | [2024-10-01 21:49:35.228] [LOG] Starting MagicMirror: v2.29.0 0|MagicMirror | [2024-10-01 21:49:35.259] [ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration') 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:18:6) 0|MagicMirror | at Module._compile (node:internal/modules/cjs/loader:1241:14) 0|MagicMirror | at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) 0|MagicMirror | at Module.load (node:internal/modules/cjs/loader:1091:32) 0|MagicMirror | at Module._load (node:internal/modules/cjs/loader:938:12) 0|MagicMirror | at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) 0|MagicMirror | at Module._compile (node:internal/modules/cjs/loader:1241:14) 0|MagicMirror | at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) 0|MagicMirror | at Module.load (node:internal/modules/cjs/loader:1091:32) 0|MagicMirror | at Module._load (node:internal/modules/cjs/loader:938:12) 0|MagicMirror | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) 0|MagicMirror | at node:internal/main/run_main_module:23:47 0|MagicMirror | [2024-10-01 21:49:35.264] [ERROR] Whoops! There was an uncaught exception... 0|MagicMirror | [2024-10-01 21:49:35.266] [ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration') 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:18:6) 0|MagicMirror | at Module._compile (node:internal/modules/cjs/loader:1241:14) 0|MagicMirror | at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) 0|MagicMirror | at Module.load (node:internal/modules/cjs/loader:1091:32) 0|MagicMirror | at Module._load (node:internal/modules/cjs/loader:938:12) 0|MagicMirror | at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) 0|MagicMirror | at Module._compile (node:internal/modules/cjs/loader:1241:14) 0|MagicMirror | at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) 0|MagicMirror | at Module.load (node:internal/modules/cjs/loader:1091:32) 0|MagicMirror | at Module._load (node:internal/modules/cjs/loader:938:12) 0|MagicMirror | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) 0|MagicMirror | at node:internal/main/run_main_module:23:47 0|MagicMirror | [2024-10-01 21:49:35.267] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMirror | [2024-10-01 21:49:35.268] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues 0|MagicMirror | [2024-10-01 21:49:37.131] [INFO] System information: 0|MagicMirror | ### SYSTEM: manufacturer: ; model: ; virtual: false 0|MagicMirror | ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.51-v8+ 0|MagicMirror | ### VERSIONS: electron: undefined; used node: 20.9.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2 0|MagicMirror | ### OTHER: timeZone: Europe/Amsterdam; ELECTRON_ENABLE_GPU: undefined -
@htilburgs can you do
pm2 delete 0
pm2 save -f
and then run the fixuppm2 script again -
I am in the same boat with you. After update to 2.29.0, the ~/.pm2/logs/MagicMirror-error.log has this block of messages continually repeating:
[ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration') at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:15:6) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49I made a backup of the MagicMirror directory before updating to the new version. To return to the old version, I deleted the updated MagicMirror directory and restored the backup MM directory but the error persists with V2.28.0. Something outside of the MM directory must have been updated.
I tried restarting the system but the error continues.
Butch
-
also try
sudo npm i pm2 -g
-
@butchkemper can you do to show the nodejs version
node -v -
pi@MagicMirror:~ $ node -v v20.17.0 pi@MagicMirror:~ $ -
@htilburgs said in After update 2.29.0 PM2 does not work:
VERSIONS: electron: undefined; used node: 20.9.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2
for whatever reason MM doesn’t recognises your electron version
-
@MarcLandis yeh weird.
@htilburgs can you do
grep version node_modules/electron/package.json -
@sdetweil said in After update 2.29.0 PM2 does not work:
grep version node_modules/electron/package.json
This is what I get:
pi@MagicMirror:~/MagicMirror $ sudo grep version node_modules/electron/package.json "version": "31.1.0" pi@MagicMirror:~/MagicMirror $ -
@butchkemper which is the correct value
-
@butchkemper said in After update 2.29.0 PM2 does not work:
Sam, did you see where I mention the problem continues even after I deleted the 2.29.0 MM directory and restored the 2.28.0 directory?
Also, I am in the DFW area and available by phone if you would like.
Butch
-
@butchkemper i did, but only other thing is nodejs version.
can you post the upgrade.log to a new issue for my scripts
i have grandchildren duty til tomorrow morning
-
pi@mm:~ $ pm2 delete 0 [PM2] Applying action deleteProcessId on app [0](ids: [ '0' ]) [PM2] [MagicMirror](0) ✓ ┌────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ └────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ [PM2][WARN] Current process list is not synchronized with saved list. App MagicMirror differs. Type 'pm2 save' to synchronize. pi@mm:~ $ pm2 save -f [PM2] Saving current process list... [PM2] Successfully saved in /home/pi/.pm2/dump.pm2 pi@mm:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)" the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log [PM2][WARN] Applications MagicMirror not running, starting... [PM2][ERROR] Error: Script not found: /home/pi/MagicMirror/installers/mm.sh [PM2] Saving current process list... [PM2][WARN] PM2 is not managing any process, skipping save... [PM2][WARN] To force saving use: pm2 save --forcepi@mm:~ $ node -v v20.9.0pi@mm:~ $ grep version node_modules/electron/package.json "version": "31.6.0" -
@htilburgs arrrrrg
we deleted installers folder from the repository
didn’t fix the fixup scriptbe a couple hours
edit: fixed 17:50 Oct 1 -
@sdetweil
Oke, no problem.
It’s 22:55 in the Netherlands and have to get up at 05:30, so I go to sleep and check in the morning.Enjoy your grandchildren ;-) These are more important than a MagicMirror!
-
@sdetweil
I created the mm.sh script in the /MagicMirror/installers folder (copied from your site) and run the fixuppm2 script again.Now it started MagicMirror as normal.
I tried a reboot and it works now.Now only the same on the other MagicMirror screen and I’m happy again.
If i have to do anything more or reinstall, let me know.
But it seems I’ve a working installation of MagicMirror again.
Thanks!! -
@sdetweil I have posted a new topic in trouble shooting with the error message and the install log.
The system would not let me send the file as only graphic files are accepted.
Thank you.
Butch
-
@htilburgs awesome, thx
-
@htilburgs I have added the mm.sh to fixuppm2.sh
-
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login