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.

    Cannot access MM2 across the network - localhost ok

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 29 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.
    • D Offline
      dangerousden
      last edited by sdetweil

      Hi All. I have been using computers for a long time, and have recently taken the jump into Linux. My wife started my interest with the MagicMirror project.

      So far all has been great. I’ve install the MM2 v2.33 and had it running. I’ve added modules and all was good. Testing on the Pi was fine, and I would even access from my Laptop. However, I have made some silly mistake somewhere, which only became apparent when I rebooted. I cannot access from the IP any longer. localhost on the Pi still works, but Modules like FormulaOne and getting my Gmail calendar just sit “loading”. All was good before the reboot.

      Can anyone offer any suggestions?

      I’ve checked config.js and the IP is blank, and IPWhitelist is blank (unchanged from before the reboot)

      On starting the MM

      [2025-12-14 15:19:39.798] [LOG]   Starting MagicMirror: v2.33.0 
      [2025-12-14 15:19:39.814] [LOG]   Loading config ... 
      [2025-12-14 15:19:39.818] [LOG]   config template file not exists, no envsubst 
      [2025-12-14 15:19:41.369] [INFO]  Checking config file /home/den/MagicMirror/config/config.js ... 
      [2025-12-14 15:19:41.638] [INFO]  Your configuration file doesn't contain syntax errors :) 
      [2025-12-14 15:19:41.646] [INFO]  Checking modules structure configuration ... 
      [2025-12-14 15:19:41.936] [ERROR] This module configuration contains errors:
      undefinedmust be object 
      [2025-12-14 15:19:41.943] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading 'module') 
      [2025-12-14 15:19:41.946] [LOG]   Loading module helpers ... 
      [2025-12-14 15:19:41.981] [LOG]   Initializing new module helper ... 
      [2025-12-14 15:19:41.983] [LOG]   Module helper loaded: updatenotification 
      [2025-12-14 15:19:41.984] [LOG]   No helper found for module: helloworld. 
      [2025-12-14 15:19:41.985] [LOG]   All module helpers loaded. 
      [2025-12-14 15:19:42.011] [LOG]   Starting server on port 8080 ...  
      [2025-12-14 15:19:42.999] [LOG]   Server started ... 
      [2025-12-14 15:19:43.003] [LOG]   Connecting socket for: updatenotification 
      [2025-12-14 15:19:43.005] [LOG]   Starting module helper: updatenotification 
      [2025-12-14 15:19:43.006] [LOG]   Sockets connected & modules started ... 
      [2025-12-14 15:19:43.344] [LOG]   Launching application. 
      

      There seems to be an error, but it isn’t giving me any pointers

      Many thanks for any help

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @dangerousden
        last edited by sdetweil

        @dangerousden

        This module configuration contains errors:
        undefinedmust be object
        [2025-12-14 15:19:41.943] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading ‘module’)

        you have a bad config.js, and it started with the default which is not outside enabled…
        can you post your config.js , make sure to xxx out any personal info, apikeys or calendar urls…
        use the code block

        before posting do this

        cd ~/MagicMirror/config
        node -c  config.js
        

        see if that provides a better error messsage

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @dangerousden this error is reported when there are 2 commas in a row between modules

                },,
                {
                    module: "foo",
          

          the next release shows this error in detail,

           Your configuration file contains syntax errors :(
          Line 1726 column 9: Unexpected comma in middle of array.
          

          node -c doesn’t report it

          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