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.

    MMM-WatchDog

    Scheduled Pinned Locked Moved System
    12 Posts 7 Posters 12.0k Views 6 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.
    • paviroP Offline
      paviro Admin
      last edited by

      Maybe this should be a default module?

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      1 Reply Last reply Reply Quote 1
      • MichMichM Offline
        MichMich Admin
        last edited by

        In most cases this module should not be necessary and probably only causes confusion. I built it for a mirror running on macOS which gives some issues due to an webGL module which causes a buffer overflow after a few days of running. (Bug in WebGL).

        So this module is only there for edge cases. In most cases we just need to hunt down the bug causing the UI issue.

        paviroP 1 Reply Last reply Reply Quote 0
        • paviroP Offline
          paviro Admin @MichMich
          last edited by

          @MichMich ah I see :)

          We're all stories in the end. Just make it a good one, eh?

          – The Doctor

          1 Reply Last reply Reply Quote 0
          • KirAsh4K Offline
            KirAsh4 Moderator
            last edited by paviro

            macOS is the edge case. :)

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 1
            • Mr.MeeseeksM Offline
              Mr.Meeseeks
              last edited by

              Does it work on server only mode?

              CAAAAN DOO!πŸ‘

              1 Reply Last reply Reply Quote 0
              • MichMichM Offline
                MichMich Admin
                last edited by

                In that case only the server will be restarted, so that doesn’t make sense.

                1 Reply Last reply Reply Quote 0
                • Mr.MeeseeksM Offline
                  Mr.Meeseeks
                  last edited by

                  Ha, ya that’s what I saw, it would shut down server. so I guess another reason why it’s not a default module unless it could detect if running in server mode.

                  CAAAAN DOO!πŸ‘

                  1 Reply Last reply Reply Quote 0
                  • foxF Offline
                    fox
                    last edited by

                    Are there any issues with the newest update known?
                    I got it work again after removed the watchdog module

                    Issues With MMM-WatchDog known?

                    https://forum.magicmirror.builders/post/29827

                    Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rak
                      last edited by

                      Hello guys,

                      I have mm running via PM2 already. I installed MMM-Watchdog. The gui crashed this night, but it did not restart. What did I do wrong?

                      My PM2 looks like this …

                      $ pm2 info MagicMirror
                       Describing process with id 0 - name MagicMirror 
                      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                      β”‚ status            β”‚ online                                   β”‚
                      β”‚ name              β”‚ MagicMirror                              β”‚
                      β”‚ restarts          β”‚ 0                                        β”‚
                      β”‚ uptime            β”‚ 37m                                      β”‚
                      β”‚ script path       β”‚ /home/pi/MagicMirror/installers/mm.sh    β”‚
                      β”‚ script args       β”‚ N/A                                      β”‚
                      β”‚ error log path    β”‚ /home/pi/.pm2/logs/MagicMirror-error.log β”‚
                      β”‚ out log path      β”‚ /home/pi/.pm2/logs/MagicMirror-out.log   β”‚
                      β”‚ pid path          β”‚ /home/pi/.pm2/pids/MagicMirror-0.pid     β”‚
                      β”‚ interpreter       β”‚ bash                                     β”‚
                      β”‚ interpreter args  β”‚ N/A                                      β”‚
                      β”‚ script id         β”‚ 0                                        β”‚
                      β”‚ exec cwd          β”‚ /home/pi                                 β”‚
                      β”‚ exec mode         β”‚ fork_mode                                β”‚
                      β”‚ node.js version   β”‚ N/A                                      β”‚
                      β”‚ node env          β”‚ N/A                                      β”‚
                      β”‚ watch & reload    β”‚ βœ”                                        β”‚
                      β”‚ unstable restarts β”‚ 0                                        β”‚
                      β”‚ created at        β”‚ 2018-09-09T08:36:00.617Z                 β”‚
                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       Revision control metadata 
                      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                      β”‚ revision control β”‚ git                                            β”‚
                      β”‚ remote url       β”‚ https://github.com/MichMich/MagicMirror.git    β”‚
                      β”‚ repository root  β”‚ /home/pi/MagicMirror                           β”‚
                      β”‚ last update      β”‚ 2018-09-07T00:04:31.656Z                       β”‚
                      β”‚ revision         β”‚ 6aa156d95667b230264fd99c5df877b25759e710       β”‚
                      β”‚ comment          β”‚ Merge pull request #1343 from MichMich/develop β”‚
                      β”‚ branch           β”‚ master                                         β”‚
                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      
                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rak
                        last edited by

                        Found this. Can this b the reason it did not restart again?

                        When your app stays up for less than min_uptime (1s by default) until max_restarts (15 by default) is exceeded, it will stop restarting. So the most likely explanation here is that your app keeps crashing over and over for some reason. Whenever it stays up for longer than min_uptime, max_restarts is reset, so the default values should work just fine.

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