Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-LAB-HELP
-
Labels:None
-
Sender Email:
-
HD-Node:Spain
Description
I am finding troubles when registering a new device in the FiwareLab MQTT Agent IoT IDAS rel. 4 instance: I receive an error answer (500 server error) with this reason message:
{"reason":"Database error","details":"SocketException "}The existing Fiware-Service is: “fiwareiot”, the Fiware-ServicePath is:” /”, the "resource": "/iot/mqtt".
Here is the curl command sent:
curl v -X POST http://eidas5.lab.fi-ware.org:5371/iot/devices -H "content-type: application/json" -H "X-Auth-Token: 4jggokgpepnvsb2uv4s40d59ov" -H "Fiware-Service: fiwareiot" -H "Fiware-ServicePath: /" -d @ <<EOT
{"devices": [
{ "device_id": "mqtt001",
"entity_name": "thing-mqtt001",
"entity_type": "thing",
"timezone": "Europe/Madrid",
"protocol" : "PDI-IoTA-MQTT-UltraLight",
"attributes": [
,
],
"static_attributes": [
]}]}
EOT
And this is the answer received:
- Connected to eidas5.lab.fi-ware.org (130.206.80.40) port 5371 (#0)
> POST /iot/devices HTTP/1.1
> User-Agent: curl/7.35.0
> Host: eidas5.lab.fi-ware.org:5371
> Accept: /
> content-type: application/json
> X-Auth-Token: 4jggokgpepnvsb2uv4s40d59ov
> Fiware-Service: fiwareiot
> Fiware-ServicePath: /
> Content-Length: 461
> - upload completely sent off: 461 out of 461 bytes
< HTTP/1.1 500 Server Error
< Connection: close
< Host: eidas5.lab.fi-ware.org:5371
< Content-Length: 56
< Content-Type: application/json
< - Closing connection 0 {"reason":"Database error","details":"SocketException "}
Note that the a similar command had success in the past in the same environment.
What is going wrong ?
Thanks in advance.
Gianluca
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: "Gianluca Zanetto (Greenlab Engineering)" <gianluca.zanetto@greenlabeng.com>]
Hi Gianluca,
We are experienceing some issues with the MQTT public instances so we are going to install this week the new version of this IoT Agent, that means a major change, as it is coded now in node.js (before we had the C++ version).
Once it is installed, I will publish here the details so that you may try again.
Thanks for using IDAS.
Cheers,