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.

    Magic Mirror not starting on reboot

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 320 Views 2 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.
    • R Offline
      RushHour99
      last edited by

      Hi all, Please bare with me since I’m not totally understanding the pm2 service. I setup Magic Mirror on a Raspberry Pi0 with @sdetweil scripts. I can manually start Magic Mirror fine, but it does not start when I do a reboot of my pi. Any idea how to fix?

      After reboot, I see this in pm2 status:

      pi@mm1:~ $ pm2 status
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id  │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0   │ MagicMirror    │ default     │ 2.12.0  │ fork    │ N/A      │ 0      │ 0    │ stopped   │ 0%       │ 0b       │ pi       │ enabled  │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      

      When I check the pm2 log, I see:

      2020-10-31T16:18:53: PM2 log: [PM2] This PM2 is not UP TO DATE
      2020-10-31T16:18:53: PM2 log: [PM2] Upgrade to version 4.5.0
      2020-10-31T19:29:27: PM2 log: App [MagicMirror:0] exited with code [134] via signal [SIGINT]
      2020-10-31T19:29:27: PM2 log: App [MagicMirror:0] starting in -fork mode-
      2020-10-31T19:29:27: PM2 log: App [MagicMirror:0] online
      2020-10-31T19:30:01: PM2 log: Stopping app:MagicMirror id:0
      2020-10-31T19:30:01: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      2020-10-31T19:30:01: PM2 log: pid=9716 msg=process killed
      2020-10-31T19:30:01: PM2 log: PM2 successfully stopped
      2020-10-31T19:32:10: PM2 log: ===============================================================================
      2020-10-31T19:32:10: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
      2020-10-31T19:32:10: PM2 log: Time                 : Sat Oct 31 2020 19:32:10 GMT-0400 (Eastern Daylight Time)
      2020-10-31T19:32:10: PM2 log: PM2 version          : 4.4.1
      2020-10-31T19:32:10: PM2 log: Node.js version      : 10.21.0
      2020-10-31T19:32:10: PM2 log: Current arch         : arm
      2020-10-31T19:32:10: PM2 log: PM2 home             : /home/pi/.pm2
      2020-10-31T19:32:10: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
      2020-10-31T19:32:10: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
      2020-10-31T19:32:10: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
      2020-10-31T19:32:10: PM2 log: Application log path : /home/pi/.pm2/logs
      2020-10-31T19:32:10: PM2 log: Worker Interval      : 30000
      2020-10-31T19:32:10: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
      2020-10-31T19:32:10: PM2 log: Concurrent actions   : 2
      2020-10-31T19:32:10: PM2 log: SIGTERM timeout      : 1600
      2020-10-31T19:32:10: PM2 log: ===============================================================================
      

      I can start Magic Mirror manually by issuing:

      pi@mm1:~ $ pm2 restart MagicMirror
      Use --update-env to update environment variables
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id  │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0   │ MagicMirror    │ default     │ 2.13.0  │ fork    │ 792      │ 2s     │ 0    │ online    │ 0%       │ 2.4mb    │ pi       │ enabled  │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      

      Thanks!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @RushHour99
        last edited by

        @RushHour99 see that every now and again. haven’t been able to find the cause.

        run the fixuppm2.sh script from my site, down near the bottom

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        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