Read the statement by Michael Teeuw here.
MagicMirror Autostart Error
-
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. :/
-
Any help on this?
-
EADDRINUSE
means there is another process running on port 8080Please run
netstat -lntu
on your raspberry in terminal and check what processes are running on port 8080 -
@yawns said in MagicMirror Autostart Error:
EADDRINUSE
means there is another process running on port 8080Please run
netstat -lntu
on your raspberry in terminal and check what processes are running on port 8080maybe 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.
-
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.