• 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 dosn`t start mm.sh after reboot

Scheduled Pinned Locked Moved Unsolved Troubleshooting
29 Posts 3 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.
  • S Offline
    sdetweil @trividar
    last edited by sdetweil Nov 13, 2019, 12:58 PM Nov 13, 2019, 12:56 PM

    @trividar read the instructions at the link I gave,
    in a terminal window , use finder to find ‘terminal’

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    T 1 Reply Last reply Nov 13, 2019, 1:01 PM Reply Quote 0
    • T Offline
      trividar @sdetweil
      last edited by Nov 13, 2019, 1:01 PM

      @sdetweil OK I found the link…

      bash -c "$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)"
      

      just a question, I have set up the magicmirror with all my settings etc. can I just execute this without loosing my stuff??

      S 1 Reply Last reply Nov 13, 2019, 1:03 PM Reply Quote 0
      • S Offline
        sdetweil @trividar
        last edited by Nov 13, 2019, 1:03 PM

        @trividar no… if u have it running, why do you need to install again?

        if you don’t have it running, then u need to install…

        you can copy the config.js to the new system, but you will have to install the modules and make sure to handle the dependencies they require

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Nov 13, 2019, 1:03 PM Reply Quote 0
        • T Offline
          trividar @sdetweil
          last edited by Nov 13, 2019, 1:03 PM

          @sdetweil because I can’t get pm2 to work on my mac mini catalina

          S 1 Reply Last reply Nov 13, 2019, 1:05 PM Reply Quote 0
          • S Offline
            sdetweil @trividar
            last edited by sdetweil Nov 13, 2019, 1:05 PM Nov 13, 2019, 1:05 PM

            @trividar oh, pm2… then use the new script for that
            see here
            https://forum.magicmirror.builders/topic/10907/new-script-to-install-fix-pm2-config-for-start-on-boot

            sometimes it doesn’t restart on boot like I think it should (on catalina, worked great on sierra an high sierra). haven’t found the problem yet

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Nov 13, 2019, 1:14 PM Reply Quote 0
            • T Offline
              trividar @sdetweil
              last edited by Nov 13, 2019, 1:14 PM

              @sdetweil oooh perfect… I will try it… do i see this right, I should execute it outside from MM?

              cd
              bash -c  "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
              
              S 2 Replies Last reply Nov 13, 2019, 1:14 PM Reply Quote 0
              • S Offline
                sdetweil @trividar
                last edited by Nov 13, 2019, 1:14 PM

                @trividar execute anywhere, it figures it out

                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 @trividar
                  last edited by sdetweil Nov 13, 2019, 2:19 PM Nov 13, 2019, 2:18 PM

                  @trividar thanks for asking about catalina… I have found the ‘problem’ with pm2 restart…

                  do

                  sudo nano /Users/$USER/Library/LaunchAgents/pm2.$USER.plist
                  

                  right at the top there is a string ‘UserName’ shown below
                  the space after the < is because this forum sees the < as a special formatting tag…

                        < key>UserName< /key>
                        < string>?????< /string>
                  

                  anyhow, delete those two lines
                  save the file (ctrl-o,enter), and exit, (ctrl-x)

                  then restart (via shell),

                  sudo shutdown -r now
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Nov 13, 2019, 2:57 PM Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by sdetweil Nov 13, 2019, 3:04 PM Nov 13, 2019, 2:57 PM

                    @trividar I’ve added all that to the fixup script… (and the updated install script)

                    so, if u haven’t done this manually, run then script, then restart your mac

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 3 / 3
                    3 / 3
                    • First post
                      21/29
                      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