Read the statement by Michael Teeuw here.
Crashing after "Starting Server"
-
@MMRIZE Thanks for the help. Is there a configuration that needs to be set around node?
Here’s what “node -v” returns:
v18.17.1
Noticed it wasn’t the latest so went through the following:
npm install -g n n lts n prune
Now “node -v” returns:
v20.9.0
Still having the same issue, log after update below:
> magicmirror@2.25.0 server > node ./serveronly [20.11.2023 15:43.16.311] [LOG] Starting MagicMirror: v2.25.0 [20.11.2023 15:43.16.313] [LOG] Loading config ... [20.11.2023 15:43.16.315] [DEBUG] config template file not exists, no envsubst [20.11.2023 15:43.16.319] [LOG] Loading module helpers ... [20.11.2023 15:43.16.320] [LOG] No helper found for module: alert. [20.11.2023 15:43.16.331] [LOG] Initializing new module helper ... [20.11.2023 15:43.16.331] [LOG] Module helper loaded: updatenotification [20.11.2023 15:43.16.332] [LOG] No helper found for module: clock. [20.11.2023 15:43.16.449] [ERROR] Whoops! There was an uncaught exception... [20.11.2023 15:43.16.453] [ERROR] Error: Cannot find module 'fetch' Require stack: - /magicmirror2/modules/default/calendar/calendarfetcher.js - /magicmirror2/modules/default/calendar/node_helper.js - /magicmirror2/js/app.js - /magicmirror2/serveronly/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._resolveFilename (/magicmirror2/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:901:27) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/magicmirror2/modules/default/calendar/calendarfetcher.js:11:15) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/magicmirror2/modules/default/calendar/node_helper.js:8:25) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) { code: 'MODULE_NOT_FOUND', requireStack: [ '/magicmirror2/modules/default/calendar/calendarfetcher.js', '/magicmirror2/modules/default/calendar/node_helper.js', '/magicmirror2/js/app.js', '/magicmirror2/serveronly/index.js' ] } [20.11.2023 15:43.16.453] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [20.11.2023 15:43.16.453] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues ---Ensuring UID: 99 matches user--- usermod: no changes ---Ensuring GID: 100 matches user--- usermod: no changes ---Setting umask to 000--- ---Checking for optional scripts--- ---No optional script found, continuing--- ---Taking ownership of data...--- ---Starting...--- ---MagicMirror² up-to-date--- ---Looking for new modules to install--- Module 'MMM-GoogleCalendar' found! Module 'MMM-GooglePhotos' found! Module 'MMM-WeatherGraph' found! Module 'MMM-MyCommute' found! Module 'MMM-MonthlyCalendar' found! Module 'MMM-WebHookAlerts' found! Module 'MMM-WeasleyClock' found! Module 'MMM-NotificationReceived' found! Module 'MMM-TracCar' found! Module 'MMM-WiFiPassword' found! Module 'MMM-GoogleDocs-Notes' found! ---Preparing Server--- ---Configuration file found!--- ---Please wait, permissions are set, this can take some time...--- ---Starting Server---
-
@BEGreen87 what is all that junk at the end?
-
@BEGreen87 move the mm folder out of the way
and run my install script
https://github.com/sdetweil/MagicMirror_scriptsyou may want to backup your mirror setup and restore after
-
[20.11.2023 15:43.16.453] [ERROR] Error: Cannot find module 'fetch' Require stack: - /magicmirror2/modules/default/calendar/calendarfetcher.js
This is very weird log, because calendarfetcer.js doesn’t call
require("fetch")
in the source, so there is no reason of that error. Is the source modified? Can you check the source is the same with original? -
@MMRIZE Looks like I match the 2.23.0 Release.
-
-
-
fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Guessing this is because I’m using using it in Docker?
-
@BEGreen87 yeh, maybe