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 no longer launching MM

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    38 Posts 3 Posters 14.9k 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.
    • J Offline
      JMac @sdetweil
      last edited by

      @sdetweil after running the npm install now getting a different ENOTEMPTY for nodes_modules/basic-auth.
      Same issue of directory not empty

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

        @JMac weird, this makes no sense

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JMac @sdetweil
          last edited by

          @sdetweil I’m away with work until Friday but obviously want to try and get to the bottom of this.
          I’ll likely end up moving the mirror to somewhere way closer to the WiFi router.
          Will this stay open until the end of the week?

          Out of curiosity when launching via pm2 should it (in the little box that pops up in terminal) mention fork?

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @JMac
            last edited by

            @JMac this will stay open til u close it…

            yes, that is the linux term for starting an independent process

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @JMac I would rename the existing mm folder
              and then run install again, use my script
              https://github.com/sdetweil/MagicMirror_scripts

              to help move the modules and config, I’d use my backup/restore scripts
              https://github.com/sdetweil/MagicMirror-backup-restore

              backup before rename, restore after reinstall

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • J Offline
                JMac
                last edited by

                may sound like a daft question but how do I rename the magicmirror folder? I’ve run your back up (hopefully).

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

                  @JMac in Linux the rename command is mv

                  cd ~
                  mv MagicMirror newname
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JMac
                    last edited by

                    sorry to sound extremely daft, but what should I be renaming it? Is there a preferred name or one which makes most sense?

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

                      @JMac any name that works for you, you are just making room for the installer which is hard coded to use MagicMirror, and will abort if that folder is already created

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JMac
                        last edited by

                        once a new name is picked can it later be changed back to magicmirror just to keep everything standard?

                        Also, when you say,
                        mv magicmirror newname, I’m guessing the newname bit is actually what I want to call it, or do I put the new name after?
                        I’ve got a terrible feeling I’ll have to start the whole thing again which I definitely won’t look forward to.

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

                          @JMac new name is whatever u want to call it

                          it looks like there is a mess, and you are reinstalling.

                          my backup and restore scripts can capture your config and modules and let you out then back onto a new MagicMirror

                          but, by saving the folder anything not handled can be recovered

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            JMac
                            last edited by

                            made the name change and started the install.
                            How long should the install take? After installing the helper tools it’s got about half way across the screen on updating packages and hasn’t moved for about 10 minutes, prior to that it was pretty quick. I tried to use the arrow keys on my keyboard to move up the terminal window a little and have ^[[A[ and ^[[C[ in the list, is this an issue?

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

                              @JMac depends on how much updating is required… there is a little => arrow moving at the bottom

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                JMac
                                last edited by

                                yea that’s the little widget that wasn’t moving all that much for a good while, low and behold not 2 minutes after posting it starting carrying on. I tried to come and delete the pending post but you got in there pretty quick with the reply.

                                once this has run do I need to run your update code or will this be the most current version of MM?

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

                                  @JMac this is the most current version… we update versions every 3 months…

                                  if you try update and its the same as current, it just exists, after writing a log message to that effect

                                  upgrade is a two step process… I don’t want to mess anything up…

                                  so, running script with no parms, tests, and sees if there are any issues you need to know about… code that you changed that might be overwritten, …

                                  and if you are happy (or resolved all the issues) , then adding the parm

                                  apply
                                  

                                  and running again will DO the upgrade

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    JMac
                                    last edited by

                                    So I run the restore and some things have loaded up fine, so the default calendar and new headlines. everything else hasn’t.
                                    I had an extended calendar module, and a PIR sensor to shut the screen off after 5 minutes.

                                    The were some npm err and npm warn issues.

                                    The PIR sensor was the most useful feature I had but I genuinely don’t think I could replicate how I got it working in the first place. It was a case of loads of misses then an eventual hit (plenty of luck).

                                    DO I need to restart the pi for some of these changes to come into effect, or do I need to start messing with modules again, or do I need to do a further update to some modules? Is this the parm you mentioned?

                                    S 2 Replies Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @JMac
                                      last edited by

                                      @JMac no restart needed…

                                      pir sensor has a rebuild problem , I’ve fixed it in a fork,

                                      do this

                                      cd ~/MagicMirror
                                      npm install electron-rebuild
                                      cd modules/MMM-PIRSensor (or whatever name it is exactly) 
                                      ../../node_modules/.bin/electron-rebuild
                                      

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

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

                                        @JMac said in pm2 no longer launching MM:

                                        I had an extended calendar module

                                        what is the name of that module?

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JMac
                                          last edited by

                                          I had 2 versions of the PIR sensor module as one didn’t work, I don’t know if I ended up using the lite version or the other one.

                                          some of the modules are saying they have old lockfiles (this is for the ISS module) or in the case of dad jokes it has an ERR! code eresolve.

                                          Any ideas why the calendar extension hasn’t popped back up? It was calendar ext2 I was using I think.

                                          S 2 Replies Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @JMac
                                            last edited by

                                            @JMac said in pm2 no longer launching MM:

                                            It was calendar ext2 I was using I think.

                                            no idea… but one might look at the logs

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 2 / 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