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.

    MM Restarts on Pi4

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 899 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.
    • T Offline
      thad @sdetweil
      last edited by

      @sdetweil

      pi@raspberrypi:~ $ ls ~/.pm2
      dump.pm2 dump.pm2.bak logs module_conf.json modules pids pm2.log pub.sock rpc.sock touch

      The SD card is probably a couple of years old.

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

        @thad weird…

        looks like pm2 is messed up

        let’s do this

        pm2 delete 0
        

        to get rid of the saved task

        them

        pm2 unstartup
        

        it will give u a command to copy/paste on the command line. do that…

        then reboot.

        pm2 is gone, so nothing will start

        then run the fixuppm2 script from my scripts repo

        https://github.com/sdetweil/MagicMirror_scripts

        see the last entry copy/paste

        MagicMirror should start

        then reboot to see if pm2 starts mm at boot time

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          thad @sdetweil
          last edited by

          @sdetweil
          Good news, bad news…

          Everything worked great until the last reboot. Post reboot, the MM restarting every minute starts again.

          Another observation, while running the fixuppm2 script I get those odd warnings:
          Accessing non-existent property ‘pwd’ of module exports inside circular dependency

          Several months ago, January I think, you helped me with the gpu related restarting. Once we got that working I don’t think the Pi4 rebooted until last week. I have very stable power and it’s plugged into a UPS. I think this problem may have been laying dormant for a long time.

          If you have other things you want me to try, let me know. For right now I have it working and I know the procedure to get it working again if I have to reboot for any reason.

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

            @thad how about node -v

            looks like u are on node 14.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              thad @sdetweil
              last edited by

              @sdetweil

              pi@raspberrypi:~ $ node -v
              v16.13.2

              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