-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
when iot agent tries to register services (already existing):
time=2020-07-29T15:07:05.758Z | lvl=DEBUG | corr=1d9ddc2a-d24a-4a9e-95ed-bba29bda754c | trans=1d9ddc2a-d24a-4a9e-95ed-bba29bda754c | op=IoTAgentNGSI.NorthboundServer | srv=n/a | subsrv=n/a | msg=Using config:
{
"logLevel": "DEBUG",
"timestamp": true,
....
"iotManager": {
"host": "iot-agent-manager-iot-agent-manager",
"port": 8082,
"path": "/iot/protocols",
"protocol": "JSON",
"description": "JSON IoT Agent (Node.js version) supports HTTP/MQTT/AMQP protocols",
"agentPath": "/config/iot",
"url": "http://iot-agent-manager-iot-agent-manager:8082"
},
"types": {},
"service": "EKZ",
"subservice": "/",
"providerUrl": "http://json-iot-agent:4041",
"autocast": true,
"deviceRegistrationDuration": "P1M",
"defaultType": "Device",
"defaultResource": "/iot/json",
"explicitAttrs": false,
"iotaVersion": "1.14.0",
"multiCore": false
}
| comp=IoTAgent
time=2020-07-29T15:07:05.771Z | lvl=INFO | corr=1d9ddc2a-d24a-4a9e-95ed-bba29bda754c | trans=1d9ddc2a-d24a-4a9e-95ed-bba29bda754c | op=IoTAgentNGSI.ContextServer | srv=n/a | subsrv=n/a | msg=Loading NGSI Contect server routes | comp=IoTAgent
time=2020-07-29T15:07:05.907Z | lvl=DEBUG | corr=c84cf275-e2ae-435c-9e77-b49324f63840 | trans=c84cf275-e2ae-435c-9e77-b49324f63840 | op=IoTAgentNGSI.IOTAMService | srv=n/a | subsrv=n/a | msg=Sending registration to the IOTAM:
{
"url": "http://iot-agent-manager-iot-agent-manager:8082/iot/protocols",
"method": "POST",
"json": {
"protocol": "JSON",
"description": "JSON IoT Agent (Node.js version) supports HTTP/MQTT/AMQP protocols",
"iotagent": "http://json-iot-agent:4041/config/iot",
"resource": "/iot/json",
"services": [
{
"apikey": "xxxx",
"entity_type": "AirQualityObserved",
"resource": "/iot/json",
"service": "EKZ",
"service_path": "/EnvironmentManagement/Demo",
"attributes": [
{
"type": "Number",
"name": "CO",
"object_id": "CO"
},
{
"object_id": "NO",
"name": "NO",
"type": "Number"
}
],
"static_attributes": []
}
]
}
}
time=2020-07-29T15:07:06.095Z | lvl=ERROR | corr=c84cf275-e2ae-435c-9e77-b49324f63840 | trans=c84cf275-e2ae-435c-9e77-b49324f63840 | op=IoTAgentNGSI.Alarms | srv=n/a | subsrv=n/a | msg=Raising [IOTAM-ALARM]: "Wrong status code connecting with the IoTAM" | comp=IoTAgent
time=2020-07-29T15:07:06.095Z | lvl=ERROR | corr=c84cf275-e2ae-435c-9e77-b49324f63840 | trans=c84cf275-e2ae-435c-9e77-b49324f63840 | op=IoTAgentNGSI.IOTAMService | srv=n/a | subsrv=n/a | msg=IOTAM-001: Error updating information in the IOTAM. Status Code [500] | comp=IoTAgent
IoT agent managers reports:
time=2020-07-29T15:07:06.095Z | lvl=ERROR | corr=n/a | trans=n/a | op=IoTAgentNGSI.Alarms | msg=Releasing [MONGO-ALARM]
time=2020-07-29T15:07:06.096Z | lvl=ERROR | corr=n/a | trans=n/a | op=IoTAgentNGSI.Alarms | msg=Raising [MONGO-ALARM]: {"driver":true,"name":"MongoError","index":0,"code":11000,"errmsg":"E11000 duplicate key error collection: iot-agent-manager.configurations index: apikey_1_resource_1_protocol_1 dup key: { : \"xxx", : \"/iot/json\", : \"JSON\" }"}
time=2020-07-29T15:07:06.098Z | lvl=ERROR | corr=n/a | trans=n/a | op=IoTAgentNGSI.Alarms | msg=Releasing [MONGO-ALARM]
time=2020-07-29T15:07:06.100Z | lvl=ERROR | corr=n/a | trans=n/a | op=IoTAgentNGSI.Alarms | msg=Raising [MONGO-ALARM]: {"driver":true,"name":"MongoError","index":0,"code":11000,"errmsg":"E11000 duplicate key error collection: iot-agent-manager.configurations index: apikey_1_resource_1_protocol_1 dup key: { : \"xxxx\", : \"/iot/json\", : \"JSON\" }"}
Metadata
Metadata
Assignees
Labels
No labels