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.

    pm2 doesn't start after mm update

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 4 Posters 9.1k Views 3 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.
    • K Offline
      kurt
      last edited by

      Hi forum members
      this is what I get after updating the mirror, also after rebooting and restarting.
      Before I upgraded and updated the rpi sucessfully.
      Thank you for your help in advance
      kurt

      pi@raspberrypi:~ $ pm2 start mm
      [PM2] Applying action restartProcessId on app [mm](ids: 0)
      [PM2] [mm](0) ✓
      [PM2] Process successfully started
      ┌──────┬──────┬────────┬────┬─────┬──────────┐
      │ Name │ mode │ status │ ↺  │ cpu │ memory   │
      ├──────┼──────┼────────┼────┼─────┼──────────┤
      │ mm   │ fork │ online │ 29 │ 0%  │ 2.3 MB   │
      └──────┴──────┴────────┴────┴─────┴──────────┘
       Use `pm2 show ` to get more details about an app
      pi@raspberrypi:~ $
      
      ? K 2 Replies Last reply Reply Quote 0
      • ? Offline
        A Former User @kurt
        last edited by A Former User

        @kurt
        try pm2 log mm
        and

        cd ~/MagicMirror
        npm start dev
        

        What can you see in terminal and browser (and additional dev console window)?

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          kurt @Guest
          last edited by

          @Sean
          hi Sean thank you for your quick response
          this is what I get

          0|mm       |  Please include the following file with any support request:
          0|mm       | npm ERR!     /home/pi/MagicMirror/npm-debug.log
          
          npm ERR! Linux 4.9.53-v7+
          npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "dev"
          npm ERR! node v6.11.4
          npm ERR! npm  v3.10.10
          npm ERR! code ELIFECYCLE
          npm ERR! magicmirror@2.1.3 start: `sh run-start.sh "dev"`
          npm ERR! Exit status 1
          npm ERR! 
          npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh "dev"'.
          npm ERR! Make sure you have the latest version of node.js and npm installed.
          npm ERR! If you do, this is most likely a problem with the magicmirror package,
          npm ERR! not with npm itself.
          npm ERR! Tell the author that this fails on your system:
          npm ERR!     sh run-start.sh "dev"
          npm ERR! You can get information on how to open an issue for this project with:
          npm ERR!     npm bugs magicmirror
          npm ERR! Or if that isn't available, you can get their info via:
          npm ERR!     npm owner ls magicmirror
          npm ERR! There is likely additional logging output above.
          
          npm ERR! Please include the following file with any support request:
          npm ERR!     /home/pi/MagicMirror/npm-debug.log
          pi@raspberrypi:~/MagicMirror $ 
          
          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            https://forum.magicmirror.builders/topic/636/npm-start-dev?page=1
            I think this could be help.

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              kurt @Guest
              last edited by

              @Sean
              well thank you for the link, but I could’t find a simple solution for my problem. The mirror doesn’t start also if I do the

              DISPLAY=:0 npm start
              

              by VNC

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @kurt
                last edited by A Former User

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • K Offline
                  kurt @kurt
                  last edited by

                  @kurt
                  Hi memebers
                  anyone else has an idea to get my mirror back on the screen again?
                  It’s frustrating for me, because the mirror with all the modules was running like a charm, but after that update …
                  Thank you

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @kurt
                    last edited by

                    @kurt said in pm2 doesn’t start after mm update:

                    anyone else has an idea to get my mirror back on the screen again?

                    Until you can fix your updated installation, you can rename your MagicMirror folder and manually install the version of MM that was working for you. At least you’ll have your mirror back

                    Create a working config
                    How to add modules

                    K 1 Reply Last reply Reply Quote 1
                    • K Offline
                      kurt @Mykle1
                      last edited by

                      @Mykle1
                      thank you Mykle1, sounds for me as it is a weekend job.
                      To get things right: first thing is to rename the MagicMirror folder.
                      Second step is to go thru the install routine https://forum.magicmirror.builders/topic/236/complete-setup-tutorial
                      Is it than possible to copy/paste the modul-folders from the renamed (old)MMfolder into the new one and and the old config.file?
                      I read your help in https://forum.magicmirror.builders/topic/5081/mm-wont-start-after-install/2
                      but I guess this is a different problem.
                      Thank you

                      Mykle1M 1 Reply Last reply Reply Quote 1
                      • lavolp3L Offline
                        lavolp3 Module Developer
                        last edited by lavolp3

                        Hi Kurt,

                        if I understand correctly your mirror doesn’t show up despite your pm2 “starting” it successfully!?

                        the run-start.sh shell script seems to be the problem.
                        This is the content:

                        if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
                        	export DISPLAY=:0 # Set by defaul display
                        fi
                        electron js/electron.js $1
                        

                        I would assume electron has some problem starting…

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        K 1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        • 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