MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. jgarrow
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    jgarrow

    @jgarrow

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    jgarrow Unfollow Follow

    Latest posts made by jgarrow

    • RE: MagicMirror keeps crashing within 1 minute of starting up

      @sdetweil that did the trick, thank you! Bummer about watchdog, the auto restart was nice

      posted in Troubleshooting
      J
      jgarrow
    • MagicMirror keeps crashing within 1 minute of starting up

      My magicmirror has been running great on my raspberry pi v4 since I first set it up about a month ago. But last week, it started crashing after less than 1 minute of booting up. Since I have pm2 and WatchDog set up, it tries to restart it but always crashes again within a minute. I tried a completely fresh install of magicmirror, but still am having the same issue.

      Removing WatchDog resolves the crashing issue, but I would still like to use that module as it is nice to have the auto restart if something goes wrong and it crashes. I tried looking at the source code for it on GitHub, but don’t understand it/how it works with MagicMirror to know what the underlying issue is.

      Environment:

      • Node v18.4.0
      • npm v8.12.1
      • pm2 v5.1.1

      Here are some of my pm2 logs:

      PM2      | App [mm:0] starting in -fork mode-
      PM2      | App [mm:0] online
      0|mm     | > magicmirror@2.20.0 start
      0|mm     | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm     | [16.07.2022 01:30.16.988] [LOG]
      0|mm     | Starting MagicMirror: v2.20.0
      0|mm     | [16.07.2022 01:30.17.000] [LOG]
      0|mm     | Loading config ...
      0|mm     | [16.07.2022 01:30.17.010] [LOG]
      0|mm     | Loading module helpers ...
      0|mm     | [16.07.2022 01:30.17.018] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [16.07.2022 01:30.17.021] [LOG]
      0|mm     | Module helper loaded: MMM-WatchDog
      0|mm     | [16.07.2022 01:30.17.026] [LOG]
      0|mm     | No helper found for module: alert.
      0|mm     | [16.07.2022 01:30.17.042] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [16.07.2022 01:30.17.045] [LOG]
      0|mm     | Module helper loaded: updatenotification
      0|mm     | [16.07.2022 01:30.17.049] [LOG]
      0|mm     | No helper found for module: clock.
      0|mm     | [16.07.2022 01:30.17.275] [LOG]
      0|mm     | Initializing new module helper ...
      0|mm     | [16.07.2022 01:30.17.278] [LOG]
      0|mm     | Module helper loaded: calendar
      0|mm     | [16.07.2022 01:30.17.280] [LOG]
      0|mm     | No helper found for module: weather.
      0|mm     | [16.07.2022 01:30.17.281] [LOG]   All module helpers loaded.
      0|mm     | [16.07.2022 01:30.17.395] [LOG]
      0|mm     | Starting server on port 8080 ...
      0|mm     | [16.07.2022 01:30.17.413] [LOG]
      0|mm     | Server started ...
      0|mm     | [16.07.2022 01:30.17.441] [LOG]
      0|mm     | Connecting socket for: MMM-WatchDog
      0|mm     | [16.07.2022 01:30.17.443] [LOG]
      0|mm     | Starting module helper: MMM-WatchDog
      0|mm     | [16.07.2022 01:30.17.444] [LOG]   Connecting socket for: updatenotification
      0|mm     | [16.07.2022 01:30.17.445] [LOG]
      0|mm     | Starting module helper: updatenotification
      0|mm     | [16.07.2022 01:30.17.446] [LOG]   Connecting socket for: calendar
      0|mm     | [16.07.2022 01:30.17.447] [LOG]
      0|mm     | Starting node helper for: calendar
      0|mm     | [16.07.2022 01:30.17.448] [LOG]
      0|mm     | Sockets connected & modules started ...
      0|mm     | [16.07.2022 01:30.17.772] [LOG]
      0|mm     | Launching application.
      0|mm     | MESA-LOADER: failed to retrieve device information
      0|mm     | MESA-LOADER: failed to retrieve device information
      0|mm     | MESA-LOADER: failed to retrieve device information
      0|mm     | MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|mm     | failed to load driver: kms_swrast
      0|mm     | MESA-LOADER: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|mm     | failed to load swrast driver
      0|mm     | [16.07.2022 01:30.20.485] [LOG]
      0|mm     | WatchDog started. Maximum timeout: 10s.
      0|mm     | [16.07.2022 01:30.20.585] [LOG]
      0|mm     | Create new calendarfetcher for url: https://calendar.google.com/ical/my-cal-url - Interval: 60000
      0|mm     | [16.07.2022 01:30.20.627] [INFO]
      0|mm     | Checking git for module: MMM-WatchDog
      0|mm     | [16.07.2022 01:30.20.661] [INFO]
      0|mm     | Checking git for module: default
      0|mm     | [16.07.2022 01:30.33.451] [INFO]
      0|mm     | Calendar-Fetcher: Broadcasting 5 events.
      0|mm     | [16.07.2022 01:30.33.462] [ERROR]
      0|mm     | Sat Jul 16 2022 01:30:33 GMT-0600 (Mountain Daylight Time) - WatchDog: Heartbeat timeout. Frontend might have crashed. Exit now.
      PM2      | App [mm:0] exited with code [1] via signal [SIGINT]
      
      posted in Troubleshooting
      J
      jgarrow