@sdetweil
Thanks for your comment.
First I changed the port as recommended in mm/config/config.js to 8081 and gave it a reboot.
After reboot and logon I checked the network connections by sudo netstat -lnptu:
pi@raspberrypi:~ $ sudo netstat -lnptu
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 836/electron.js
tcp6 0 0 :::21 :::* LISTEN 418/vsftpd
tcp6 0 0 ::1:3350 :::* LISTEN 446/xrdp-sesman
tcp6 0 0 :::3389 :::* LISTEN 461/xrdp
udp 0 0 0.0.0.0:5353 0.0.0.0:* 318/avahi-daemon: r
udp 0 0 0.0.0.0:68 0.0.0.0:* 348/dhcpcd
udp 0 0 0.0.0.0:47216 0.0.0.0:* 318/avahi-daemon: r
udp6 0 0 :::5353 :::* 318/avahi-daemon: r
udp6 0 0 :::34261 :::* 318/avahi-daemon: r
I am surprised to see Electron already listening on port 8081, though I have not started the MagicMirror.
In the next step I launch Magic Mirror by calling: npm start &
Unfortunately I see again a EADDRINUSE message (port 8081):
Server started ...
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...
Whoops! There was an uncaught exception...
{ Error: listen EADDRINUSE 127.0.0.1:8081
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: 8081 }
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
Launching application.
While the mirror is running I execute again sudo netstat -lnptu and get:
pi@raspberrypi:~/MagicMirror $ sudo netstat -lnptu
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 888/electron.js
tcp6 0 0 :::21 :::* LISTEN 435/vsftpd
tcp6 0 0 ::1:3350 :::* LISTEN 450/xrdp-sesman
tcp6 0 0 :::3389 :::* LISTEN 465/xrdp
udp 0 0 0.0.0.0:42644 0.0.0.0:* 318/avahi-daemon: r
udp 0 0 0.0.0.0:5353 0.0.0.0:* 318/avahi-daemon: r
udp 0 0 0.0.0.0:68 0.0.0.0:* 354/dhcpcd
udp6 0 0 :::42148 :::* 318/avahi-daemon: r
udp6 0 0 :::5353 :::* 318/avahi-daemon: r
This is strange. The launch of the mirror npm start & tells me a multiple use of the port 8080 or 8081 (whatever it set in config.js) but netstat -lnptu does not know anything about a duplicate use.
As advised I also added below line right after if (event.type === “VEVENT”) { in ftp://192.168.178.36/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
console.log("have event title="+event.summary);
Unfortunately the console outcome again is: “EADDRINUSE”
Initializing new module helper ...
Module helper loaded: calendar
Initializing new module helper ...
Module helper loaded: newsfeed
All module helpers loaded.
Starting server on port 8081 ...
Server started ...
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...
Whoops! There was an uncaught exception...
{ Error: listen EADDRINUSE 127.0.0.1:8081
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: 8081 }
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
Launching application.
I feel a little bit lost … … …