-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Setup MQTT integration #77
Comments
Same here, on a Raspberry Pi with the docker-compose setup. Everything appears to be in order, the broker is running and reachable from the bare machine, also logs a connection (presumably by the Did you manage to solve this in the meantime? |
I've had this issue both times setting up Chirpstack in Docker. I'm not 100% on what actually fixed it, but hopefully I can point you in the right direction. I think the issue was either caused by firewall, docker networking or hostname lookup. You should be able to test the connection using: docker run --network="container:mosquitto" -it --rm efrecon/mqtt-client sub -h mosquitto -p 1883 -t "$SYS" -v If you get "Connection refused" then check the IP of the mosquitto container and try replacing it in the test command. docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mosquitto
#192.168.176.2
docker run --network="container:mosquitto" -it --rm efrecon/mqtt-client sub -h 192.168.176.2 -p 1883 -t "$SYS" -v If you use port mapping for the mosquitto container like ports:
- 1883:2883 then you have to point to the internal port in the .toml files and in the above test command. |
Thank you for your helpful response. I'd already tried to rule out issues relating to the host by trying the machine's external IP (but can't say 100% that it wasn't an issue in this regard after all). Meanwhile, I've had the most peculiar thing happen in that, ever since intermittently downgrading Mosquitto to v1.6 in the compose (without resolving the issue), then reinstating v2, it just works (and does so reliably, also across restarts of the compose). |
Not sure if that is peculiar at all. Since Mosquitto v2, you must explicitly set https://github.com/chirpstack/chirpstack-docker/blob/master/configuration/mosquitto/mosquitto.conf Could it be that this configuration was not (correctly) loaded? |
I'm aware of that change (I use Mosquitto in quite a lot of contexts) and did check MQTT communications via (anonymous) Still, the ChirpStack error reoccurred until that switch down to Mosquitto v1.6 and back up. I have no idea what else that may have changed that may have had that resolving effect. The Mosquitto config file at least has not changed. |
git clone from master, and run with
docker-compose up
,chirpstack connect to MQTT broker failedThe text was updated successfully, but these errors were encountered: