Read the statement by Michael Teeuw here.
MM only server version working due to issues with config file
-
@legan ok, on that error screen, ctrl-shift-i to open the developers window, then select the console tab and scroll up there should be an error at the top…
the code doestry { fs.accessSync(configFilename, fs.F_OK); // make sure we have permission to access file var c = require(configFilename); // load and parse config checkDeprecatedOptions(c); var config = Object.assign(defaults, c); // overlay defaults with config callback(config); // send back the loaded config } catch (e) { // some error above if (e.code === "ENOENT") { // if file not found Log.error(Utils.colors.error("WARNING! Could not find config file. Please create one. Starting with default configuration.")); } else if (e instanceof ReferenceError || e instanceof SyntaxError) { // got a syntax error Log.error(Utils.colors.error("WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: " + e.stack)); } else { // everything else Log.error(Utils.colors.error("WARNING! Could not load config file. Starting with default configuration. Error found: " + e)); } callback(defaults); // < this is sending back the module config that displays the error you see } -
@sdetweil thanks you very much! Ok, I opened the developer window as you suggested and attached the screenshots of the errors. Where exactly should I paste your code snippet?

-
@legan I was just showing what the code DOES…
custom.css error is because its not there by default…
-
@sdetweil ok sorry, I am not very familiar with java script yet…
-
very weird… lets do this
cd ~/MagicMirror npm run config:check -
@sdetweil no syntax errors…

-
@legan said in MM only server version working due to issues with config file:
@sdetweil no syntax errors…

thx… as expected…
can u check the filename , rename config.js and make sure no leading/trailing space
also can u try with a browser on pi to open
file:///home/pi/MagicMirror/config/config.js
-
Yes, I checked the filename several times, its fine. The config file is also accessible via file:///home/pi/MagicMirror/config/config.js
-
@legan can I see the address: and ipWhitelist: settings from config.js
-
make them
address:"0.0.0.0", ipWhitelist:[], -
@sdetweil I extended the whitelist and enabled all IP addresses. But still not working
-
@legan if u set it to [] that is all
-
@sdetweil said in MM only server version working due to issues with config file:
all
exactly, that’s what I did
-
@legan and address is localhost or 0.0.0.0?
-
@sdetweil now it’s working! Thank you very much you saved my tech mood though! :D
Have a good one! :)
-
@legan what did you do ?
-
@sdetweil I followed your instructions, and after changing localhost to 0.0.0.0.
I was able to start the mirror -
@legan weird
-
@sdetweil said in MM only server version working due to issues with config file:
weird
You can’t make this stuff up. :-)
-
@Mykle1 that is what I hear!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login