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

MM does not start anymore

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 753 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 Apr 28, 2020, 1:29 PM

    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 Apr 28, 2020, 1:39 PM Reply Quote 0
    • S Offline
      sdetweil @Vauxdvihl
      last edited by sdetweil Apr 28, 2020, 3:24 PM Apr 28, 2020, 1:39 PM

      @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
      • B Offline
        bhepler Module Developer
        last edited by Apr 28, 2020, 7:06 PM

        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 Apr 28, 2020, 7:41 PM Reply Quote 0
        • V Offline
          Vauxdvihl @bhepler
          last edited by Apr 28, 2020, 7:41 PM

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

          S 1 Reply Last reply Apr 28, 2020, 7:45 PM Reply Quote 0
          • S Offline
            sdetweil @Vauxdvihl
            last edited by Apr 28, 2020, 7:45 PM

            @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 Apr 29, 2020, 10:57 AM Reply Quote 0
            • V Offline
              Vauxdvihl @sdetweil
              last edited by Apr 29, 2020, 10:57 AM

              @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 Apr 29, 2020, 11:04 AM Reply Quote 0
              • S Offline
                sdetweil @Vauxdvihl
                last edited by Apr 29, 2020, 11:04 AM

                @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 Apr 29, 2020, 12:02 PM Reply Quote 0
                • V Offline
                  Vauxdvihl @sdetweil
                  last edited by Apr 29, 2020, 12:02 PM

                  @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 Apr 29, 2020, 12:03 PM Reply Quote 0
                  • S Offline
                    sdetweil @Vauxdvihl
                    last edited by Apr 29, 2020, 12:03 PM

                    @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
                    • 1 / 1
                    1 / 1
                    • First post
                      8/9
                      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