Read the statement by Michael Teeuw here.
Client wont keep Modules up-to-date
-
@karsten13
yes and using pm2 to start this command:DISPLAY=:0 node clientonly --address 192.168.0.13 --port 8080And yes I have errors, it seems as if there is a problem using the 127.0.0.1 address and port 8080:
0|mm | [13.07.2021 13:19.37.499] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080 0|mm | at Server.setupListenHandle [as _listen2] (net.js:1313:16) 0|mm | at listenInCluster (net.js:1361:12) 0|mm | at GetAddrInfoReqWrap.doListen [as callback] (net.js:1498:7) 0|mm | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:68:8) { 0|mm | code: 'EADDRINUSE', 0|mm | errno: 'EADDRINUSE', 0|mm | syscall: 'listen', 0|mm | address: '127.0.0.1', 0|mm | port: 8080 0|mm | } 0|mm | [13.07.2021 13:19.37.506] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [13.07.2021 13:19.37.510] [ERROR] If you think this really is an is sue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/iss uesand I wonder why there is an error catching the newsfeed, as the stated feed is the one from the client, not the server:
0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron exited wit h signal SIGINT 0|mm | [13.07.2021 19:59.53.918] [ERROR] Newsfeed Error. Could not fetch n ewsfeed: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml FetchError: request to https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml failed, rea son: getaddrinfo EAI_AGAIN rss.nytimes.com 0|mm | at ClientRequest.<anonymous> (/home/pi/MagicMirror/node_modules /node-fetch/lib/index.js:1461:11) 0|mm | at ClientRequest.emit (events.js:315:20) 0|mm | at TLSSocket.socketErrorListener (_http_client.js:426:9) 0|mm | at TLSSocket.emit (events.js:315:20) 0|mm | at emitErrorNT (internal/streams/destroy.js:92:8) 0|mm | at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) 0|mm | at processTicksAndRejections (internal/process/task_queues.js:8 4:21) { 0|mm | type: 'system', 0|mm | errno: 'EAI_AGAIN', 0|mm | code: 'EAI_AGAIN' 0|mm | } 0|mm | [13.07.2021 19:59.56.921] [ERROR] Calendar Error. Could not fetch c alendar: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics Fetch Error: request to http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.i cs failed, reason: getaddrinfo EAI_AGAIN www.calendarlabs.com 0|mm | at ClientRequest.<anonymous> (/home/pi/MagicMirror/node_modules /node-fetch/lib/index.js:1461:11) -
@codac said in Client wont keep Modules up-to-date:
EAI_AGAIN
is a name server problem
the api request could not resolve the name
see this a lot with local pihole servers doing DNS filtering
-
it seems as if there is a problem using the 127.0.0.1 address and port 8080:
yes, port 8080 on your client is already in use.
You can try another port in the clientconfig.jsbut I don’t know if this works.I wonder why there is an error catching the newsfeed, as the stated feed is the one from the client, not the server:
then remove this stuff from the client config …
I’m not familiar with the clientonly setup and I think this is not used very often and therefore maybe contains some bugs.
-
@karsten13 said in Client wont keep Modules up-to-date:
I’m not familiar with the clientonly setup
it just launches electron pointing at the server, same as u would do with chromium.
doesn’t use the config.js
-
I figured out that is was due to several reasons.
- The reported error messages from the client side were old ones from the time when I set up the client and before I switched to clientonly mode. So they are supposed to be ignored.
- The calendar module was able to receive the events from all calendars except for one calendar that runs on my NAS system where I forgot to add the port number to the calendar url.
- the module MMM-Tankerkoenig is not up to date as there is an error message regarding the identifier that was not found. As far as I can see the code has an error and therefore the module wont update correctly.
- the module MMM-Formula1 (wrongly called it MMM-SocerLiveScore) module has a ReloadInterval which was just wrongly set up and far to long.
@karsten13
In the Docker on the server side is there anything adequate to the command pm2 logs --lines 300 mm ? -
@codac said in Client wont keep Modules up-to-date:
In the Docker on the server side is there anything adequate to the command pm2 logs --lines 300 mm ?
wouldnt you just
docker exec container_id pm2 logs.....to execute the command inside the container?
to clear the logs
docker exec container_id pm2 flush
-
there is no pm2 in the container …
The command is
docker logs <containername or id>, so if you use my docker-compose setupdocker logs mm. -
@karsten13 so I have to restart the container after making config changes?
-
@sdetweil yes, you should do that.
-
I have still not fixed this.
Servers IP: 192.168.0.23 (local Port 8036, container-port: 8080)
On the client I get the following error:
Unable to connect to server: (Error: Unable to read config from server (http://192.168.0.23:8036/config/ (connect ECONNREFUSED 192.168.0.23:8036)The servers config is set to:
address: "0.0.0.0", port: 8080, basePath: "/", ipWhitelist: ['0.0.0.0/0', '127.0.0.1', '::ffff:127.0.0.1', '::1', '192.168.0.0/24', '172.17.0.0/24'],Any ideas why the client wont get the servers config?
-
@codac first, remove the ipWhitelist , set to []
then try
.and the IP address used is the docker host IP address, right.never use the containers direct address for any code not running ON the docker host machine
where is client running?
if mm rejected the connection due to whitelist you should have seen it in the mm messages
i see a message like this
Access denied to IP address: 192.168.2.106my config
address: "192.168.2.106", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8090, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1"], -
may you must open the additional port in the docker setup and add the line with 8036 (untested) in your
docker-compose.yml:ports: - "8080:8080" - "8036:8036" -
@karsten13 said in Client wont keep Modules up-to-date:
ports: - "8080:8080" - "8036:8036"why wouldn’t
ports: "8036:8080"be enough?
-
@sdetweil think you are right …
-
@karsten13 actually I think you were closer…
I know a module that uses the port number in a url it presents…
(MMM-Config in the QR code)8080 won’t work, but if the mapping was added
so
ports: "8036:8080" "8080:8080"would be needed
and if u need to do that, then 8080 on the docker host needs to be used, so then no need for 8036
ports: "8080:8080"but can’t run two container instances
-
@sdetweil also, my MM uses 8090 not to collide with another app.
-
Servers IP: 192.168.0.23 (local Port 8036, container-port: 8080)
if I read this correctly your setup is
ports: - "8036:8080"So mm should be reachable under
192.168.0.23:8036.If not the client ip is may not white listed, I would try
ipWhitelist: [],in the server config for testing.Another question: Is
192.168.0.23:8036not reachable in general (e.g. in a browser) or only not reachable running the clientonly command? -
The client is a raspberry pi.
192.168.0.23:8036 is reachable without problems.First try seems to work
I’ve changed to:ipWhitelist: [],and
ports: "8036:8080"I will check that and come back if there is still an issue.
Thank you guys!
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