Read the statement by Michael Teeuw here.
MM screen doesn't start but can access through web browser
-
-
@sdetweil It looks like electron.js in 2.23.0 already has those changes except for
let config = await core.start()
https://forum.magicmirror.builders/topic/17807/config-template-file-not-exists-no-ensubst/7?_=1685358870752 had the default settings for address and ipWhitelist. The new problem arises when I add my information.
Changing config toaddress: "0.0.0.0", ipWhitelist: [],
results in a blank electron screen:
npm run startmagicmirror@2.23.0 start
.\node_modules.bin\electron js\electron.js[29.05.2023 11:15.38.750] [LOG] Starting MagicMirror: v2.23.0
[29.05.2023 11:15.38.760] [LOG] Loading config …
[29.05.2023 11:15.38.764] [DEBUG] config template file not exists, no envsubst
[29.05.2023 11:15.38.772] [LOG] Loading module helpers …
[29.05.2023 11:15.38.772] [LOG] No helper found for module: alert.
[29.05.2023 11:15.38.791] [LOG] Initializing new module helper …
[29.05.2023 11:15.38.792] [LOG] Module helper loaded: updatenotification
[29.05.2023 11:15.39.107] [LOG] Initializing new module helper …
[29.05.2023 11:15.39.107] [LOG] Module helper loaded: calendar
[29.05.2023 11:15.39.617] [LOG] Initializing new module helper …
[29.05.2023 11:15.39.618] [LOG] Module helper loaded: MMM-Wallpaper
[29.05.2023 11:15.39.619] [LOG] No helper found for module: MMM-CalendarExt3Agenda.
[29.05.2023 11:15.39.623] [LOG] Initializing new module helper …
[29.05.2023 11:15.39.623] [LOG] Module helper loaded: MMM-MoonPhase
[29.05.2023 11:15.39.623] [LOG] No helper found for module: MMM-FlipClock.
[29.05.2023 11:15.40.400] [LOG] Initializing new module helper …
[29.05.2023 11:15.40.400] [LOG] Module helper loaded: MMM-Gas
[29.05.2023 11:15.40.515] [LOG] Initializing new module helper …
[29.05.2023 11:15.40.515] [LOG] Module helper loaded: MMM-OpenWeatherForecast
[29.05.2023 11:15.40.516] [LOG] No helper found for module: MMM-CalendarExt3.
[29.05.2023 11:15.40.517] [LOG] No helper found for module: MMM-Carousel.
[29.05.2023 11:15.40.517] [LOG] All module helpers loaded.
[29.05.2023 11:15.40.534] [LOG] Starting server on port 8080 …
[29.05.2023 11:15.40.560] [WARN] You’re using a full whitelist configuration to allow for all IPs
[29.05.2023 11:15.40.575] [LOG] Server started …
[29.05.2023 11:15.40.576] [LOG] Connecting socket for: updatenotification
[29.05.2023 11:15.40.576] [LOG] Starting module helper: updatenotification
[29.05.2023 11:15.40.576] [LOG] Connecting socket for: calendar
[29.05.2023 11:15.40.577] [LOG] Starting node helper for: calendar
[29.05.2023 11:15.40.577] [LOG] Connecting socket for: MMM-Wallpaper
[29.05.2023 11:15.40.577] [LOG] Starting node helper for: MMM-Wallpaper
[29.05.2023 11:15.40.578] [LOG] Connecting socket for: MMM-MoonPhase
[29.05.2023 11:15.40.578] [LOG] Starting module helper: MMM-MoonPhase
[29.05.2023 11:15.40.578] [LOG] Connecting socket for: MMM-Gas
[29.05.2023 11:15.40.578] [LOG] Starting module: MMM-Gas
[29.05.2023 11:15.40.579] [LOG] Connecting socket for: MMM-OpenWeatherForecast
[29.05.2023 11:15.40.579] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherForecast]
[29.05.2023 11:15.40.579] [LOG] Sockets connected & modules started …
[29.05.2023 11:15.40.708] [LOG] Launching application.
[29.05.2023 11:15.41.834] [ERROR] (node:6304) electron: Failed to load URL: http://0.0.0.0:8080/ with error: ERR_ADDRESS_INVALID
(Useelectron --trace-warnings ...
to show where the warning was created) -
@DDE12 said in MM screen doesn't start but can access through web browser:
Failed to load URL: http://0.0.0.0:8080/ with error: ERR_ADDRESS_INVALID
well cool. no idea what’s causing that…
but I had reported a failure with that setting last year but didn’t get that message…
will put it on my list of things to look at.
-
@sdetweil Thanks! I’ll keep an eye out for a solution.
-
@DDE12 try this
edit js/electron.js
and change this , approx line 70 in the develop branch
let address = (config.address === void 0) | (config.address === "") ? (config.address = "localhost") : config.address;
to this
let address = (config.address === void 0) | (config.address === "") | (config.address === "0.0.0.0") ? (config.address = "localhost") : config.address;
previous issue, reopened