Read the statement by Michael Teeuw here.
Auto start stops working
-
@Peter we need to see the output of npm start with the updated config.js
so do this
pm2 stop.all cd ~/MagicMirror npm start
-
@sdetweil this is what I get:
magicmirror@2.26.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[20.04.2024 15:23.46.108] [LOG] Starting MagicMirror: v2.26.0
[20.04.2024 15:23.46.141] [LOG] Loading config …
[20.04.2024 15:23.46.154] [DEBUG] config template file not exists, no envsubst
[20.04.2024 15:23.46.173] [LOG] Loading module helpers …
[20.04.2024 15:23.46.180] [LOG] No helper found for module: alert.
[20.04.2024 15:23.46.309] [LOG] Initializing new module helper …
[20.04.2024 15:23.46.312] [LOG] Module helper loaded: MMM-Pir
[20.04.2024 15:23.46.315] [LOG] No helper found for module: clock.
[20.04.2024 15:23.46.319] [LOG] No helper found for module: calendar_monthly.
[20.04.2024 15:23.46.848] [LOG] Initializing new module helper …
[20.04.2024 15:23.46.851] [LOG] Module helper loaded: calendar
[20.04.2024 15:23.46.854] [LOG] No helper found for module: weather.
[20.04.2024 15:23.46.856] [LOG] No helper found for module: MMM-Buienradar.
[20.04.2024 15:23.46.874] [ERROR] (node:2607) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
Require stack:- /home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js
- /home/mm/MagicMirror/js/app.js
- /home/mm/MagicMirror/js/electron.js
- /home/mm/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:116118)
at Module._resolveFilename (/home/mm/MagicMirror/node_modules/module-alias/index.js:49:29)
at node:internal/modules/cjs/loader:929:27
at Function._load (node:electron/js2c/node_init:2:13357)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object. (/home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js:8:17)
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/node_init:2:13357)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:121:18)
at loadModule (/home/mm/MagicMirror/js/app.js:181:19)
(Useelectron --trace-warnings ...
to show where the warning was created)
[20.04.2024 15:23.46.876] [ERROR] (node:2607) 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)
-
@Peter said in Auto start stops working:
[20.04.2024 15:23.46.874] [ERROR] (node:2607) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
Require stack:/home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js
yep
see
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-latea good reason to use my upgrade script… I would have checked and fixed this
https://github.com/sdetweil/MagicMirror_scripts -
@sdetweil I used your updatescript; problem still the same.
MM works fine without EveryNews in the config, with EveryNews there is no autostart.mm@raspberrypi:~ $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
update log will be in /home/mm/MagicMirror/installers/upgrade.logdoing test run = true, NO updates will be applied!
Check current Node installation …
Node currently installed. Checking version number.
Minimum Node version: v20.8.0
Installed Node version: v20.8.0
No Node.js upgrade necessary.
Check current NPM installation …
NPM currently installed. Checking version number.
Minimum npm version: V10.1.0
Installed npm version: V10.1.0
No npm upgrade necessary.saving custom.css
upgrading from version 2.26.0 to 2.27.0
fetching latest revisions
there are 1 local files that are different than the master repopackage-lock.json
any *-lock.json files do not need to be saved
do you want to save these files for later (Y/n)?n
skipping restore for package-lock.json, doing test runChecking for modules with removed libraries
require for request in module MMM-EveryNews not found in package.json
bypass installing request for module MMM-EveryNews , doing test run
updating dependencies for active modules with package.json files
processing for module MMM-Pir please wait
skipped processing for MMM-Pir, doing test run
processing complete for module MMM-Pir
processing for module MMM-Buienradar please wait
skipped processing for MMM-Buienradar, doing test run
processing complete for module MMM-Buienradar
processing for module MMM-EveryNews please wait
skipped processing for MMM-EveryNews, doing test run
processing complete for module MMM-EveryNews
processing for module MMM-ImagesPhotos please wait
skipped processing for MMM-ImagesPhotos, doing test run
processing complete for module MMM-ImagesPhotos
restoring custom.css
mm@raspberrypi:~ $ -
@Peter said in Auto start stops working:
doing test run = true, NO updates will be applied!
yes… upgrade is a 2 part thing
test
doyou did test which doesn’t fix anything
using the second link will DObut as you already did it manually, apply will bail out
so change the word apply at the end of the second copy/paste to
force
-
@sdetweil it works!
Thank you very much, you are great!
Peter -