Read the statement by Michael Teeuw here.
MMM-Config with Message "builder encountered a problem, see MagicMirror messages for info"
-
Hello everyone,
I’m currently working on a relatively newly installed instance of MagicMirror and discovered the MMM config.
At first, it worked very well.
Unfortunately, I now only get this message “builder encountered a problem, see MagicMirror messages for info” when accessing the configure page.I found a post here that describes a similar problem, but nothing there fixed my “problem”
https://forum.magicmirror.builders/topic/19305/rookie-question-builder-encountered-a-problem-see-magicmirror-messages-for-infothere it looks like “@sdetweil” fixed the problem.
and i found nothing MMM-Config releated in the log Files.
on npm run config:check
magicmirror@2.30.0 config:check
node js/check_config.js[2025-03-24 02:50:15.997] [INFO] Checking config file /home/Admin/MagicMirror/config/config.js …
[2025-03-24 02:50:16.196] [INFO] Your configuration file doesn’t contain syntax errors :)
[2025-03-24 02:50:16.197] [INFO] Checking modules structure configuration …
[2025-03-24 02:50:16.334] [INFO] Your modules structure configuration doesn’t contain errors :)contend of the file “defaults_17951887168800.js”
const config = require('../../config/config.js') var defined_config = { MMM_MicrosoftToDo_defaults: { oauth2ClientSecret: "", oauth2RefreshToken: "", oauth2ClientId: "", orderBy: "dueDate", hideIfEmpty: false, showCheckbox: true, maxWidth: 450, itemLimit: 200, completeOnClick: false, showDueDate: false, dateFormat: "ddd MMM Do [ - ]", refreshSeconds: 60, fade: false, fadePoint: 0.5, useRelativeDate: false, plannedTasks: { enable: false, includedLists: [".*"], duration: { weeks: 2 } }, colorDueDate: false, highlightTagColor: null }, MMM_homeassistant_sensors_defaults: { prettyName: true, stripName: true, title: 'Home Assistant', host: 'hassio.local', port: '8321', https: false, token: '', apipassword: '', fade: 100, updateInterval: 300000, id: false, displaySymbol: true, displaydates: false, displaytimes: false, notificationOnly: false, notificationCondition: [], dateformat: 'YYYY-MM-DD', timeformat: 'HH:mm:ss', controlsensor: 'sensor control disabled', controlsensorvalue: 'sensor control disabled', noaddress: 'away', debuglogging: false, rowClass: 'small', values: [] }, MMM_Config_defaults: { showQR: false, force_update: true, restart: "none", ModuleSortOrder:"date", debug: false, }, MMM_SteamPlaytime_defaults: { apiKey: null, steamId: null, updateTime: "00:00", daysCount: 5, gamesCount: 5, excludeGames: [], language: "---!config.languag"e }, MMM_MVVWiesty_defaults: { maxEntries: 5, stopId: "de:09162:6", filter: { }, displayNotifications: true, displayBundled: false, scrollSpeed: 40, minTimeUntilDeparture: 0 }, MMM_HomeAssistantDisplay_defaults: { title: "Home Assistant", host: "hassio.local", port: "8123", useTLS: false, ignoreCert: true, token: "", debuglogging: false, useModuleTigger: false, moduleTriggerTemplate: "", moduleTriggerEntities: false, animationSpeed: 3000, sections: [], class: "" }, MMM_EmbedURL_defaults: { basicElementType: "div", embedElementType: "iframe", updateInterval: 60, animationSpeed: 500, positions: "tie", attributes: [ "frameborder=0" ], imgDecodeCheckInterval: -1, updateDomOnResume: true }, MMM_GmailFeed_defaults: { updateInterval: 5 * 60 * 1000, maxEmails: 5, maxSubjectLength: 40, maxFromLength: 15, playSound: true, autoHide: false, displayMode: "table", color: true, showEmailAdressInHeader: true }, newsfeed_defaults: { feeds: [ { title: "New York Times", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml", encoding: "UTF-8" } ], showAsList: false, showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true, showDescription: false, showTitleAsUrl: false, wrapTitle: true, wrapDescription: true, truncDescription: true, lengthDescription: 400, hideLoading: false, reloadInterval: 5 * 60 * 1000, updateInterval: 10 * 1000, animationSpeed: 2.5 * 1000, maxNewsItems: 0, ignoreOldItems: false, ignoreOlderThan: 24 * 60 * 60 * 1000, removeStartTags: "", removeEndTags: "", startTags: [], endTags: [], prohibitedWords: [], scrollLength: 500, logFeedWarnings: false, dangerouslyDisableAutoEscaping: false }, helloworld_defaults: { text: "Hello World!" }, updatenotification_defaults: { updateInterval: 10 * 60 * 1000, refreshInterval: 24 * 60 * 60 * 1000, ignoreModules: [], sendUpdatesNotifications: false, updates: [], updateTimeout: 2 * 60 * 1000, updateAutorestart: false }, compliments_defaults: { compliments: { anytime: ["Hey there sexy!"], morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"], afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"], evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"], "....-01-01": ["Happy new year!"] }, updateInterval: 30000, remoteFile: null, remoteFileRefreshInterval: 0, fadeSpeed: 4000, morningStartTime: 3, morningEndTime: 12, afternoonStartTime: 12, afternoonEndTime: 17, random: true, specialDayUnique: false }, clock_defaults: { displayType: "digital", timeFormat: "---!config.timeFormat", timezone: null, displaySeconds: true, showPeriod: true, showPeriodUpper: false, clockBold: false, showDate: true, showTime: true, showWeek: false, dateFormat: "dddd, LL", sendNotifications: false, analogSize: "200px", analogFace: "simple", analogPlacement: "bottom", analogShowDate: "top", secondsColor: "#888888", showSunTimes: false, showMoonTimes: false, lat: 47.630539, lon: -122.344147 }, alert_defaults: { effect: "slide", alert_effect: "jelly", display_time: 3500, position: "center", welcome_message: false }, weather_defaults: { weatherProvider: "openweathermap", roundTemp: false, type: "current", lang: "---!config.language", units: "---!config.units", tempUnits: "---!config.units", windUnits: "---!config.units", timeFormat: "---!config.timeFormat", updateInterval: 10 * 60 * 1000, animationSpeed: 1000, showFeelsLike: true, showHumidity: "none", showIndoorHumidity: false, showIndoorTemperature: false, allowOverrideNotification: false, showPeriod: true, showPeriodUpper: false, showPrecipitationAmount: false, showPrecipitationProbability: false, showUVIndex: false, showSun: true, showWindDirection: true, showWindDirectionAsArrow: false, degreeLabel: false, decimalSymbol: ".", maxNumberOfDays: 5, maxEntries: 5, ignoreToday: false, fade: true, fadePoint: 0.25, initialLoadDelay: 0, appendLocationNameToHeader: true, calendarClass: "calendar", tableClass: "small", onlyTemp: false, colored: false, absoluteDates: false, hourlyForecastIncrements: 1 }, calendar_defaults: { maximumEntries: 10, maximumNumberOfDays: 365, limitDays: 0, pastDaysCount: 0, displaySymbol: true, defaultSymbol: "calendar-alt", defaultSymbolClassName: "fas fa-fw fa-", showLocation: false, displayRepeatingCountTitle: false, defaultRepeatingCountTitle: "", maxTitleLength: 25, maxLocationTitleLength: 25, wrapEvents: false, wrapLocationEvents: false, maxTitleLines: 3, maxEventTitleLines: 3, fetchInterval: 60 * 60 * 1000, animationSpeed: 2000, fade: true, fadePoint: 0.25, urgency: 7, timeFormat: "relative", dateFormat: "MMM Do", dateEndFormat: "LT", fullDayEventDateFormat: "MMM Do", showEnd: false, showEndsOnlyWithDuration: false, getRelative: 6, hidePrivate: false, hideOngoing: false, hideTime: false, hideDuplicates: true, showTimeToday: false, colored: false, forceUseCurrentTime: false, tableClass: "small", calendars: [ { symbol: "calendar-alt", url: "https://www.calendarlabs.com/templates/ical/US-Holidays.ics" } ], customEvents: [ { keyword: ".*", transform: { search: "De verjaardag van ", replace: "" } }, { keyword: ".*", transform: { search: "'s birthday", replace: "" } } ], locationTitleReplace: { "street ": "" }, broadcastEvents: true, excludedEvents: [], sliceMultiDayEvents: false, broadcastPastEvents: false, nextDaysRelative: false, selfSignedCert: false, coloredText: false, coloredBorder: false, coloredSymbol: false, coloredBackground: false, limitDaysNeverSkip: false, flipDateHeaderTitle: false, updateOnFetch: true }, } module.exports={defined_config,config};Thank You in advance
-
@dphotograph you can use that module again now
in the MMM-Config folder do
git pull
then restart MagicMirror -
@dphotograph can you show the rest of the startup messages please
-
@dphotograph i am not near my system for a couple hours
but you could try one test
in the MMM-Config folder do
node -c xxx
xxx is that defaults filename
if all is good you should get no results, and back to the prompt
i don’t See anything quick look -
@sdetweil Hello
Thank You for the fast response
it looks like there is a typo in the defaults filenode -c defaults_17951887168800.js /home/Admin/MagicMirror/modules/MMM-Config/defaults_17951887168800.js:69 language: "---!config.languag"e ^ SyntaxError: Unexpected identifier 'e' at wrapSafe (node:internal/modules/cjs/loader:1378:20) at checkSyntax (node:internal/main/check_syntax:78:3) Node.js v20.18.1in the line 69 is this
language: "---!config.languag"eBut now that i now that can i change this my self?
if i change it myself, on the next restart “pm2 restart 0” it is back to the typo :-OThank you
-
@dphotograph also, do you know the rough change you made last? installed a module?
-
i think the last ones are
MMM_homeassistant_sensors
MMM_HomeAssistantDisplay
MMM_SteamPlaytimeUnfortunately, I was too impatient and installed three modules at once.
Typical beginner’s mistake -
i just removed the Steam Playtime from MM now it is back to normal :-)
i think i can live without it ;-)
But really! Thank You for the help to indentify the Problem :-)
-
@dphotograph thanks the discovery of all the module config contents is pretty tricky
ill look at this shortly
-
@dphotograph did you install the modules thru the MMM-Config installer?
-
@dphotograph you should have seen this in the logs, MagicMirror
startup messages--------------------MMM-Config module MMM-SteamPlaytime has an error in the construction of its defaults section the error line is language: "---!config.languag"e please change it to the literal value of the referenced variable and restart MagicMirror --------------------MMM-Configbecause you are using pm2, you will have to ask to display more lines of output than the default 15
for examplepm2 logs --lines=100100 can be any number, default is last 15…
-
@dphotograph you can use that module again now
in the MMM-Config folder do
git pull
then restart MagicMirror -
S sdetweil has marked this topic as solved on
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