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.

    MagicMirror not showing, even though pm2 says it's online

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 1.7k 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.
    • J Offline
      jrinco11
      last edited by jrinco11

      I have tried this 3 times – brand new raspbian install, ran the magicmirror2 installation script, enabled pm2, once it’s completed, magicmirror starts great! I can stop/start via pm2, edit the config, make changes, mirror comes back up. Upon my first reboot, magicmirror never starts again. I run pm2 start MagicMirror, pm2 says it’s online, but nothing ever appears.

      Looking at pm2’s MagicMirror-error.log, I see
      Error: ENOENT: no such file or directory, open 'package.json'

      I tried running pm2 start MagicMirror from /home/pi/MagicMirror and /home/pi, with the same results.

      I actually made another magicmirror 2 weeks ago using the same raspbian build and same pi model (latest), no issues whatsoever, so not sure what’s going on this time around? Are there other logs for me to look at to help diagnose the issue?

      any thoughts/suggestions/help would be greatly appreciated!

      update if I run npm start from the MagicMirror dir, it actually loads fine! Any thoughts as to what’s wrong with pm2?

      update2 I deleted the existing MagicMirror app in pm2 and created my own from scratch, following this guide: https://github.com/MichMich/MagicMirror/wiki/auto-starting-magicmirror, and it seems to work as expected now – not sure what was wrong w/the auto created MagicMirror app

      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @jrinco11
        last edited by

        @jrinco11

        try npm rebuild

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        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