Error: connect ECONNREFUSED 127.0.0.1:1883

I get this every minute in the log. I run in Docker, and of course there are no MQTT servers in my Docker image. But I haven't set SignalK to connect to one either. I am running a server on port 1884 on the "Signal K MQTT gateway plug-in", which the rest of my system connects to and gets what it needs of data. So why is the SignalK server trying to connect to a broker on the localhost?
4 Replies
Scott Bender
Scott Bender2mo ago
Is there more detail in that error? Like a stack trace? The server, by itself, does not do anything with mqtt.
Mastiff
Mastiff2mo ago
Thanks for answering! This is the full error: Aug 06 20:29:10 Error: connect ECONNREFUSED 127.0.0.1:1883 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 1883 } If it matters, it comes right after this: Aug 06 20:29:08 2024-08-06T20:29:08.321Z signalk-mqtt-gw Published $SYS/5bc0cf10-2453-4436-973f-e6eb4a69e464/heartbeat 5bc0cf10-2453-4436-973f-e6eb4a69e464 Wait a minute... Thatmust be the Signal K MQTT Gateway, but I don't understand why it's trying to connect to anything, I set it to run a server. Maybe it can't do that without trying to connect to anoter broker?
Scott Bender
Scott Bender2mo ago
I’m not very familiar with that plugin, hopefully someone that is will chime in…
Mastiff
Mastiff2mo ago
I actually think I caught it! I had by accident crossed for "Send data for paths listed below to remote server", I think that's what did it. Sorry, my bad. 😩
Want results from more Discord servers?
Add your server