• 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 won’t start after updating with update script

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 562 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.
  • P Offline
    panos
    last edited by Jul 14, 2020, 11:33 AM

    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 (<anonymous>)
    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.<anonymous> (/home/pi/MagicMirror/js/logger.js:21:3)
    0|mm       |     at Object.<anonymous> (/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?

    1 Reply Last reply Reply Quote 0
    • P Offline
      panos
      last edited by Jul 14, 2020, 12:05 PM

      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

      U 1 Reply Last reply Jul 14, 2020, 12:32 PM Reply Quote 0
      • U Offline
        uok825 @panos
        last edited by Jul 14, 2020, 12:32 PM

        @panos Same forecast issue.

        1 Reply Last reply Reply Quote 0
        • P Offline
          panos
          last edited by Jul 14, 2020, 1:25 PM

          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
          
          
          S 1 Reply Last reply Jul 14, 2020, 1:52 PM Reply Quote 0
          • S Offline
            sdetweil @panos
            last edited by sdetweil Jul 14, 2020, 1:52 PM Jul 14, 2020, 1:52 PM

            @panos show more log info

            pm2 logs --lines=100
            

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