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.

    MM does not start anymore

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 3 Posters 1.4k 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.
    • V Offline
      Vauxdvihl
      last edited by

      Hello all,
      unfortunately my mm does not start anymore

      pi@PiMirrorNeu:~ $ pm2 start mm.sh 
      [PM2] Applying action restartProcessId on app [mm](ids: 0,1)
      [PM2] [mm](0) ✓
      [PM2] [mm](1) ✓
      [PM2] Process successfully started
      ┌─────┬─────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id  │ na… │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├─────┼─────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0   │ mm  │ default     │ N/A     │ fork    │ 2109     │ 0s     │ 1    │ online    │ 0%       │ 2.5mb    │ pi       │ disabled │
      │ 1   │ mm  │ default     │ 2.11.0  │ fork    │ 2118     │ 0      │ 32   │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
      └─────┴─────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      
      
      pi@PiMirrorNeu:~ $ pm2 log
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 15 lines:
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] online
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] exited with code [0] via signal [SIGINT]
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] starting in -fork mode-
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] online
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] exited with code [0] via signal [SIGINT]
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] starting in -fork mode-
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] online
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] exited with code [0] via signal [SIGINT]
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] starting in -fork mode-
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] online
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] exited with code [0] via signal [SIGINT]
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] starting in -fork mode-
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] online
      PM2        | 2020-04-28T15:13:35: PM2 log: App [mm:1] exited with code [0] via signal [SIGINT]
      PM2        | 2020-04-28T15:13:35: PM2 log: Script /home/pi/MagicMirror/mm.sh had too many unstable restarts (16). Stopped. "errored"
      
      

      Trying to install update, reports me the following error:

      pi@PiMirrorNeu:~/MagicMirror $ git pull && npm install
      Bereits aktuell.
      npm ERR! code ENOTDIR
      npm ERR! syscall scandir
      npm ERR! path /home/pi/MagicMirror/node_modules/rxjs/internal/operators/filter.d.ts
      npm ERR! errno -20
      npm ERR! ENOTDIR: not a directory, scandir '/home/pi/MagicMirror/node_modules/rxjs/internal/operators/filter.d.ts'
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-04-28T13_28_36_996Z-debug.log
      
      

      Can please somebody help me
      Thanks

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

        @Vauxdvihl said in MM does not start anymore:

        git pull && npm install

        yeh, such a mess

        also, erase the node_modules folder and package-lock.json files

        cd ~/MagicMirror
        rm -rf node_modules
        
        AND for every module that has a package.json file, you must ALSO do npm install in THEIR folder.
        
        in the future, please use my upgrade script 
        
        see here https://github.com/sdetweil/MagicMirror_scripts
        read the readme for the command to issue

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer
          last edited by

          You also have two instances of Magic Mirror installed into PM2. Are you running both of these at the same time?

          V 1 Reply Last reply Reply Quote 0
          • V Offline
            Vauxdvihl @bhepler
            last edited by

            @bhepler
            no
            i am not aware of this
            I only run on mm
            Regards

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

              @Vauxdvihl they are both called mm, 0 and 1…

              the messages from the log say you are using 1
              [mm:1] online

              try pm2 stop 0
              pm2 delete 1

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              V 1 Reply Last reply Reply Quote 0
              • V Offline
                Vauxdvihl @sdetweil
                last edited by

                @sdetweil
                Does not work

                Doing the other thing…i get an error message
                Operation not permitted…also with “sudo” in front

                pi@PiMirrorNeu:~/MagicMirror $ rm -rf node_modules/
                rm: das Entfernen von 'node_modules/rxjs/internal/operators/filter.d.ts' ist nicht möglich: Die Operation ist nicht erlaubt
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Vauxdvihl
                  last edited by

                  @Vauxdvihl sadly this means you are experiencing a problem with your SD card… I have lost 10 over the last couple years.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  V 1 Reply Last reply Reply Quote 0
                  • V Offline
                    Vauxdvihl @sdetweil
                    last edited by

                    @sdetweil
                    I have erased the sd card and i have written a buster image on it
                    So far everthing works fine
                    Start know to install the mm again

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

                      @Vauxdvihl use my script

                      see here https://github.com/sdetweil/MagicMirror_scripts
                      for the command to execute

                      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 / 1
                      • 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