MQTTDataTransport lost connection [message #1774273] |
Thu, 12 October 2017 12:20 |
Thinh Nguyen Messages: 1 Registered: October 2017 |
Junior Member |
|
|
Hi
I have a raspeberry pi3 running raspbian kernel 4.4.21-v7 and Eclipse Kura 1.3.0. It collects data from sensors (temp, humid...) and publishs to broker every 60 seconds, on the server side there is a java class that will listen to that topic and log it.
Everything is running good except every 60 minutes (±30s) the java class stop receiving payload but when i check the kura log of the raspberry, its still publishing payload as normal. And around 15 minutes later, kura will log this message
2017-10-12 18:06:59,730 [MQTT Ping: B8:27:EB:E8:53:82] WARN o.e.k.c.d.t.m.MqttDataTransport - Connection Lost
Timed out waiting for a response from the server (32000)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:31)
at org.eclipse.paho.client.mqttv3.internal.ClientState.checkForActivity(ClientState.java:564)
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:660)
at org.eclipse.paho.client.mqttv3.TimerPingSender$PingTask.run(TimerPingSender.java:77)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
2017-10-12 18:06:59,732 [MQTT Ping: B8:27:EB:E8:53:82] INFO o.e.k.c.d.DataServiceImpl - connectionLost
2017-10-12 18:06:59,733 [pool-16-thread-1] INFO o.e.k.l.s.r.LogStatusRunnable - Notification LED slow blinking
2017-10-12 18:06:59,733 [MQTT Ping: B8:27:EB:E8:53:82] INFO o.e.k.c.d.DataServiceImpl - Starting reconnect task with initial delay 11
2017-10-12 18:06:59,734 [MQTT Ping: B8:27:EB:E8:53:82] WARN o.e.k.c.Cloudlet - Cloud Client Connection Lost!
2017-10-12 18:06:59,735 [MQTT Ping: B8:27:EB:E8:53:82] WARN o.e.k.c.Cloudlet - Cloud Client Connection Lost!
2017-10-12 18:06:59,735 [MQTT Ping: B8:27:EB:E8:53:82] INFO o.e.k.c.d.CloudDeploymentHandler - connectionLost
2017-10-12 18:06:59,736 [MQTT Ping: B8:27:EB:E8:53:82] WARN o.e.k.c.Cloudlet - Cloud Client Connection Lost!
2017-10-12 18:06:59,736 [MQTT Ping: B8:27:EB:E8:53:82] WARN c.g.i.g.a.i.ActuatorImpl - Cloud Client Connection Lost!
Then Kura will start reconnect to broker and after 60 minutes it happens again.
Any ideas are welcome.
Thanks and best regard
Please pardon my English
|
|
|
|
Powered by
FUDForum. Page generated in 0.02198 seconds