Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Kapua » Problem with connection Kura Kapua
Problem with connection Kura Kapua [message #1778269] Tue, 12 December 2017 13:38 Go to next message
Javier A. is currently offline Javier A.Friend
Messages: 10
Registered: November 2017
Junior Member
Good afternoon.

I have follow the steps about how configure Kura and Kapua (https://github.com/eclipse/kapua/pull/780/files. ) without any error, all ok. The problem is there is an error with the connection bettwen Kura and Kapua. I have added the error in console.

2017-12-12 14:06:25,589 [DataServiceImpl:ReconnectTask] WARN  o.e.k.c.d.t.m.MqttDataTransport - xxxxx  Connect failed. Forcing disconnect. xxxxx {}
No es posible conectarse al servidor (32103) - java.net.ConnectException: Conexión rehusada
        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79)
        at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Conexión rehusada
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70)
        ... 2 more
2017-12-12 14:06:25,599 [DataServiceImpl:ReconnectTask] INFO  o.e.k.c.d.t.m.MqttDataTransport - Closing client...
2017-12-12 14:06:25,600 [DataServiceImpl:ReconnectTask] INFO  o.e.k.c.d.t.m.MqttDataTransport - Closed
2017-12-12 14:06:25,602 [pool-11-thread-1] INFO  o.e.k.c.s.r.LogStatusRunnable - Notification LED off
2017-12-12 14:06:25,604 [pool-11-thread-1] INFO  o.e.k.c.s.r.LogStatusRunnable - Notification LED slow blinking
2017-12-12 14:06:25,606 [DataServiceImpl:ReconnectTask] WARN  o.e.k.c.d.DataServiceImpl - Connect failed
org.eclipse.kura.KuraConnectException: "Connection failed. Cannot connect"
        at org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport.connect(MqttDataTransport.java:333)
        at org.eclipse.kura.core.data.DataServiceImpl$2.run(DataServiceImpl.java:609)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: No es posible conectarse al servidor (32103) - java.net.ConnectException: Conexión rehusada
        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79)
        at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650)
        ... 1 more
Caused by: java.net.ConnectException: Conexión rehusada
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70)
        ... 2 more


All help is wellcome.

Thank you.
Re: Problem with connection Kura Kapua [message #1778714 is a reply to message #1778269] Wed, 20 December 2017 12:07 Go to previous messageGo to next message
Milan Ggg is currently offline Milan GggFriend
Messages: 28
Registered: March 2017
Junior Member
Hello pitu--- ,
Can you provide us with paramethers that you use for Kura Cloud Service setup?
Regards,
Milan
Re: Problem with connection Kura Kapua [message #1778833 is a reply to message #1778714] Fri, 22 December 2017 10:32 Go to previous messageGo to next message
Javier A. is currently offline Javier A.Friend
Messages: 10
Registered: November 2017
Junior Member
Hello Milan.

At the end, I deleted and created again "Cloud Service" and "MqttDataTransport" following the steps and this time, all worked (maybe, the first time, I configured something wrogn).

Thank you.
Re: Problem with connection Kura Kapua [message #1782532 is a reply to message #1778833] Mon, 26 February 2018 08:27 Go to previous message
Ahmad Arif is currently offline Ahmad ArifFriend
Messages: 10
Registered: February 2018
Junior Member
Hi all,

I want to create a new cloud connection in kura but my cloud service pid generated this error " GWTCloudService_proxy: A generic unrecoverable error happened " I filled cloud service pid field as org.eclipse.kura.cloud.CloudService-2. Kindly help

Thank you
Previous Topic:kapua connection
Next Topic:MySQL integration for telemetry data.
Goto Forum:
  


Current Time: Fri Sep 21 13:26:22 GMT 2018

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

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

Back to the top