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.

    Cannot start after reboot?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 4 Posters 1.2k 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.
    • S Offline
      Smedegaard
      last edited by Smedegaard

      Hi,

      I cannot start the MagicMirror after reboot. When i type:

      pm2 start MagicMirror
      

      I get the following error:

      [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
      [PM2] PM2 Successfully daemonized
      [PM2][ERROR] script not found : /opt/aiy/projects-python/MagicMirror
      script not found : /opt/aiy/projects-python/MagicMirror
      

      UPDATE:

      I did an update and now it tells me that it is starting MagicMirror but it does not show after reboot or when entering:

      pm2 start MagicMirror
      

      I just get the following lines:

      pi@raspberrypi:~/AIY-projects-python $ pm2 start MagicMirror [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌─────────────┬────┬───────┬────────┬────────┬─────┬────────┬───────────┐
      │ Name        │ id │ mode  │ status │ ↺      │ cpu │ memory │
      ├─────────────┼────┼───────┼────────┼────────┼─────┼────────┼───────────┤
      │ MagicMirror │ 0  │ 2.6.0 │ fork   │ online │ 18  │ 0%     │ 13.7 MB   │
      └─────────────┴────┴───────┴────────┴────────┴─────┴────────┴───────────┘
      
      1 Reply Last reply Reply Quote 0
      • A Offline
        AxLed Module Developer
        last edited by

        @Smedegaard
        Can you please post the output of

        tail -f ~/.pm2/logs/MagicMirror-out-0.log
        

        and

        tail -f ~/.pm2/logs/MagicMirror-error-0.log
        

        AxLED

        bheplerB 1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @AxLed
          last edited by

          @axled - The -f flag on the tail command will continually follow along with the log file as it gets updated. It may be difficult to capture the logs for copy & paste if they’re continually updating.

          I would recommend tail -30 ~/.pm2/logs/MagicMirror-out-0.log which will give you the last 30 lines of the log files.

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

            Not sure why, but on my install these files are called mm-out.log and mm-error.log. So maybe it would be

            tail -30 ~/.pm2/logs/mm-out.log
            

            and

            tail -30 ~/.pm2/logs/mm-error.log
            
            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 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