I set an ASA Job Module in IoT Edge Device to process data before sending them to Event hub.
I linked this job Module to OPC Publisher module already in place.
my initial route:
opcpublisher > Event Hub works fine :
FROM /messages/modules/OPCPublisher/* INTO $upstream
but this new route does not work:
IoTEdge opcpublisher > IoTEdge ASA Job > Event Hub
Here below route set from OPCPublisher to MyASAModule:
FROM /messages/modules/OPCPublisher/* INTO BrokeredEndPoint("/modules/MyASAModule/inputs/MyASAJobInput")
Then to send data to Event Hub:
FROM /modules/MyASAModule/MyASAJobOutput INTO $upstream
I checked logs from this new ASA module,i'am well connected to both Event Hub and OPC Publisher but it seems data are not coming up to IoT Hub. I tried to change routes priority between initial route and new one without success... After some time i get this error below in asa module logs
"Send Events: EventHub Output Send Data failure", "{\"Message Time\":\"2022-02-10 19:41:39Z\",\"ErrorCategory\":\"ExternalError\",\"ErrorCode\":\"EventHubFailedToWriteEvents\",\"Message\":\"An error occurred while sending data to Event Hub.
System.Net.Sockets.SocketException (110): Operation timed out .\",\"Type\":\"EventHubOutputAdapterEventHubTransientError\",\"Correlation ID\":\"9f032ce3-3afa-4616-9e52-7ccd459e3507\",\"Error\":null}"
My IoT Edge is on premise, i wonder if it's a network issue and AMQP protocol (port 5671 ....)
I would appreciate any suggestion ..
Regards,
/////////////////////////////////////////
Hello Florian,
Yes i use the same tutorial. And after deployment yes there were inputs in ASA Module logs but then it became empty like below.
2022-02-10 17:19:24.654 +00:00 [INF] -
=============================Metrics report=============================
ConversionErrors : 0
OutputEvents : 0
OutputWatermarkDelaySeconds : 10.12 K
DroppedOrAdjustedEvents : 0
LateInputEvents : 0
InputEvents : 0
Errors : 0
InputEventBytes : 0 B
EarlyInputEvents : 0
DeserializationError : 0
InputEventsSources : 0
And in Edge logs i see messages about periodic re-authentication my IoT Edge is on premise so i set connection string as authentication mode between ASA Job and IoT Hub But i do not really know how it's managed
Disposing MessagingServiceClient for device Id MyIoTEdgeASAJob because of exception - Microsoft.Azure.Devices.Edge.Hub.Core.EdgeHubConnectionException: Connection closed for device MyIoTEdgeASAJob.
<6> 2022-02-10 22:24:12.699 +00:00 [INF] - Closing device proxy for device Id MyIoTEdgeASAJob
<6> 2022-02-10 22:24:12.701 +00:00 [INF] - Closing receiver in cloud proxy xxxxxxxxxxxxxxxxxxxxxx for MyIoTEdgeASAJob
<6> 2022-02-10 22:24:12.701 +00:00 [INF] - Closed cloud proxy xxxxxxxxxxxxxxxxxxxxxx for MyIoTEdgeASAJob