Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Errors running tests on (cross-compiled) target

I’ve imported v1.4.8 into a Yocto project, and I’m trying to run the tests on my target.

I’ve made the necessary modifications to paths and installed the test scripts & related files onto the target (I *think*.…!)

Python version is 2.7.11

Mosquitto source is


The ‘lib’ tests are all running successfully, as are most of the ‘broker’ tests, but 13 of the latter are failing. The common reason in 12 of these seems to be a Connection Refused (111) e.g.


    Traceback (most recent call last):

      File "./", line 26, in <module>

        sock = mosq_test.do_client_connect(connect_packet, connack_packet, connack_error="helper connack")

      File "/usr/bin/mosquitto-test/broker/", line 69, in do_client_connect

        sock.connect((hostname, port))

      File "/usr/lib/python2.7/", line 230, in meth

        return getattr(self._sock,name)(*args)

    socket.error: [Errno 111] Connection refused


These 12 failing tests are:


The other fail is in   - this one I’ve been able to extract a bit more debug info from: the mosquito process ‘mosquitto -v -c 01-connect-uname-password-success-no-tls.conf’ is reporting

    1464790295: mosquitto version 1.4 (build date 2016-06-01 13:02:35+0100) starting

    1464790295: Config loaded from 01-connect-uname-password-success-no-tls.conf.

    1464790295: Error: Invalid password hash for user user.

    1464790295: Error opening password file "01-connect-uname-password-success-no-tls.pwfile".


(The .pwfile *is* present, containing “user:password”)


Can anyone help fixing this, and/or give me tips on debugging further?



Back to the top