Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » MQTTDataTransport lost connection(MqttDataTransport)
MQTTDataTransport lost connection [message #1774273] Thu, 12 October 2017 12:20 Go to next message
Thinh Nguyen is currently offline Thinh NguyenFriend
Messages: 1
Registered: October 2017
Junior Member

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(
	at org.eclipse.paho.client.mqttv3.internal.ClientState.checkForActivity(
	at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(
	at org.eclipse.paho.client.mqttv3.TimerPingSender$
	at java.util.TimerThread.mainLoop(
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
Re: MQTTDataTransport lost connection [message #1774988 is a reply to message #1774273] Mon, 23 October 2017 09:14 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 279
Registered: July 2015
Location: Italy
Senior Member
sorry for the late response.
What are you using as a broker?
Is it possible that there is an issue there?

Have you tried connecting to another broker and seeing if the problem persists?

Best regards,
Previous Topic:How to make data appear on Kura UI
Next Topic:Kamel as kura cloud service
Goto Forum:

Current Time: Sun Nov 18 20:16:33 GMT 2018

Powered by FUDForum. Page generated in 0.02645 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top