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

Magic Mirror updated now doesnt work

Scheduled Pinned Locked Moved Solved Troubleshooting
36 Posts 2 Posters 10.7k Views 2 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.
  • S Online
    sdetweil @bachoo786
    last edited by Jan 8, 2020, 1:44 PM

    @bachoo786 did u also do the required npm install after the git pull??

    apologize, where did u see the instructions?

    many users are having this problem, want to see if I can fix that

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    B 1 Reply Last reply Jan 8, 2020, 2:31 PM Reply Quote 0
    • B Offline
      bachoo786 @sdetweil
      last edited by Jan 8, 2020, 2:31 PM

      @sdetweil I just searched on MM forum I did git pull and after that done the npm install but have problems. I cannot also access the mirror on another machine. I have forwarded the mirror ports too.

      S 1 Reply Last reply Jan 8, 2020, 2:39 PM Reply Quote 0
      • S Online
        sdetweil @bachoo786
        last edited by sdetweil Jan 8, 2020, 2:40 PM Jan 8, 2020, 2:39 PM

        @bachoo786 ok, did the npm install good…

        please edit the run-start.sh and change line 1 to

        #!/bin/bash -x
        

        save
        then npm start again

        also, what modules do you have installed?
        if they have a package.json, did u do an npm install in those module folders?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Jan 8, 2020, 2:53 PM Reply Quote 0
        • B Offline
          bachoo786 @sdetweil
          last edited by Jan 8, 2020, 2:53 PM

          @sdetweil my run-start.sh already contains the # before !bin/bash-x see below:

          #!/bin/bash
            # use bash instead of sh
          ./untrack-css.sh
          
          if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
                  export DISPLAY=:0 # Set by default display
          fi
          # get the processor architecture
          arch=$(uname -m)
          false='false'
          

          all my modules have package.json and I did do a npm install. The last module I installed was mmm-remote control via the script that was on the module github page.

          S 2 Replies Last reply Jan 8, 2020, 2:59 PM Reply Quote 0
          • S Online
            sdetweil @bachoo786
            last edited by Jan 8, 2020, 2:59 PM

            @bachoo786 you missed the -x at the end… turns on bash debug

            #!/bin/bash -x
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Jan 8, 2020, 3:39 PM Reply Quote 0
            • S Online
              sdetweil @bachoo786
              last edited by Jan 8, 2020, 3:00 PM

              @bachoo786 said in Magic Mirror updated now doesnt work:

              all my modules have package.json and I did do a npm install.

              SINCE you did the magicmirror upgrade?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Jan 8, 2020, 3:41 PM Reply Quote 0
              • B Offline
                bachoo786 @sdetweil
                last edited by Jan 8, 2020, 3:39 PM

                @sdetweil so this is the result:

                pi@raspberrypi:~/MagicMirror $ npm start
                
                > magicmirror@2.10.0 start /home/pi/MagicMirror
                > ./run-start.sh
                
                + ./untrack-css.sh
                + '[' -z '' ']'
                + export DISPLAY=:0
                + DISPLAY=:0
                ++ uname -m
                + arch=armv7l
                + false=false
                ++ grep -v '^\s//' config/config.js
                ++ grep -i serveronly:
                ++ tr -d ',"'\'''
                ++ awk '{print tolower($2)}'
                + serveronly=
                + serveronly=false
                ++ pgrep Xorg
                + xorg=519
                ++ uname
                + mac=Linux
                + '[' false. '!=' false. -o armv7l == armv6l ']'
                + '[' 519. == . -a Linux '!=' Darwin ']'
                + electron js/electron.js
                [15:39:07.703] [LOG]    Starting MagicMirror: v2.10.0
                [15:39:07.725] [LOG]    Loading config ...
                [15:39:07.735] [LOG]    Loading module helpers ...
                [15:39:07.814] [LOG]    Initializing new module helper ...
                [15:39:07.817] [LOG]    Module helper loaded: updatenotification
                [15:39:07.819] [LOG]    No helper found for module: clock.
                [15:39:08.557] [LOG]    Initializing new module helper ...
                [15:39:08.558] [LOG]    Module helper loaded: MMM-SystemStats
                [15:39:08.559] [LOG]    No helper found for module: currentweather.
                [15:39:08.560] [LOG]    No helper found for module: weatherforecast.
                [15:39:08.561] [LOG]    No helper found for module: random_quotes.
                [15:39:08.564] [LOG]    Initializing new module helper ...
                [15:39:08.564] [LOG]    Module helper loaded: MMM-homeassistant-sensors
                [15:39:09.297] [LOG]    Initializing new module helper ...
                [15:39:09.298] [LOG]    Module helper loaded: MMM-UKNationalRail
                [15:39:09.299] [LOG]    No helper found for module: MMM-TFL.
                [15:39:09.368] [LOG]    Initializing new module helper ...
                [15:39:09.369] [LOG]    Module helper loaded: newsfeed
                [15:39:09.370] [LOG]    All module helpers loaded.
                [15:39:09.372] [LOG]    Starting server on port 8181 ...
                [15:39:09.389] [INFO]   You're using a full whitelist configuration to allow for all IPs
                [15:39:09.408] [LOG]    Server started ...
                [15:39:09.410] [LOG]    Connecting socket for: updatenotification
                [15:39:09.413] [LOG]    Connecting socket for: MMM-SystemStats
                [15:39:09.415] [LOG]    Connecting socket for: MMM-homeassistant-sensors
                [15:39:09.418] [LOG]    Connecting socket for: MMM-UKNationalRail
                [15:39:09.420] [LOG]    MMM-UKNationalRail helper started ...
                [15:39:09.421] [LOG]    Connecting socket for: newsfeed
                [15:39:09.422] [LOG]    Starting module: newsfeed
                [15:39:09.423] [LOG]    Sockets connected & modules started ...
                [15:39:09.587] [LOG]    Whoops! There was an uncaught exception...
                [15:39:09.588] [ERROR]  { Error: listen EADDRINUSE 127.0.0.1:8181
                    at Server.setupListenHandle [as _listen2] (net.js:1330:14)
                    at listenInCluster (net.js:1378:12)
                    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1492:7)
                    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:55:10)
                  errno: 'EADDRINUSE',
                  code: 'EADDRINUSE',
                  syscall: 'listen',
                  address: '127.0.0.1',
                  port: 8181 }
                [15:39:09.605] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                [15:39:09.605] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                [15:39:09.652] [LOG]    Launching application.
                
                S 1 Reply Last reply Jan 8, 2020, 3:40 PM Reply Quote 0
                • S Online
                  sdetweil @bachoo786
                  last edited by Jan 8, 2020, 3:40 PM

                  @bachoo786 said in Magic Mirror updated now doesnt work:

                  EADDRINUSE 127.0.0.1:8181

                  so, it looks like u have another version running,

                  pm2 status
                  pm2 stop 0

                  then npm start

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bachoo786 @sdetweil
                    last edited by Jan 8, 2020, 3:41 PM

                    @sdetweil do I have to do that? I never did update the modules after I upgraded the mirror.

                    S 1 Reply Last reply Jan 8, 2020, 3:43 PM Reply Quote 0
                    • S Online
                      sdetweil @bachoo786
                      last edited by Jan 8, 2020, 3:43 PM

                      @bachoo786 said in Magic Mirror updated now doesnt work:

                      do I have to do that? I never did update the modules after I upgraded the mirror.

                      yes… if the base dependencies change, then u should update the dependencies of the modules

                      my automated upgrade script does all this.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 1 Reply Last reply Jan 8, 2020, 3:47 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        8/36
                        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