I am running MQTT broker in microsoft azure eventgrid and I have generated certificates and keys to connect the Grooc EPIC nodered MQTT out client to eventgrid mqtt broker. When I deploy i could see it is connected for 10 seconds. After that it got disconnected and every few seconds it is showing connecting and got disconnected again. I have followed microsoft azure eventgrid tutorials for this and they gave examples for mqttx app for testing purpose. I am not sure what I am missing here and why it is getting disconnected every few seconds and ultimately i am not able see the sensor data in the cloud. Please help me to fix the problem. Thanks in Advance.
We have seen that connect/disconnect cycle on other customer initial setups.
It always comes down to network connections, miss-configured broker/client or certificate issues.
Can you share your network setup, both from a high level and then what the groov Manage network screens look like.
Then some screenshots of the broker and groov Manage native Data Server connection screens look like.
With that information hopefully myself, @greichert and others that have experience with different broker setups can get you up and connected.
There is not really enough information to go on here.
Have you looked at the Data Service Logs?
At a guess, it would be a configuration issue rather than an issue with the groov Device.
INFO|2024-07-11 00:07:57,765|MqttSparkplug.java|1646|Connecting to MQTT server tcp://twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883;bdSeq=73;server ver=MQTT_3;keep alive=10 sec;conn timeout=5000 ms;min free space=600;hist payld=1000;primary id=topic;primary spec=SPEC_2_0;compression=NONE.
ERROR|2024-07-11 00:07:59,008|MqttString.java|843|MQTT protocol connection attempt to server failed waiting for validation tcp://twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883.
INFO|2024-07-11 00:07:59,360|TestTcpConnection.java|74|Test connection test to twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883 succeeded.
WARN|2024-07-11 00:07:59,360|MqttString.java|950|Closing client threw com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Server closed connection without DISCONNECT… ERROR|2024-07-11 00:08:03,784|MqttSparkplug.java|1688|Connection attempt to MQTT server failed waiting for validation tcp://twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883.
INFO|2024-07-11 00:08:04,131|TestTcpConnection.java|74|Test connection test to twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883 succeeded.
ERROR|2024-07-11 00:07:59,008|MqttString.java|843|MQTT protocol connection attempt to server failed waiting for validation tcp://twinalytics-event-grid.centralus-1.ts.eventgrid.azure.net:8883.
protocol connection attempt to server failed waiting for validation
Mqtt node gets connected intermittently ie its status fluctuates from “disconnected” to “connecting” & then “connected” & then back to “disconnected”. Kindly help to get it connected consistently