How-to: Rasbperry Pi – Install mosquitto with websockets enable

You do not have permission to view this page.

4 thoughts on “How-to: Rasbperry Pi – Install mosquitto with websockets enable

  1. Hi,
    First, thanks a lot for the tutorial, it saved me!
    I´m able to start the mosquitto manually, and it works fine, but when I configure to start up on boot, it dosen´t work.
    This is the message I get:

    root@raspberrypi:/var/log/mosquitto.log# service mosquitto status
    mosquitto.service – LSB: mosquitto MQTT v3.1 message broker
    Loaded: loaded (/etc/init.d/mosquitto)
    Active: active (exited) since Wed, 13 May 2015 15:48:37 -0300; 21min ago
    CGroup: name=systemd:/system/mosquitto.service

    May 13 15:48:37 raspberrypi mosquitto[2699]: [85B blob data]
    May 13 15:48:37 raspberrypi mosquitto[2699]: Try ‘start-stop-daemon –help’ for more information.
    May 13 15:48:37 raspberrypi mosquitto[2699]: failed!

    Could you give me some help, I tried everyting that I know to put it to work, but with no success.
    I apreciate any device you could give me.

    Thanks a lot!

  2. Hello,
    I followed all the steps and am having trouble, you will be able to help me?

    The error is:

    root @ webbaby: / etc / mosquitto # mosquitto -c /etc/mosquitto/mosquitto.conf
    1445001385: mosquitto version 1.4.4 (build date 10/16/2015 08: 28: 17-0300) starting
    1445001385: Config loaded from /etc/mosquitto/mosquitto.conf.
    1445001385: Opening ipv4 listen socket on port 9001.
    1445001385: Opening ipv6 listen socket on port 9001.
    1445001385: Opening websockets listen socket on port 1883.
    1445001389: New connection from 192.168.0.17 on port 9001.
    1445001389: Socket error on client , disconnecting.
    1445001390: New connection from 192.168.0.17 on port 9001.
    1445001390: Socket error on client , disconnecting.

    • Hmm, not sure, but it seems like error on the client side not authenticating.

      Try to turn off the acl and passwd setting in conf file, if you enabled them

  3. Hi, this isn’t needed anymore. Simply add the repo from mosquitto.org and install from that.

    That version includes websockets, all you need to do is to add a conf file.

    I’ve put some information on my blog to this effect.

Comments are closed.