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 MM2 Not starting on start up

    Scheduled Pinned Locked Moved Troubleshooting
    37 Posts 12 Posters 32.4k Views 12 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 @MarvellousMili
      last edited by

      @MarvellousMili sorry. not sure what u said

      is working ok
      or
      is NOT working ok

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        Even this tread is old, but i have an issue with the starting of mm:

        Everything worked well, then i installed MMM-CECControl.
        I saved my config.js file bevor i entered the module line in there. But not as usual mm didn´t restart. Not even after a reboot of my raspberry.

        Also when i start mm with
        pm2 start mm
        and
        pm2 start MagicMirror
        nothing happened.

        i don´t know what i should do to start my mm as bevore…

        S 2 Replies Last reply Reply Quote 1
        • S Offline
          sdetweil @Seregeth
          last edited by sdetweil

          @Seregeth

          ok let’s start at the beginning

          pm2 status

          will show you the names and numbers of the managed apps. you can use either the name or number

          now, let’s see if it’s a MagicMirror problem

          do

          pm2 stop all
          cd ~/MagicMirror
          npm start
          

          if mm comes up but the screen is not correct, ctrl-m will minimize the mm screen

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @Seregeth sorry. I hit reject on your message accidentally, please resend it

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil
              $ pm2 status
              ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
              │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
              ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
              │ 1 │ MagicMirror │ fork │ 78 │ online │ 0% │ 2.6mb │
              │ 0 │ mm │ fork │ 2 │ stopped │ 0% │ 0b │
              └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
              ~ $ ^C
              ~ $ pm2 stop all
              [PM2] Applying action stopProcessId on app [all](ids: [ 0, 1 ])
              [PM2] mm ✓
              [PM2] MagicMirror ✓
              ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
              │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
              ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
              │ 1 │ MagicMirror │ fork │ 117 │ stopped │ 0% │ 0b │
              │ 0 │ mm │ fork │ 2 │ stopped │ 0% │ 0b │
              └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
              $ cd MagicMirror/
              ~/MagicMirror $ npm start

              magicmirror@2.23.0 start
              DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

              sh: 1: ./node_modules/.bin/electron: not found

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

                @Seregeth ok, try

                cd ~/MagicMirror
                npm install electron@22.3.4
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil
                  that´s it, MM startet again after the installation

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

                    @Seregeth cool… thx for the feedback

                    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
                    • 4
                    • 3 / 4
                    • 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