• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Config template file not exists, no ensubst

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 2 Posters 1.6k 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
    DDE12
    last edited by May 24, 2023, 10:49 PM

    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.

    S 1 Reply Last reply May 24, 2023, 11:03 PM Reply Quote 0
    • S Away
      sdetweil @DDE12
      last edited by May 24, 2023, 11:03 PM

      @DDE12 this is a new feature, allowing runtime substitution of variables in the config
      see
      https://docs.magicmirror.builders/configuration/introduction.html#environment-variables

      the 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…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply May 27, 2023, 2:00 AM Reply Quote 0
      • D Offline
        DDE12 @sdetweil
        last edited by May 27, 2023, 2:00 AM

        @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!

        S 2 Replies Last reply May 27, 2023, 3:39 AM Reply Quote 0
        • S Away
          sdetweil @DDE12
          last edited by sdetweil May 27, 2023, 3:40 AM May 27, 2023, 3:39 AM

          @DDE12 can you show the rest of the messages

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @DDE12
            last edited by May 27, 2023, 12:17 PM

            @DDE12 but I think you need to do the npm install in the MagicMirror folder

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply May 27, 2023, 6:59 PM Reply Quote 0
            • D Offline
              DDE12 @sdetweil
              last edited by May 27, 2023, 6:59 PM

              @sdetweil
              User@Win10 MINGW64 /c/MagicMirror
              $ npm run start

              magicmirror@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 …

              S 1 Reply Last reply May 27, 2023, 7:31 PM Reply Quote 0
              • S Away
                sdetweil @DDE12
                last edited by May 27, 2023, 7:31 PM

                @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

                https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply May 27, 2023, 8:23 PM Reply Quote 0
                • D Offline
                  DDE12 @sdetweil
                  last edited by May 27, 2023, 8:23 PM

                  @sdetweil The temp fix worked. Thank you!

                  1 Reply Last reply Reply Quote 0
                  • S sdetweil referenced this topic on May 29, 2023, 11:25 AM
                  • D DDE12 referenced this topic on May 29, 2023, 3:20 PM
                  • 1 / 1
                  1 / 1
                  • First post
                    2/8
                    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