• 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.

Client wont keep Modules up-to-date

Scheduled Pinned Locked Moved Unsolved Troubleshooting
21 Posts 3 Posters 6.8k Views 3 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.
  • K Offline
    karsten13 @sdetweil
    last edited by Oct 7, 2021, 10:39 PM

    @sdetweil

    there is no pm2 in the container …

    The command is docker logs <containername or id>, so if you use my docker-compose setup docker logs mm.

    S 1 Reply Last reply Oct 7, 2021, 11:20 PM Reply Quote 0
    • S Offline
      sdetweil @karsten13
      last edited by sdetweil Oct 7, 2021, 11:21 PM Oct 7, 2021, 11:20 PM

      @karsten13 so I have to restart the container after making config changes?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Oct 8, 2021, 7:50 AM Reply Quote 0
      • C Offline
        codac @sdetweil
        last edited by Oct 8, 2021, 7:50 AM

        @sdetweil yes, you should do that.

        1 Reply Last reply Reply Quote 0
        • C Offline
          codac
          last edited by Dec 27, 2021, 2:09 PM

          I have still not fixed this.

          Servers IP: 192.168.0.23 (local Port 8036, container-port: 8080)

          On the client I get the following error:

          Unable to connect to server: (Error: Unable to read config from server (http://192.168.0.23:8036/config/ (connect ECONNREFUSED 192.168.0.23:8036)
          

          The servers config is set to:

                  address: "0.0.0.0",
          	port: 8080,
          	basePath: "/", 	
          	ipWhitelist: ['0.0.0.0/0', '127.0.0.1', '::ffff:127.0.0.1', '::1', '192.168.0.0/24', '172.17.0.0/24'], 
          

          Any ideas why the client wont get the servers config?

          S K 2 Replies Last reply Dec 27, 2021, 2:19 PM Reply Quote 0
          • S Offline
            sdetweil @codac
            last edited by sdetweil Dec 27, 2021, 2:50 PM Dec 27, 2021, 2:19 PM

            @codac first, remove the ipWhitelist , set to []

            then try
            .and the IP address used is the docker host IP address, right.

            never use the containers direct address for any code not running ON the docker host machine

            where is client running?

            if mm rejected the connection due to whitelist you should have seen it in the mm messages

            i see a message like this

            Access denied to IP address: 192.168.2.106
            

            my config

            	address: "192.168.2.106", 	// 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: 8090,
            	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"], 
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • K Offline
              karsten13 @codac
              last edited by Dec 27, 2021, 3:04 PM

              @codac

              may you must open the additional port in the docker setup and add the line with 8036 (untested) in your docker-compose.yml:

                  ports:
                    - "8080:8080"
                    - "8036:8036"
              
              S 1 Reply Last reply Dec 27, 2021, 3:06 PM Reply Quote 0
              • S Offline
                sdetweil @karsten13
                last edited by Dec 27, 2021, 3:06 PM

                @karsten13 said in Client wont keep Modules up-to-date:

                ports:
                  - "8080:8080"
                  - "8036:8036"
                

                why wouldn’t

                     ports:
                           "8036:8080"
                

                be enough?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Dec 27, 2021, 3:07 PM Reply Quote 0
                • K Offline
                  karsten13 @sdetweil
                  last edited by karsten13 Dec 27, 2021, 3:08 PM Dec 27, 2021, 3:07 PM

                  @sdetweil think you are right …

                  S 1 Reply Last reply Dec 27, 2021, 3:13 PM Reply Quote 0
                  • S Offline
                    sdetweil @karsten13
                    last edited by Dec 27, 2021, 3:13 PM

                    @karsten13 actually I think you were closer…

                    I know a module that uses the port number in a url it presents…
                    (MMM-Config in the QR code)

                    8080 won’t work, but if the mapping was added

                    so

                         ports:
                               "8036:8080"
                               "8080:8080"
                    

                    would be needed

                    and if u need to do that, then 8080 on the docker host needs to be used, so then no need for 8036

                         ports:
                               "8080:8080"
                    

                    but can’t run two container instances

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Dec 27, 2021, 6:00 PM Reply Quote 0
                    • S Offline
                      sdetweil @sdetweil
                      last edited by Dec 27, 2021, 6:00 PM

                      @sdetweil also, my MM uses 8090 not to collide with another app.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      K 1 Reply Last reply Dec 27, 2021, 6:10 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        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