Read the statement by Michael Teeuw here.
Cannot access MM2 across the network - localhost ok
-
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
-
@dangerousden glad you got it working again!!
-
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 blockbefore posting do this
cd ~/MagicMirror/config node -c config.jssee if that provides a better error messsage
-
@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
-
@sdetweil Thank you for your prompt response. Apologies that mine is not so prompt. I didn’t get notifications about your reply.
Node -c config.js didn’t seem to do anything. It just returned to CLI
I’m having problems copying the config.js via Pi Connect, so I will get back to you when I return home.
TIA
-
As soon as you pointed out the double comma, I spotted it. Amazing how despite 2 hours of double checking, I missed that I had left a comma before a {
thank you, that has resolved the config error, but I still don’t have access via IP, just localhost
-
Regarding my failure to access MM via IP, but only localhost, does this mean anything to anyone??
I have installed VNC, so am wondering if this is causing problems -
my startup info is
#### System Information #### - SYSTEM: manufacturer: System manufacturer; model: System Product Name; virtual: false; MM: 2.34.0-develop - OS: platform: linux; distro: Ubuntu; release: 22.04.5 LTS; arch: x64; kernel: 5.15.0-160-generic - VERSIONS: electron: 38.1.2; used node: 22.19.0; installed node: 22.21.1; npm: 10.9.4; pm2: 6.0.13 - ENV: XDG_SESSION_TYPE: x11; MM_CONFIG_FILE: undefined WAYLAND_DISPLAY: undefined; DISPLAY: :0.0; ELECTRON_ENABLE_GPU: undefined - RAM: total: 48077.12 MB; free: 22026.83 MB; used: 26050.29 MB - OTHERS: uptime: 79391 minutes; timeZone: America/Chicagorunning with built in browser (Electron)
you are using node 24, I am using node 22. but that shouldn’t matter…
you should see these messages a few lines back from the info
[2025-12-15 15:13:31.921] [LOG] [server] Starting server on port 8090 ... [2025-12-15 15:13:31.922] [WARN] [server] You're using a full whitelist configuration to allow for all IPs [2025-12-15 15:13:31.935] [LOG] [app] Server started ..this will tell you the port and if there is a whitelist
-
I have made so many changes to the config of both Pi and MM2, I decided it would be easier to start with a fresh instance. So I backed up the config.js and custom.css files and reimaged the SD Card
I used @sdetweil amazing scripts to reinstall MM2 I was back up and running just 20 mins later. I pulled over the GIT repositories that I wanted and reconfigured the config files.
I DID NOT INSTALL VNC SERVER. This is almost definitely causing the network issues. I have reverted to Pi Connect
and everything is working. I synched the wrong MS account for my OneDrive images which I use for backgrounds, but I quickly downloaded them from my server backup and uploaded to my personal MS account. Recreated the Album and am very happy to say it is all running.
I wanted to try to set up a media player to link to my DLNA server (Serviio) but I had to give up on that. I also tried to mnt a folder to the music repository, but I have so much music that I couldn’t find a music player that gives me access to albums, so that I can choose what I want to play. But that is just me trying to push too far I think.
In short, I have my Google family calendar, I have weather and forecast (I’m a Brit and we LOVE weather), I have my holiday countdown and I have my OneDrive images on rotation for a background.
Thank you so much for the assistance. It is much appreciated. Now I need to mount my touchscreen monitor and Pi on the wall in the kitchen for all to admire :)
-
@dangerousden glad you got it working again!!
-
S sdetweil has marked this topic as solved
-
D dangerousden has marked this topic as solved
