Unable to start docker ring-mqtt fails with "ring-mqtt Unable to connect to MQTT broker connect ECONNREFUSED 127.0.0.1:1883" #378
-
First time trying to setup ring-mqtt. This is the error message I am getting is below. I am not sure if it thinks the username/password is word, or something else is not configured correctly. ring-mqtt | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. my docker-compose is setup with
ring-mqtt config.json is setup as:
the mosquitto.conf file is setup like:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You'll need to put your actual MQTT settings in here as this is unlikely to be correct. Certainly, when running the Docker version, the "localhost" portion can pretty much never be correct since localhost refers to the internal network of the container and there's no MQTT broker running inside the ring-mqtt container. You'll need to put the IP/hostname of whatever host is running your MQTT broker. |
Beta Was this translation helpful? Give feedback.
-
that was it (ip address of the raspberry pi). Thanks again for the help. |
Beta Was this translation helpful? Give feedback.
You'll need to put your actual MQTT settings in here as this is unlikely to be correct. Certainly, when running the Docker version, the "localhost" portion can pretty much never be correct since localhost refers to the internal network of the container and there's no MQTT broker running inside the ring-mqtt container. You'll need to put the IP/hostname of whatever host is running your MQTT broker.