Mosquitto 1.6.2 Testing - Unable to get QoS 1 messages after persistent session reconnects

26 views
Skip to first unread message

Ezequiel Colombo

unread,
May 3, 2019, 10:31:31 PM5/3/19
to MQTT
Trying to test [MQTT-3.1.2-5] I'm not being able to get QoS 1 messages stored/delivered at client's reconnect with cleanSession=False even though using the same clientID, QoS1.
I've already tried default mosquitto config with same results and switched from Python PAHO client to mosquitto_sub/mosquitto_pub with same unsuccessful result ... could someone share a working config for this or help me troubleshoot deeper ?

Mosquitto 1.6.2 @ RaspberryPI config:

pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
autosave_interval 1800
log_dest file /var/log/mosquitto/mosquitto.log
log_type all
acl_file /etc/mosquitto/conf.d/acl_file
password_file /etc/mosquitto/conf.d/password_file
allow_anonymous false
message_size_limit 64000
persistent_client_expiration 1d
max_queued_messages 256
max_queued_bytes 2048
max_connections 64
sys_interval 30
log_timestamp true
connection_messages true
listener 8883
cafile /etc/mosquitto/ca_certificates/ca.crt
keyfile /etc/mosquitto/certs/server.key
certfile /etc/mosquitto/certs/server.crt


 Testing commands:

mosquitto_sub -h localhost -u someuser -P 1234 -i perstest -q 1 -t test/after/one -d
mosquitto_pub -h localhost -u someuser -P 1234 -t test/after/one -q 1 -d -c --id pub1 -m 01

.. message "01" received ok

CTRL-C mosquitto_sub then:

mosquitto_pub -h localhost -u someuser -P 1234 -t test/after/one -q 1 -d -c --id pub1 -m 02
mosquitto_pub -h localhost -u someuser -P 1234 -t test/after/one -q 1 -d -c --id pub1 -m 03
mosquitto_pub -h localhost -u someuser -P 1234 -t test/after/one -q 1 -d -c --id pub1 -m 04

mosquitto_sub -h localhost -u someuser -P 1234 -i perstest -q 1 -t test/after/one -d

.. no "02", "03", "04" messages received

mosquitto_pub -h localhost -u someuser -P 1234 -t test/after/one -q 1 -d -c --id pub1 -m 05

.. message "05" received OK


Thanks in advance for your help,
--ezequiel
Reply all
Reply to author
Forward
0 new messages