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.

    Restarting error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.3k Views 1 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
      Anthony Project Sponsor
      last edited by

      I have installed MMM-Watch dog on my mirror and I realized that it is restarting almost every 10 minutes and in pm2 logs I get this error:

      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       | (node:11093) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'refs' of undefined
      0|mm       | (node:11093) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      0|mm       | Thu Feb 07 2019 19:56:58 GMT+0200 (EET) - WatchDog: Heartbeat timeout. Frontend might have crashed. Exit now.
      0|mm       | npm ERR! code ELIFECYCLE
      0|mm       | npm ERR! errno 1
      0|mm       | npm ERR! magicmirror@2.6.0 start: `sh run-start.sh`
      0|mm       | npm ERR! Exit status 1
      0|mm       | npm ERR! 
      0|mm       | npm ERR! Failed at the magicmirror@2.6.0 start script.
      0|mm       | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      0|mm       | 
      0|mm       | npm ERR! A complete log of this run can be found in:
      0|mm       | npm ERR!     /home/pi/.npm/_logs/2019-02-07T17_57_05_585Z-debug.log
      0|mm       | (node:12819) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'refs' of undefined
      0|mm       | (node:12819) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      

      Does anyone knows what is causing watch dog restart the mirror so often?

      1 Reply Last reply Reply Quote 0
      • A Offline
        AxLed Module Developer
        last edited by

        @Anthony
        I also had MMM-Watchdog once and it also restarted my mirror quite often where there was no need to. I think everytime my pi was busy, MM-Watchdog decided to restart, so i remove MMM-Watchdog.

        AxLED

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Anthony Project Sponsor @AxLed
          last edited by

          @axled I removed too but since it is created for restarting the MM in case the UI crashes we may consider what the problem was and it was forcing watchdog to restart the app. Not everyone has the same problem from what I read in the forum. That’s why I posted my pm2 logs in case someone identifies the problem.

          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