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

auto recovery from mirror freeze

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 710 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 Away
    sdetweil @sprior
    last edited by Mar 6, 2024, 3:45 AM

    @sprior there is the MMM-WatchDog module that does that

    much of the modules are Javascript code in the front end. if some of it dies, it kills the browser.

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Mar 6, 2024, 3:52 AM Reply Quote 0
    • S Offline
      sprior @sdetweil
      last edited by Mar 6, 2024, 3:52 AM

      @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 Mar 6, 2024, 2:29 PM Reply Quote 0
      • S Away
        sdetweil @sprior
        last edited by Mar 6, 2024, 2:29 PM

        @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 Away
          sdetweil @sprior
          last edited by Mar 6, 2024, 2:30 PM

          @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 Mar 6, 2024, 5:45 PM Reply Quote 0
          • S Offline
            sprior @sdetweil
            last edited by Mar 6, 2024, 5:45 PM

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

            K S 2 Replies Last reply Mar 6, 2024, 6:02 PM Reply Quote 0
            • K Offline
              karsten13 @sprior
              last edited by Mar 6, 2024, 6:02 PM

              @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 Away
                sdetweil @sprior
                last edited by sdetweil Mar 6, 2024, 9:47 PM Mar 6, 2024, 6:02 PM

                @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
                1 / 1
                • First post
                  6/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