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.

    MMM-Remote-Control show error on start

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 4 Posters 3.3k Views 4 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.
    • cruunnerrC Offline
      cruunnerr
      last edited by cruunnerr

      Hey guys,

      i freshly installed MM manually on a RPi 3 with Raspbian Jessie.

      MM starts and i am able to use the Remote Control, but i also get this error from the Remote-Control module. The error is shown 4 times directly behind each other.

      0|mm       | Whoops! There was an uncaught exception...
      0|mm       | TypeError: Cannot read property 'replace' of undefined
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:240:24
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:768:18
      0|mm       |     at Git. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:808:18)
      0|mm       |     at done (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1354:21)
      0|mm       |     at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1379:16)
      0|mm       |     at emitTwo (events.js:106:13)
      0|mm       |     at ChildProcess.emit (events.js:191:7)
      0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
      0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      

      How i already said… i can access the Mirror by http://my.RPi.IP.address:8080/remote.html

      So everything is working fine, but i don’t know why this occurs

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        ninjabreadman @cruunnerr
        last edited by

        @cruunnerr Just from the stack trace and mention of git, I have a suspicion that this where MMM-Remote-Control polls Github for the git status of each installed module (are you running four third-party mods?). If MM is still working, it seems that it fails gracefully and is not causing problems. It appears that its node_helper.js on line 240 has a replace() call that is not receiving a proper string (or regex?).

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 0
        • cruunnerrC Offline
          cruunnerr
          last edited by

          Hmm,

          i am running several 3rd Party modules. All modules in config.js:

          GoogleMapsTraffic
          alert
          Watchdog
          Remote Control
          Remote Control Repository
          Buttons
          Podcast
          Clock
          EasyPix
          NOAA
          MovieListings
          SystemStats
          Scrobbler
          CalendarEXT
          MyCommute
          OilTank (just installed this morning, but the error was before)

          Maybe @Jopyth has an idea.

          The odd thing is, that i already installed a Mirror with the exactly same modules and got no error. But this was with Raspbian Stretch lite, now i am using Jessie Desktop. But i cannot imagine that this causes the error

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            AliAS @cruunnerr
            last edited by

            @cruunnerr I have just encountered the same error, MM loads on my display BUT i cannot connect to remote-control from a browser. Running stock modules - weather + wunderground, remote-control, remote-control-repository and iFrameReload. Remote access worked fine yesterday before installing iFrame last night. Gonna do some troubleshooting.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jopyth Moderator
              last edited by

              If it is in this line, then something is wrong when I get the fetch url. Maybe a module without any remote, but it somehow it not caught in the if statemate to catch errors? Maybe the result[0].refs does not necessarily have a fetch url?

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                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