MagicMirror² v2.7.0 is available! For more information about this release, check out this topic.

Restarting error


  • Project Sponsor

    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?


  • Module Developer

    @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


  • Project Sponsor

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