MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

MM does not start anymore



  • 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



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

  • Project Sponsor

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



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



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



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


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



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



  • @Vauxdvihl use my script

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


Log in to reply