Facing Issue while connecting to local mosquitto broker

From last 2-3 days, My mqtt client and broker unable to establish connection.

My client is able to connect with mosquitto test broker. But if I installed broker on my machine and then trying to connect. It is giving an error.

1635510491: mosquitto version 2.0.13 running
1635511083: New connection from 192.168.29.16:20108 on port 1883.
1635511086: New client connected from 192.168.29.16:20108 as 18001811 (p2, c1, k120, u’omkar1’).
1635511086: No will message specified.
1635511086: Sending CONNACK to 18001811 (0, 0)
1635511116: Received SUBSCRIBE from 18001811
1635511116: Client 18001811 disconnected due to malformed packet.
1635511118: New connection from 192.168.29.16:20108 on port 1883.
1635511146: Client disconnected due to protocol error.

Following is my broker config

allow_anonymous true
#password_file /etc/mosquitto/passwd

listener 1883 0.0.0.0

#persistence true
#persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log
log_type all

include_dir /etc/mosquitto/conf.d

This suggests that your client is sending bad data to the broker. Did you change your client / upgrade the broker in the past few days? Mosquitto is stricter than it used to be about protocol compliance.

Regards,

Roger

Thanks for the reply.

No, I haven’t change client or upgrade broker. Strange part is client is able to connect to mosquitto test cloud broker but not to my local broker which has default configuration.

broker version is 2.0.13