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

MM won’t start after updating with update script



  • Hello.
    I tried to update my MM using the update script:

    cd MagicMirror
    bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
    

    (https://github.com/sdetweil/MagicMirror_scripts)

    When I was issued the command:

    pm2 log
    

    I got this error

    home/pi/.pm2/logs/mm-error.log last 15 lines:
    0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    0|mm       | A JavaScript error occurred in the main process
    0|mm       | Uncaught Exception:
    0|mm       | TypeError: Bind must be called on a function
    0|mm       |     at bind ()
    0|mm       |     at /home/pi/MagicMirror/js/logger.js:32:38
    0|mm       |     at /home/pi/MagicMirror/js/logger.js:16:20
    0|mm       |     at Object. (/home/pi/MagicMirror/js/logger.js:21:3)
    0|mm       |     at Object. (/home/pi/MagicMirror/js/logger.js:46:3)
    0|mm       |     at Module._compile (internal/modules/cjs/loader.js:711:30)
    0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
    0|mm       |     at Module.load (internal/modules/cjs/loader.js:620:32)
    0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    
    

    any suggestions?



  • I was able to resolve the issue with the command:

    git pull && sudo npm install
    

    everything works now expect for weatherforecast module that displays only the next 2 instead of next 5 days of forecast.
    Not sure if this is a API limitation or somethings with new 2.12 MM version



  • @panos Same forecast issue.



  • Also, MM auto stops after some minutes with no reason.

    here is the logs:

    [2020-07-14 16:12:13.669] [LOG]    Sockets connected & modules started ...
    [2020-07-14 16:12:13.960] [LOG]    Launching application.
    [2020-07-14 16:12:14.620] [LOG]    Shutting down server...
    [2020-07-14 16:12:14.624] [LOG]    Stopping module helper: updatenotification
    [2020-07-14 16:12:14.625] [LOG]    Stopping module helper: calendar
    [2020-07-14 16:12:14.627] [LOG]    Stopping module helper: MMM-MoonPhase
    [2020-07-14 16:12:14.628] [LOG]    Stopping module helper: MMM-NowPlayingOnSpotify
    [2020-07-14 16:12:14.629] [LOG]    Stopping module helper: MMM-MyCommute
    [2020-07-14 16:12:14.631] [LOG]    Stopping module helper: MMM-MQTT
    [2020-07-14 16:12:14.632] [LOG]    Stopping module helper: MMM-GooglePhotos
    [2020-07-14 16:12:14.633] [LOG]    Stopping module helper: newsfeed
    
    


  • @panos show more log info

    pm2 logs --lines=100
    

Log in to reply