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.

    After restart and updating raspberry MM will not starting

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 2.0k 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.
    • A Offline
      aldisachen
      last edited by

      Hello, I have a Raspi 4 with the following system:

      • Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
      • Docker version 20.10.21 and Poratiner version 2.12.2 are installed on it.
      • Magic_Mirror is also running as container on portainer

      Now to my problem…

      Every time if I restart the Raspi or install updates and restart the Raspi the MM will not longer working.

      Currently solution to workng again:

      • delete the container in the Portainer
      • delete the volume in the container
      • delete directory directly on the Raspi using rm -r “Magic_Mirror” (including the subdirectory.

      After these steps I use the next spets to running MM again:

      docker run -d
      –publish 8181:8080
      –restart always
      –volume ~/magic_mirror/config:/opt/magic_mirror/config
      –volume ~/magic_mirror/modules:/opt/magic_mirror/modules
      –volume /etc/localtime:/etc/localtime:ro
      –name Magic_Mirror
      bastilimbach/docker-magicmirror

      In order for MM to run, I have to change the network connection of MM from “Bridge” to “Host” in Portainer. Then MM runs again. Why is that and where can I see why MM is causing difficulties? It’s annoying having to do the above steps every time you install updates and have to restart the device.

      Other containers are running without problems after restart. It´s only the MM with the problems.
      Thanks in advance.

      S 2 Replies Last reply Reply Quote 0
      • S Away
        sdetweil @aldisachen
        last edited by sdetweil

        @aldisachen said in After restart and updating raspberry MM will not starting:

        address: “localhost”,

        this is a problem…

        it means ONLY apps INSIDE the same system can connect. ie, from INSIDE the container

        you want apps OUTSIDE the container to connect, the docker host or further away.

        so you should change that to address:“0.0.0.0”,
        meaning over any network interface, without having to specify what it is.

        then you can run container in network bridge mode. it will get IP address 172. something…

        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 @aldisachen
          last edited by

          @aldisachen this is a duplicate. don’t double post

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            aldisachen
            last edited by

            Hello and sorry for this misstake,
            Please delete the other duplicate post. Sorry again. Thanks.

            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @aldisachen
              last edited by

              @aldisachen done

              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 @aldisachen
                last edited by sdetweil

                @aldisachen what is the address: setting in mm config.js?

                what url do you use to access mm?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • A Offline
                  aldisachen
                  last edited by

                  Hello all togehter, the config.js starts with:

                  /* Magic Mirror Config Sample
                  *

                  • By Michael Teeuw http://michaelteeuw.nl
                  • MIT Licensed.
                  • For more information how you can configurate this file
                  • See https://github.com/MichMich/MagicMirror#configuration

                  */

                  var 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, is “localhost”
                  port: 8080,
                  ipWhitelist: [], // 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”],

                  and it will follow with the language, time format and so on and so on witch all the settings to display for the MM. Thnaks.

                  S 1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @aldisachen
                    last edited by sdetweil

                    @aldisachen said in After restart and updating raspberry MM will not starting:

                    address: “localhost”,

                    this is a problem…

                    it means ONLY apps INSIDE the same system can connect. ie, from INSIDE the container

                    you want apps OUTSIDE the container to connect, the docker host or further away.

                    so you should change that to address:“0.0.0.0”,
                    meaning over any network interface, without having to specify what it is.

                    then you can run container in network bridge mode. it will get IP address 172. something…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      aldisachen
                      last edited by

                      Hello, I don´t understand what is nessssary to change in the config file. Can you please write down the right settings at the config file ?
                      I have no experience with that. Thanks.

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @aldisachen
                        last edited by sdetweil

                        @aldisachen I did,

                        address:"0.0.0.0",
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          aldisachen
                          last edited by

                          Hello together,
                          after change the Address from “localhost” to “0.0.0.0” and restart the MM is runing without problems.
                          Now I can update and upgrade the system every day and not every month. It was not funny to do the same steps after restart and running the MM again. Thank you very much.

                          S 1 Reply Last reply Reply Quote 1
                          • 1
                          • 2
                          • 1 / 2
                          • 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