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.

    auto recovery from mirror freeze

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 3 Posters 1.4k 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.
    • S Offline
      sprior @sdetweil
      last edited by

      @sdetweil One thing I’d love to do is to run the browser from a container pinned to that specific node so that if it did die it could be killed/restarted using normal kubernetes container management. But running a GUI program from a container seems to be underexplored territory.

      The other approach I can think of would require being able to remotely kill/restart the browser on the console from an ssh connection. Currently I use a ~/.config/wayfire.ini file (created via an Ansible role) to launch chromium on boot, but that doesn’t make it any easier to relaunch after a browser crash.

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @sprior
        last edited by

        @sprior using the node process manager, aka pm2, you can programmatically restart any managed app. chromium, etc are just apps.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @sprior
          last edited by

          @sprior containers by definition don’t have access to the host ui.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sprior @sdetweil
            last edited by

            @sdetweil Not normally no, but for some things you can grant a hole in the container to allow direct access to some things. For example I run Jenkins in a Docker container but grant access to the docker socket so that Jenkins can actually launch build steps in containers. I think that it is possible to run GPU jobs in containers. But I agree with you that none of this is the norm.

            I’ll take a look at pm2.

            karsten13K S 2 Replies Last reply Reply Quote 0
            • karsten13K Offline
              karsten13 @sprior
              last edited by

              @sprior

              maybe the freezing of the client is caused by a restart of the server, e.g. if the server changes the node.

              In mm v2.25.0 we implemented an automatic browser reload if the server was restarted, so maybe this helps here (see https://github.com/MagicMirrorOrg/MagicMirror/pull/3188/files)

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @sprior
                last edited by sdetweil

                @sprior said in auto recovery from mirror freeze:

                Not normally no, but for some things you can grant a hole in the container to allow direct access to some things

                that is exactly the same…

                the app (jenkins, chrome) running on the docker host can access the service in the container…

                it is NOT the other way…

                the thing in the container can invoke things on the docker host

                anyhow… pm2’s JOB is to launch and keep running apps.

                you can use it for anything.

                I have a system where I launch the spotify service (raspotify), the camera motion detector (motion) and magicMirror on two different screens…

                I can kill any of them and pm2 will relaunch whatever has ended…

                SO, the thing being launched cannot ‘end’…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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