MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    magicmirror [DEBUG] config syntax error

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 558 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jamesvcc
      last edited by sdetweil

      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 magicmirror

      magicmirror@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

      S 1 Reply Last reply Reply Quote 0
      • J Offline
        jamesvcc @sdetweil
        last edited by

        @sdetweil Awesome, been puzzling for ages over this. What a difference two " makes make.

        Thank you for being a second set of eyes.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @jamesvcc
          last edited by

          @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
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jamesvcc @sdetweil
            last edited by

            @sdetweil Awesome, been puzzling for ages over this. What a difference two " makes make.

            Thank you for being a second set of eyes.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @jamesvcc
              last edited by

              @jamesvcc said in magicmirror [DEBUG] config syntax error:

              What a difference two " makes make

              yep, computers are SOOOOOO picky!!.. lol

              glad its working now

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy