Read the statement by Michael Teeuw here.
After update 2.29.0 PM2 does not work
-
@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:49
I 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