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.

    MagicMirror Autostart Error

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 3.9k 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.
    • Q Offline
      qqqqqqqq
      last edited by

      Also, I tried starting it using npm start; the mirror worked fine, but this is the error.

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.1.0 start /home/pi/MagicMirror
      > electron js/electron.js
      
      Xlib:  extension "RANDR" missing on display ":1.0".
      Starting MagicMirror: v2.1.0
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      No helper found for module: clock.
      Initializing new module helper ...
      No helper found for module: compliments.
      No helper found for module: currentweather.
      Initializing new module helper ...
      Initializing new module helper ...
      No helper found for module: random_quotes.
      Initializing new module helper ...
      Initializing new module helper ...
      All module helpers loaded.
      Starting server op port 8080 ... 
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Connecting socket for: MMM-Remote-Control
      Starting node helper for: MMM-Remote-Control
      Connecting socket for: MMM-SystemStats
      Connecting socket for: stocks
      stocks helper started ...
      Sockets connected & modules started ...
      Whoops! There was an uncaught exception...
      { Error: listen EADDRINUSE :::8080
          at Object.exports._errnoException (util.js:1026:11)
          at exports._exceptionWithHostPort (util.js:1049:20)
          at Server._listen2 (net.js:1253:14)
          at listen (net.js:1289:10)
          at net.js:1399:9
          at _combinedTickCallback (internal/process/next_tick.js:77:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)
          at Module.runMain (module.js:592:11)
          at run (bootstrap_node.js:402:7)
          at startup (bootstrap_node.js:157:9)
        code: 'EADDRINUSE',
        errno: 'EADDRINUSE',
        syscall: 'listen',
        address: '::',
        port: 8080 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Xlib:  extension "XInputExtension" missing on display ":1.0".
      Xlib:  extension "RANDR" missing on display ":1.0".
      Launching application.
      Xlib:  extension "XInputExtension" missing on display ":1.0".
      Xlib:  extension "XInputExtension" missing on display ":1.0".
      ERROR! Could not find main module js file.
      ERROR! Could not find main module js file.
      
      
      

      Inspite of this, the mirror showed me the latest news, but not the calendar. :/

      1 Reply Last reply Reply Quote 0
      • Q Offline
        qqqqqqqq
        last edited by

        Any help on this?

        1 Reply Last reply Reply Quote 0
        • yawnsY Offline
          yawns Moderator
          last edited by

          EADDRINUSE means there is another process running on port 8080

          Please run netstat -lntu on your raspberry in terminal and check what processes are running on port 8080

          1 Reply Last reply Reply Quote 0
          • Q Offline
            qqqqqqqq
            last edited by

            @yawns said in MagicMirror Autostart Error:

            EADDRINUSE means there is another process running on port 8080

            Please run netstat -lntu on your raspberry in terminal and check what processes are running on port 8080

            maybe the MMM-Remote Control ?
            I’ll try the command when I get home.

            Btw, what does this mean? Is there something wrong?

            ERROR! Could not find main module js file.
            
            1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator
              last edited by

              I’m just guessing, but I imagine that since the bootup ran into an error (address/port in use) it could not load its files and as such could not continue proper boot.

              1 Reply Last reply Reply Quote 0
              • 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