@sdetweil ok, that worked now, my mistake :-(
I also made updates for the pi, unfortunately I now also have the latest firmware version: 82f3750a65fadae9a38077e3c2e217ad158c8d54 from March 2023. I’ve had that before, so the monitor on the pi doesn’t go into standby. I now need to downgrade the firmware to version 5.10 (b976c54917e240630c05a9b383010f1492bc61b4). When I try with “sudo rpi-update b976c54917e240630c05a9b383010f1492bc61b4” it says that the firmware is already up to date.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-PIR-Sensor not work after v2.25
-
RE: MMM-PIR-Sensor not work after v2.25
@sdetweil I renamed the folder and reinstalled the module, this is the result:
pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated electron-rebuild@1.11.0: Please use @electron/rebuild moving forward. There is no API change, just a package name change npm ERR! code 7 npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@6.1.0 npm ERR! gyp info using node@20.8.0 | linux | arm npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp ERR! UNCAUGHT EXCEPTION npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>' npm ERR! gyp ERR! stack at createConfigFile (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:118:21) npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:85:9 npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/mkdirp/index.js:30:20 npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:189:23) npm ERR! gyp ERR! System Linux 6.1.21-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll npm ERR! gyp ERR! node -v v20.8.0 npm ERR! gyp ERR! node-gyp -v v6.1.0 npm ERR! gyp ERR! This is a bug in `node-gyp`. npm ERR! gyp ERR! Try to update node-gyp and file an Issue if it does not help: npm ERR! gyp ERR! <https://github.com/nodejs/node-gyp/issues> npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-03T13_57_09_313Z-debug-0.log
-
RE: MMM-PIR-Sensor not work after v2.25
@sdetweil after npm install:
Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall
node_modules/.bin/electron-rebuild -e …/…/node_modules/electronsh: 1: node_modules/.bin/electron-rebuild: not found
npm ERR! code 127
npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor
npm ERR! command failed
npm ERR! command sh -c node_modules/.bin/electron-rebuild -e …/…/node_modules/electronnpm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-03T12_42_43_352Z-debug-0.log
-
MMM-PIR-Sensor not work after v2.25
Thanks to the great help from @sdetweil, my MagicMirror is now running again after the last update. I was able to fix problems with two modules myself. I just can’t get the MMM PIR sensor module to work. I tried this, and so far it has always worked after an update. Unfortunately not now…
cd ~/MagicMirror/modules
cd MMM PIR sensor
npm i magicmirror rebuild
./node_modules/.bin/MagicMirror-rebuildAnyone an idea?
Greetings Jörg
-
RE: Errors after Update
@sdetweil The mirror lives again!! Thank you! :-)
There are still errors in two modules, soccer-live-score and newsfeed
I’ll take a look at that tomorrow
Good job thanks -
RE: Errors after Update
@sdetweil ```
magicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[02.10.2023 21:29.49.912] [LOG] Starting MagicMirror: v2.25.0
[02.10.2023 21:29.49.922] [LOG] Loading config …
[02.10.2023 21:29.49.928] [DEBUG] config template file not exists, no envsubst
[02.10.2023 21:29.51.691] [ERROR] (node:7976) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
Require stack:- /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/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. (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. (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:10:15)
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)
(Useelectron --trace-warnings ...
to show where the warning was created)
[02.10.2023 21:29.51.693] [ERROR] (node:7976) 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)
[7976:1002/212952.276668: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
[8016:1002/212953.559582:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
-
RE: Errors after Update
pi@raspberrypi:~ $ pm2 stop all cd ~/MagicMirror npm start [PM2] Applying action stopProcessId on app [all](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 277 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ > magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [02.10.2023 18:05.06.957] [LOG] Starting MagicMirror: v2.25.0 [02.10.2023 18:05.06.967] [LOG] Loading config ... [02.10.2023 18:05.06.972] [DEBUG] config template file not exists, no envsubst [02.10.2023 18:05.07.048] [ERROR] (node:11262) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 110. This version of Node.js requires NODE_MODULE_VERSION 116. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131) at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2131) 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 bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48) at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:15:3) 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) (Use `electron --trace-warnings ...` to show where the warning was created) [02.10.2023 18:05.07.050] [ERROR] (node:11262) 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) [11301:1002/180508.559663:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [11262:1002/180508.753264: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 [11329:1002/180509.789629:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [11354:1002/180512.079821:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
-
RE: Errors after Update
@sdetweil said in Errors after Update:
pm2 stop all
cd ~/MagicMirror
npm startmagicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[02.10.2023 17:48.18.730] [LOG] Starting MagicMirror: v2.25.0
[02.10.2023 17:48.18.752] [LOG] Loading config …
[02.10.2023 17:48.18.762] [DEBUG] config template file not exists, no envsubst
[02.10.2023 17:48.21.067] [ERROR] (node:8240) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘html-to-text’
Require stack:- /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js
- /home/pi/MagicMirror/modules/default/newsfeed/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 Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109751)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js:11:24)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
at Module.load (node:internal/modules/cjs/loader:1011:32)
at Module._load (node:internal/modules/cjs/loader:846:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/default/newsfeed/node_helper.js:10:25)
(Useelectron --trace-warnings ...
to show where the warning was created)
[02.10.2023 17:48.21.071] [ERROR] (node:8240) 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)
[8292:1002/174823.865854:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[8319:1002/174824.432604:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.