cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Azure IoT Hub Connector issue with AzureIotSendMessage service!

gbrentegani
3-Visitor

Azure IoT Hub Connector issue with AzureIotSendMessage service!

I had a consumer in node-red, so I consume all the messages.

 

I noticed in the azure iot hub connector bash the following error:

log.png

The virtual machine is a Windows server 2012 R2 

4 GB Ram

Intel(R) Xenon CPU E5-2673 v3 @ 2.40 GHz 

java = jre1.8.0_92

 

After 1-2 hours of startup, the connector continues to require so many resources until the error occurs:

task.png

After the error I have to restart the connector in order to use C2D and D2C messages.

 

Any suggestions???? 

Thanks

 

Related to previous post

3 REPLIES 3

Can you please analyze the log of the connector?

 

 

I think there is the cause of the using a lot of resources.

 

18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: Failure creating client or receiver, retrying
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: Caught java.util.concurrent.ExecutionException: com.microsoft.azure.servicebus.ServiceBusException: The supplied offset '137460531720' is invalid. The last offset in the system is '1789592' TrackingId:bdff1d66-b344-47fa-992c-7ebfafabcb81_G17_B15, SystemTracker:iothub-ns-iothubprod-1202394-e704e8b244:EventHub:iothubproduction~8191|northeurope, Timestamp:2019-01-18T17:35:21 Reference:f6a37fb8-7192-493e-a2ff-34a87f7fd324, TrackingId:2a52f80c-1003-4bbc-b337-a23eed5711f3_B15, SystemTracker:iothub-ns-iothubprod-1202394-e704e8b244:eventhub:iothubproduction~8191|northeurope, Timestamp:2019-01-18T17:35:22 TrackingId:f779ab2f1a424441bcddd5f9a6d6df2c_G17, SystemTracker:gateway5, Timestamp:2019-01-18T17:35:22, errorContext[NS: iothub-ns-iothubprod-1202394-e704e8b244.servicebus.windows.net, PATH: iothubproduction/ConsumerGroups/northeurope/Partitions/0, REFERENCE_ID: fccec9_f2c_G17_1547832920447]
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.util.concurrent.CompletableFuture.get(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.eventprocessorhost.EventHubPartitionPump.openClients(EventHubPartitionPump.java:126)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.eventprocessorhost.EventHubPartitionPump.specializedStartPump(EventHubPartitionPump.java:46)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.eventprocessorhost.PartitionPump.startPump(PartitionPump.java:70)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.eventprocessorhost.Pump.lambda$createNewPump$0(Pump.java:61)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.util.concurrent.FutureTask.run(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.lang.Thread.run(Unknown Source)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: Inner exception com.microsoft.azure.servicebus.ServiceBusException: The supplied offset '137460531720' is invalid. The last offset in the system is '1789592' TrackingId:bdff1d66-b344-47fa-992c-7ebfafabcb81_G17_B15, SystemTracker:iothub-ns-iothubprod-1202394-e704e8b244:EventHub:iothubproduction~8191|northeurope, Timestamp:2019-01-18T17:35:21 Reference:f6a37fb8-7192-493e-a2ff-34a87f7fd324, TrackingId:2a52f80c-1003-4bbc-b337-a23eed5711f3_B15, SystemTracker:iothub-ns-iothubprod-1202394-e704e8b244:eventhub:iothubproduction~8191|northeurope, Timestamp:2019-01-18T17:35:22 TrackingId:f779ab2f1a424441bcddd5f9a6d6df2c_G17, SystemTracker:gateway5, Timestamp:2019-01-18T17:35:22, errorContext[NS: iothub-ns-iothubprod-1202394-e704e8b244.servicebus.windows.net, PATH: iothubproduction/ConsumerGroups/northeurope/Partitions/0, REFERENCE_ID: fccec9_f2c_G17_1547832920447]
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.servicebus.ExceptionUtil.toException(ExceptionUtil.java:43)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.servicebus.MessageReceiver.onClose(MessageReceiver.java:587)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.servicebus.amqp.BaseLinkHandler.processOnClose(BaseLinkHandler.java:75)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.servicebus.amqp.BaseLinkHandler.onLinkRemoteClose(BaseLinkHandler.java:46)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:176)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch(ReactorImpl.java:309)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: org.apache.qpid.proton.reactor.impl.ReactorImpl.process(ReactorImpl.java:276)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: com.microsoft.azure.servicebus.MessagingFactory$RunReactor.run(MessagingFactory.java:375)
18:35:20.900 [pool-5-thread-4] WARN eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: java.lang.Thread.run(Unknown Source)
18:35:20.900 [pool-5-thread-4] DEBUG eventprocessorhost.trace - host AzureIot-9f448f05-3d8a-4c5b-9cb5-53661ee5a908: partition 0: Opening EH client

 

 

Thank you

slangley
23-Emerald II
(To:gbrentegani)

Hi @gbrentegani.

 

It doesn't appear that you have sufficient RAM.  Please refer to the Requirements doc for validating your configuration.

 

Regards.

 

--Sharon

slangley
23-Emerald II
(To:slangley)

Hi @gbrentegani.

 

If the previous response helped to solve your issue, please mark it as the Accepted Solution for the benefit of others with similar issues.

 

Regards.

 

--Sharon

Top Tags