• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.0k 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 Jan 11, 2019, 8:06 PM Jan 11, 2019, 7:48 PM

    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 Jan 15, 2019, 10:26 PM

      @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

      B 1 Reply Last reply Jan 17, 2019, 4:13 PM Reply Quote 0
      • B Offline
        bhepler Module Developer @AxLed
        last edited by Jan 17, 2019, 4:13 PM

        @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 Jan 17, 2019, 6:06 PM

          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
          • 1 / 1
          1 / 1
          • First post
            3/4
            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