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
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
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: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
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?

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


Current Time: Thu Mar 28 22:34:15 GMT 2024

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

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

Back to the top