Skip to content
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

MQTT: Failed te execute '/usr/bin/mosquitto_pub' mosquitto clients installed? #4

Closed
eumaios opened this issue Nov 10, 2020 · 2 comments

Comments

@eumaios
Copy link

eumaios commented Nov 10, 2020

Hi

Thanks for your image. Sorry for the beginner questions! I try to use MQTT and got "MQTT: Failed te execute '/usr/bin/mosquitto_pub' mosquitto clients installed?"

I can install it by going into the docker's shell (docker exec -it --user root sbfspot sh) - but will this not be removed when a new version of the image is going to be installed? What is the proper way to set as "mosquitto client" in the cfg-file or image?

In the cfg it says "Full path to mosquitto_pub executable" - is this obligatory a path in the present docker image, or should I use another/separate docker container? I have a "mosquitto" container running - can I use it as "mosquitto client" - and what path should I provide for the mosquitto_pub executable?

@nakla
Copy link
Owner

nakla commented Nov 11, 2020

Hi,
mosquitto_pub is installed in /usr/bin/mosquitto_pub in the docker container. So there shouldn't be an error message. Are you sure you didn't change the SBFspot.cfg entry MQTT_Publisher=/usr/bin/mosquitto_pub ?
The mosquitto-clients package is already installed in the container, you just need to configure the connection to your mqtt broker (and which data to send to the broker) in the SBFspot.cfg file.
If you experience problems with sending of mqtt messages, first check, if it is possible to send mqtt messages from inside the sbfspot container to your broker e.g. /usr/bin/mosquitto_pub -h IP of your mqtt broker -m "testmessage" -t testtopic

@eumaios
Copy link
Author

eumaios commented Nov 11, 2020 via email

@eumaios eumaios closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants