Read the statement by Michael Teeuw here.
MagicMirror Autostart Error
-
I’m trying to make MagicMirror Autostart at boot, by following the guide on github using pm2.
I worked once, but now I get this error.pi@raspberrypi:~ $ pm2 start mm [PM2] Applying action restartProcessId on app [mm](ids: 0) [PM2] [mm](0) ✓ [PM2] Process successfully started ┌──────┬──────┬────────┬───┬─────┬──────────┐ │ Name │ mode │ status │ ↺ │ cpu │ memory │ ├──────┼──────┼────────┼───┼─────┼──────────┤ │ mm │ fork │ online │ 1 │ 11% │ 2.3 MB │ └──────┴──────┴────────┴───┴─────┴──────────┘ Use `pm2 show ` to get more details about an app pi@raspberrypi:~ $ pm2 logs mm [TAILING] Tailing last 10 lines for [mm] process (change the value with --lines option) /home/pi/.pm2/logs/mm-error-0.log last 10 lines: 0|mm | ERROR! Could not find main module js file. 0|mm | [1713:0223/004533:FATAL:bus.cc(1204)] D-Bus connection was disconnected. Aborting. 0|mm | #0 0x0000012a3bb0 0|mm | #1 0x0000012b4406 0|mm | #2 0x00000120fd0a 0|mm | 0|mm | ERROR! Could not find main module js file. 0|mm | ERROR! Could not find main module js file. 0|mm | ERROR! Could not find main module js file. 0|mm | ERROR! Could not find main module js file. /home/pi/.pm2/logs/mm-out-0.log last 10 lines: 0|mm | Connecting socket for: MMM-SystemStats 0|mm | Connecting socket for: stocks 0|mm | stocks helper started ... 0|mm | Sockets connected & modules started ... 0|mm | Launching application. 0|mm | Create new calendar fetcher for url: http://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxx/basic.ics - Interval: 300000 0|mm | Create new calendar fetcher for url: http://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxx/basic.ics - Interval: 300000 0|mm | Create new calendar fetcher for url: http://localhost:8080/modules/Cals/x.ics - Interval: 300000 0|mm | Create new calendar fetcher for url: http://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxx/public/basic.ics - Interval: 300000 0|mm | Create new news fetcher for url: https://news.google.com/news?cf=all&hl=en&pz=1&ned=in&output=rss - Interval: 300000 [STREAMING] Now streaming realtime logs for [mm] process -
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?
-
EADDRINUSEmeans there is another process running on port 8080Please run
netstat -lntuon your raspberry in terminal and check what processes are running on port 8080 -
@yawns said in MagicMirror Autostart Error:
EADDRINUSEmeans there is another process running on port 8080Please run
netstat -lntuon 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.
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