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

So ... to update MagicMirror I would ... ??

Scheduled Pinned Locked Moved Troubleshooting
54 Posts 12 Posters 35.1k Views 10 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.
  • C Offline
    chef
    last edited by chef Apr 1, 2018, 1:29 PM Apr 1, 2018, 1:27 PM

    cd into the magicmirror folder and run:

    sudo apt-get update

    or

    sudo apt-get upgrade

    do I then have to run npm install???

    Thanks for the help

    chef

    N 1 Reply Last reply Apr 1, 2018, 1:39 PM Reply Quote 0
    • N Offline
      NoNameRo @chef
      last edited by Apr 1, 2018, 1:39 PM

      @chef

      If you want to update your MagicMirror² to the latest version, use your terminal to go to your Magic Mirror folder and type the following command:
      
      git pull && npm install
      
      If you changed nothing more than the config or the modules, this should work without any problems. Type git status to see your changes, if there are any, you can reset them with git reset --hard. After that, git pull should be possible.
      
      1 Reply Last reply Reply Quote 1
      • R Offline
        Richard238
        last edited by Apr 1, 2018, 2:11 PM

        I’ve just applied the latest update and get a blank, black screen.

        If I kill electron, I get back to the Pi desktop, until electron auto restarts.

        Any advice on how to get MM back again, please?

        Thanks!

        1 Reply Last reply Reply Quote 0
        • C Offline
          Charley Module Developer
          last edited by Apr 1, 2018, 2:21 PM

          Also my MagicMirror is a blank screen. Will not start again

          MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

          1 Reply Last reply Reply Quote 0
          • C Offline
            chef
            last edited by Apr 1, 2018, 2:21 PM

            many thanks ;)

            1 Reply Last reply Reply Quote 1
            • M Offline
              Montanaro
              last edited by Apr 1, 2018, 2:37 PM

              Same issue, i´ve updated and got a black screen.

              1 Reply Last reply Reply Quote 0
              • R Offline
                Richard238
                last edited by Apr 1, 2018, 2:46 PM

                PIR disabled in config (as a precaution, elimination)
                Pi shutdown, powered off, and restarted.
                MM Still blank on Pi.
                MM OK on a LAN PC, via :8080

                Logs:

                pi@raspberrypi:~ $ pm2 log mm
                [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
                /home/pi/.pm2/logs/mm-error-0.log last 15 lines:
                0|mm       |     at exports._exceptionWithHostPort (util.js:1047:20)
                0|mm       |     at Server.setupListenHandle [as _listen2] (net.js:1319:14)
                0|mm       |     at listenInCluster (net.js:1367:12)
                0|mm       |     at doListen (net.js:1493:7)
                0|mm       |     at _combinedTickCallback (internal/process/next_tick.js:141:11)
                0|mm       |     at process._tickCallback (internal/process/next_tick.js:180:9)
                0|mm       |     at Function.Module.runMain (module.js:607:11)
                0|mm       |     at startup (bootstrap_node.js:167:16)
                0|mm       |     at bootstrap_node.js:589:3
                0|mm       |   code: 'EADDRINUSE',
                0|mm       |   errno: 'EADDRINUSE',
                0|mm       |   syscall: 'listen',
                0|mm       |   address: '0.0.0.0',
                0|mm       |   port: 8080 }
                0|mm       | [1745:0401/150319.460996:FATAL:bus.cc(1189)] D-Bus connection was disconnected. Aborting.
                
                /home/pi/.pm2/logs/mm-out-0.log last 15 lines:
                0|mm       | You're using a full whitelist configuration to allow for all IPs
                0|mm       | Server started ...
                0|mm       | Connecting socket for: MMM-MyTemps
                0|mm       | Starting module helper: MMM-MyTemps
                0|mm       | Connecting socket for: updatenotification
                0|mm       | Connecting socket for: calendar
                0|mm       | Starting node helper for: calendar
                0|mm       | Connecting socket for: newsfeed
                0|mm       | Starting module: newsfeed
                0|mm       | Sockets connected & modules started ...
                0|mm       | Launching application.
                0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[###################] Interval: 300000
                0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[##############}/basic.ics - Interval: 300000
                0|mm       | Create new news fetcher for url: http://feeds.reuters.com/reuters/UKTopNews - Interval: 120000
                0|mm       | Create new news fetcher for url: http://feeds.skynews.com/feeds/rss/world.xml - Interval: 120000
                
                1 Reply Last reply Reply Quote 0
                • H Offline
                  Harry
                  last edited by Apr 1, 2018, 2:49 PM

                  Yep. I see I’m not the only one with a blank screen…
                  I did the git pull && npm install. It went through with only two warnings. Then after pm2 restart mm.sh I got the blank screen. I see that there is an npm-debug.log that contains some errors:

                  14 verbose stack Error: magicmirror@2.3.0 start: sh run-start.sh
                  14 verbose stack Exit status 1
                  14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
                  14 verbose stack at emitTwo (events.js:106:13)
                  14 verbose stack at EventEmitter.emit (events.js:191:7)
                  14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
                  14 verbose stack at emitTwo (events.js:106:13)
                  14 verbose stack at ChildProcess.emit (events.js:191:7)
                  14 verbose stack at maybeClose (internal/child_process.js:920:16)
                  14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
                  15 verbose pkgid magicmirror@2.3.0
                  16 verbose cwd /home/pi/MagicMirror
                  17 error Linux 4.4.43-v7+
                  18 error argv “/usr/bin/node” “/usr/bin/npm” “start”
                  19 error node v6.12.3
                  20 error npm v3.10.10
                  21 error code ELIFECYCLE
                  22 error magicmirror@2.3.0 start: sh run-start.sh
                  22 error Exit status 1
                  23 error Failed at the magicmirror@2.3.0 start script ‘sh run-start.sh’.

                  Any help would be appreciated.
                  Harry

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Charley Module Developer
                    last edited by Charley Apr 1, 2018, 2:56 PM Apr 1, 2018, 2:51 PM

                    I returned from a copied img from my sd card to an older version and only did

                    git pull
                    

                    didn’t do the

                    npm install
                    

                    at least now it works again

                    MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chef
                      last edited by Apr 1, 2018, 3:28 PM

                      strange I’m not seeing a black screen.

                      Perhaps an issue with the auto start script? But I’m unsure.

                      Electron was updated in this release as well.

                      S 1 Reply Last reply Jan 24, 2021, 4:27 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      1 / 6
                      • First post
                        5/54
                        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