Read the statement by Michael Teeuw here.
magicmirror [DEBUG] config syntax error
-
I am running MM in a docker container. Everything has been fine up until today.
I have run npm run config:check from inside the container and it says my config is completely fine. However although the logs eventually say “ready to go” - it is not. I cannot get to the webpage -nothing, the container appears to have crashed.
Any ideas please.
copy default modules to host …
copy css files to host …
chown modules and config folder …
enable mouse cursor …
timezone is Europe/London
start magicmirrormagicmirror@2.25.0 server
node ./serveronly
[02.11.2023 16:08.13.554] [LOG] Starting MagicMirror: v2.25.0
[02.11.2023 16:08.13.555] [LOG] Loading config …
[02.11.2023 16:08.13.556] [DEBUG] config template file not exists, no envsubst
[02.11.2023 16:08.13.557] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: daily is not defined
at Object. (/opt/magic_mirror/config/config.js:91:6)
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 loadConfig (/opt/magic_mirror/js/app.js:117:14)
at App.start (/opt/magic_mirror/js/app.js:247:18)
at Object. (/opt/magic_mirror/serveronly/index.js:4:5)
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 Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
[02.11.2023 16:08.13.558] [LOG] Loading module helpers …
[02.11.2023 16:08.13.560] [LOG] Initializing new module helper …
[02.11.2023 16:08.13.560] [LOG] Module helper loaded: updatenotification
[02.11.2023 16:08.13.561] [LOG] No helper found for module: helloworld.
[02.11.2023 16:08.13.561] [LOG] All module helpers loaded.
[02.11.2023 16:08.13.563] [LOG] Starting server on port 8080 …
[02.11.2023 16:08.13.570] [LOG] Server started …
[02.11.2023 16:08.13.570] [LOG] Connecting socket for: updatenotification
[02.11.2023 16:08.13.571] [LOG] Starting module helper: updatenotification
[02.11.2023 16:08.13.571] [LOG] Sockets connected & modules started …
[02.11.2023 16:08.13.571] [LOG]
Ready to go! Please point your browser to: http://localhost:8080 -
@sdetweil Awesome, been puzzling for ages over this. What a difference two " makes make.
Thank you for being a second set of eyes.
-
@jamesvcc could you edit the config.js and look at lines 88-92
daily is not defined <---- what is daily? (if its meant to be a literal, it has to be in quotes) at Object. (/opt/magic_mirror/config/config.js:91:6) <---- on line 91
-
@sdetweil Awesome, been puzzling for ages over this. What a difference two " makes make.
Thank you for being a second set of eyes.
-
@jamesvcc said in magicmirror [DEBUG] config syntax error:
What a difference two " makes make
yep, computers are SOOOOOO picky!!.. lol
glad its working now