MQTT-Explorer icon indicating copy to clipboard operation
MQTT-Explorer copied to clipboard

constantly and repeatedly disonnecting from emqx broker

Open dkebler opened this issue 4 years ago • 5 comments

First off. I have been using mqtt box for some time and it works just fine with latest emqx broker docker version.

Just saw and decided to give mqtt ex a spin. Running on a linux mint box 19+, 18.04.

The client keeps popping up the disconnected from server notification. Not all the topics are showing or are being updated.

Seems something amiss with handshaking/keep alive

connection set to mqtt protocol, valid cert off, tls off, no credentials, same as for mqttbox

Let me know how to provide you some logs

There is nothing in the dev tools console.

dkebler avatar Jul 27 '19 00:07 dkebler

This may happen when you use the same MQTT client ID twice on the same broker. (or connect two MQTT Explorer instances at once).

I'll check out the compatibility with emqx in the meantime.

Thank you for the bug-report.

thomasnordquist avatar Jul 27 '19 10:07 thomasnordquist

I had no trouble conencting to an emqx instance docker run --rm -d --name emqx -p 18083:18083 -p 1883:1883 -it emqx/emqx:latest.

However to see all the traffic you would most likely need to update your ACLs: https://github.com/emqx/emqx/issues/826#issuecomment-267917023

thomasnordquist avatar Jul 27 '19 11:07 thomasnordquist

I have exactly same problem as above. I am using emqx. It was working before I was using x.905 certificates for authentication. Now when I try to do mTLS I get same problem as above. There is nothing in logs. If I enable validate TLS certificat (I have valid certififcate) I get image

I was also able to connect using same certificates on rabbitmq.

BTW: I can connect using MQTT.fx

hostops avatar Mar 18 '20 16:03 hostops

hi, had the same issue, by changing the client ID i could get rid of the message, is the cliend ID is generated randomly ?

ouinouin avatar Apr 10 '21 10:04 ouinouin

I recently switched from mosquitto to emqx and have been running into this. I think it's because of default configuration on emqx that restricts how many updates a client can receive. I have Home Assistant and a bunch of other software, some of which are using the retain flag on messages or QoS >0. MQTT Explorer seems to have a default subscription of # which can cause the client to run into the configured limits. I'm trying to figure out how to tune the configuration in emqx but may switch back to mosquitto if it's too much trouble.

scottt732 avatar Oct 15 '23 16:10 scottt732