|
|
|
|
|
|
|
|
|
|
|
Re: Remote deployment of dp file [message #1797634 is a reply to message #1797384] |
Sat, 03 November 2018 07:29 |
shubh wade Messages: 28 Registered: July 2018 |
Junior Member |
|
|
Hello
I have tried to used amit's mqtt applicationhttps://github.com/amitjoy/Kura-MQTT-Client-Utility .
publish topic :$EDC/rubyhall/testruby/DEPLOY-V2/EXEC/download
subscribe topic $EDC/rubyhall/CLIENT_3QU6ENQQJLPHQ5ENTS4GNJOMV0/DEPLOY-V2/REPLY/REQUEST_48UPV35VT2KVUSO459NU48KSQB
added this payload while publishing.
payload.addMetric("request.id",REQUEST_48UPV35VT2KVUSO459NU48KSQB);
payload.addMetric("requester.client.id", CLIENT_3QU6ENQQJLPHQ5ENTS4GNJOMV0);
long jobid=12457256L;
payload.addMetric("dp.job.id",jobid);
payload.addMetric("dp.name", "com.eclipse.kura.example.serial");
payload.addMetric("dp.version"," 1.0.0.201810121816");
payload.addMetric("dp.uri", "http://192.168.**.*:8080/dp/SerialExample.dp");
payload.addMetric("dp.download.protocol", "HTTP");
I have only receiving this message on kura log.i think cloud service should publish response on subscribe topic.
2018-11-03 12:41:37,191 [MQTT Call: testruby] INFO o.e.k.c.c.CloudServiceImpl - Message arrived on topic: $EDC/rubyhall/testruby/DEPLOY-V2/EXEC/download
Can you please explain why this is happing ?
[Updated on: Mon, 05 November 2018 04:50] Report message to a moderator
|
|
|
Re: Remote deployment of dp file [message #1807953 is a reply to message #1797634] |
Thu, 13 June 2019 07:10 |
Miguel del Castillo Messages: 3 Registered: June 2019 |
Junior Member |
|
|
Hi, I don't know if you still interested in the solution. I have not yet, but I am working on it.
I have the same issue, but for a different reason.
I am mostly at the same point but I am getting a response from Kura telling me that the request is bad.
Here my mqtt message. I am doing manually to understand and the it will be used from node-red.
{"metrics":
{
"request.id":"123456789",
"requester.client.id":"MQTT_FX_Client",
"dp.job.id":1234,
"dp.uri":"http://10.6.18.238:1880/hola",
"dp.name":"heater",
"dp.version":"1.0.0",
"dp.download.protocol":"HTTP",
"dp.install":true
}
}
My uri is referencing an API REST implemented on Kura. I have tested that the file downloads when the api is called and that the file still working as dp.
If I achieve it, I will tell you.
(Sorry for my english, feel free to correct me, PLEASE)
Edit:
I can't find information about this issue:
Here is the log output.
2019-06-13T14:25:14,982 [pool-33-thread-2] INFO o.e.k.c.d.CloudDeploymentHandlerV2 - Malformed download request!
2019-06-13T14:25:14,984 [pool-33-thread-2] WARN o.e.k.KuraException - Could not load Exception Messages Bundle for Locale en_US
2019-06-13T14:25:14,985 [pool-33-thread-2] WARN o.e.k.KuraException - Could not load Exception Messages Bundle for Locale en_US
2019-06-13T14:25:14,985 [pool-33-thread-2] WARN o.e.k.KuraException - Could not load Exception Messages Bundle for Locale en_US
org.eclipse.kura.KuraException: Generic Error - BAD_REQUEST: {1}
at org.eclipse.kura.core.deployment.CloudDeploymentHandlerV2.doExecDownload(CloudDeploymentHandlerV2.java:489) ~[org.eclipse.kura.core.deployment_1.1.400.jar:?]
at org.eclipse.kura.core.deployment.CloudDeploymentHandlerV2.doExec(CloudDeploymentHandlerV2.java:372) ~[org.eclipse.kura.core.deployment_1.1.400.jar:?]
at org.eclipse.kura.core.cloud.MessageHandlerCallable.call(MessageHandlerCallable.java:139) [org.eclipse.kura.core.cloud_1.1.300.jar:?]
at org.eclipse.kura.core.cloud.MessageHandlerCallable.call(MessageHandlerCallable.java:1) [org.eclipse.kura.core.cloud_1.1.300.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) [?:?]
at java.lang.Thread.run(Thread.java:844) [?:?]
[Updated on: Thu, 13 June 2019 13:48] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds