Read the statement by Michael Teeuw here.
Config template file not exists, no ensubst
-
Today I installed the current version of MM on Win10 in C:\MagicMirror. I had a previous version running without issue in C:\Users. I did not re-install Node. I am getting this message “Config template file not exists, no ensubst”. The rest of the loading messages seem normal with the last message being “Sockets connected and modules started”. Config:check does not find any errors. Here is my config.js
let config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-US", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 12, units: "imperial", modules: [ { // clock module: "clock", position: "top_left" }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
I would appreciate some help in troubleshooting this. Thank you for taking a look.
-
@DDE12 this is a new feature, allowing runtime substitution of variables in the config
see
https://docs.magicmirror.builders/configuration/introduction.html#environment-variablesthe message just says we didn’t find the env file to use, not an error
this goes along with some additional messaging in the case where we couldn’t find the module you specified in config.js … instead of being silent…
-
@sdetweil Thank you for taking a look at this. I forgot to put in the first post that the MM screen doesn’t start. If that message does not indicate an error, then I have another problem. Please let me know what else to try or what further info I can provide. Thanks!
-
@DDE12 can you show the rest of the messages
-
@DDE12 but I think you need to do the npm install in the MagicMirror folder
-
@sdetweil
User@Win10 MINGW64 /c/MagicMirror
$ npm run startmagicmirror@2.23.0 start
.\node_modules.bin\electron js\electron.js[27.05.2023 14:49.18.622] [LOG] Starting MagicMirror: v2.23.0
[27.05.2023 14:49.18.638] [LOG] Loading config …
[27.05.2023 14:49.18.638] [DEBUG] config template file not exists, no envsubst
[27.05.2023 14:49.18.654] [LOG] Loading module helpers …
[27.05.2023 14:49.18.654] [LOG] No helper found for module: alert.
[27.05.2023 14:49.18.669] [LOG] Initializing new module helper …
[27.05.2023 14:49.18.676] [LOG] Module helper loaded: updatenotification
[27.05.2023 14:49.18.676] [LOG] No helper found for module: clock.
[27.05.2023 14:49.19.008] [LOG] Initializing new module helper …
[27.05.2023 14:49.19.008] [LOG] Module helper loaded: calendar
[27.05.2023 14:49.19.008] [LOG] No helper found for module: compliments.
[27.05.2023 14:49.19.008] [LOG] No helper found for module: weather.
[27.05.2023 14:49.19.039] [LOG] Initializing new module helper …
[27.05.2023 14:49.19.039] [LOG] Module helper loaded: newsfeed
[27.05.2023 14:49.19.039] [LOG] All module helpers loaded.
[27.05.2023 14:49.19.070] [LOG] Starting server on port 8080 …
[27.05.2023 14:49.19.209] [LOG] Launching application.
[27.05.2023 14:49.19.391] [LOG] Server started …
[27.05.2023 14:49.19.391] [LOG] Connecting socket for: updatenotification
[27.05.2023 14:49.19.391] [LOG] Starting module helper: updatenotification
[27.05.2023 14:49.19.391] [LOG] Connecting socket for: calendar
[27.05.2023 14:49.19.400] [LOG] Starting node helper for: calendar
[27.05.2023 14:49.19.400] [LOG] Connecting socket for: newsfeed
[27.05.2023 14:49.19.400] [LOG] Starting node helper for: newsfeed
[27.05.2023 14:49.19.400] [LOG] Sockets connected & modules started … -
@DDE12 doah, windows… bug, temp fix or pull the develop branch
temp fix, remove the red, add the green
https://github.com/MichMich/MagicMirror/commit/979f4ec6647728215ff1cccca941548b703ad356
or get the develop branch
-
@sdetweil The temp fix worked. Thank you!
-
-