• 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.

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.
  • ? Offline
    A Former User @kurt
    last edited by A Former User Oct 10, 2017, 8:29 AM Oct 10, 2017, 8:29 AM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • K Offline
      kurt @kurt
      last edited by Oct 13, 2017, 6:29 AM

      @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

      M 1 Reply Last reply Oct 13, 2017, 11:34 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @kurt
        last edited by Oct 13, 2017, 11:34 AM

        @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 Oct 13, 2017, 1:31 PM Reply Quote 1
        • K Offline
          kurt @Mykle1
          last edited by Oct 13, 2017, 1:31 PM

          @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

          M 1 Reply Last reply Oct 14, 2017, 12:00 AM Reply Quote 1
          • L Offline
            lavolp3 Module Developer
            last edited by lavolp3 Oct 13, 2017, 2:41 PM Oct 13, 2017, 2:41 PM

            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 Oct 13, 2017, 3:14 PM Reply Quote 1
            • K Offline
              kurt @lavolp3
              last edited by Oct 13, 2017, 3:14 PM

              @lavolp3
              Hi lavolp3
              Bevor the update, pm2 startet the mirror, by now nothing happens at all, even no black screen etc.
              do you know a way to heal the mirror?
              Thanks

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @kurt
                last edited by Oct 14, 2017, 12:00 AM

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

                To get things right: first thing is to rename the MagicMirror folder.

                Yes, but then I suggest you do a manual installation. If you run the automatic installer script you may run into trouble again.

                Rename your MagicMirror folder. Go to https://github.com/MichMich/MagicMirror and click on the green Clone or download button on the right
                side of the window, then click on Download ZIP. Now you have a MagicMirror-master.zip file. Double Click the file. Inside is the MagicMirror-master folder. Move that file to your /home/pi folder. Rename that folder to MagicMirror. Then in your terminal, cd into the MagicMirror directory and run npm install. When that finishes, run npm start, also in the MagicMirror directory.

                At this point the mirror should run but you’ll likely get a “Create a config” message displayed. At which point you should do this.
                https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

                Then back to your terminal, in the MagicMirror directory, run npm start. That should get your mirror running.

                Then you can copy your modules, 1 by 1 into the new MagicMirror/modules folder and the entries into your new config.js file.

                That should do it.

                Create a working config
                How to add modules

                K 1 Reply Last reply Oct 14, 2017, 1:06 PM Reply Quote 0
                • K Offline
                  kurt @Mykle1
                  last edited by Oct 14, 2017, 1:06 PM

                  @Mykle1
                  Hi Mykle1 and Thank you for your help so much!
                  After I followed your help step by step the mirror appeared again, but I was suprised when I put all my modul folder into the “new mm”, that together with the old config. file everything worked out fine. Could’t believe that it was that easy.
                  But still I have two more things where I could’t get a for me clear solution in the forum:

                  DeprecationWarning: sys is deprecated. Use util instead.
                  

                  and the second thing is, that I can`t find the Remote control funktion on my mobile phone, as I found it bevor. Here is the part of my config.
                  Is there the “0.0.0.0” in ipWhitelist missing, and if yes, where to put it?
                  Kurt

                  var config = 
                  {
                  	electronOptions: {
                  		
                  	},
                  	  ipWhitelist: [
                  		"::fff:0.0.0.0/1",
                  		"::fff:128.0.0.0/2",
                  		"::fff:192.0.0.0/3",
                  		"::fff:224.0.0.0/4",
                  		"127.0.0.1",
                  		"::ffff:127.0.0.1",
                  		"::1"
                  	],
                  
                  M 1 Reply Last reply Oct 15, 2017, 12:05 AM Reply Quote 1
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @kurt
                    last edited by Oct 15, 2017, 12:05 AM

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

                    After I followed your help step by step the mirror appeared again, but I was suprised when I put all my modul folder into the “new mm”, that together with the old config. file everything worked out fine.

                    You got lucky. The step by step says one at a time. I’m just saying. :^)

                    DeprecationWarning: sys is deprecated. Use util instead.

                    Probably, one of the modules you are using has a dependency that is outdated or no longer supported. It has nothing to do with the MM software. You can ignore that warning.

                    and the second thing is, that I can`t find the Remote control funktion on my mobile phone, as I found it bevor. Here is the part of my config.
                    Is there the “0.0.0.0” in ipWhitelist missing, and if yes, where to put it?

                    This has been discussed lately on the forum. Do a search by clicking the little magnifying glass, top right of the forum window. If you can’t find an answer, come back here and tell me.

                    :^)

                    Create a working config
                    How to add modules

                    K 1 Reply Last reply Oct 15, 2017, 3:24 PM Reply Quote 1
                    • K Offline
                      kurt @Mykle1
                      last edited by Oct 15, 2017, 3:24 PM

                      @Mykle1
                      I tried several changes to my ipWhitelist after I read the posts in https://forum.magicmirror.builders/topic/5015/after-update-to-mirror-to-2-1-3-no-working-whitlist
                      but I couldn’t get it right. So I hope you can.
                      Thank you in advance
                      Kurt

                      M 1 Reply Last reply Oct 15, 2017, 3:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        10/18
                        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