kartben / eclipseiot-demobox

7 stars 2 forks source link

Mosquitto is not installed #9

Open mmilinkov opened 8 years ago

mmilinkov commented 8 years ago

Looking through the instructions, and in setup.sh, I don't see anywhere Mosquitto is installed. And it did not magically appear on my machine :)

Did you use the instructions at [1]?

[1] http://jpmens.net/2013/09/01/installing-mosquitto-on-a-raspberry-pi/

kartben commented 8 years ago

Yes, sorry this was not in a "TODO" state in the README. The thing is that the version in the http://repo.mosquitto.org/debian/mosquitto-jessie.list repo was bringing a libwebsockets version which seemed to have a bug in it. As of today I'm running a Mosquitto version I compiled myself. I need to have another look and document the instructions. In the meantime you may want to follow http://mosquitto.org/2013/01/mosquitto-debian-repository/ which I believe as better targeted instructions as to how to install on Jessie.

mmilinkov commented 8 years ago

So that worked, and I now have Mosquitto installed. However, the default is to create an init.d script to start mosquitto on boot, which results in a port conflict when you try to start mosquitto again from the screen command. I guess the best approach would be to delete that init.d script?

mmilinkov commented 8 years ago

Hmmmm. Seems like the Debian repos have the websocket problem.

mosquitto -c config-files/mosquitto/mosquitto.conf
1443470914: mosquitto version 1.4.4 (build date Thu, 17 Sep 2015 16:11:28 +0100) starting
1443470914: Config loaded from config-files/mosquitto/mosquitto.conf.
1443470914: Error: Unable to create websockets listener on port 9001.
kartben commented 8 years ago

Hmmmm. Seems like the Debian repos have the websocket problem.

:disappointed: I think I will end up putting my Mosquitto build in the GH repo itself.