Industrial-IoT: Unhandled error during Publish. BadTimeout 'BadTimeout'
Hi, we are having some issues with the publisher. Getting bad timeout. Can you see from the logs what is causing this? Had a stream running for the publisher for several hours, that suddenly stopped working. When checking the logs there were errors there regarding bad timeout. After the restart it is publishing data, but this error keeps coming on regular intervals. This is some timeout error related to OPC client (publisher) and OPC UA server?
[13:46:37 ERR Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Error) PUBLISH #15 - Unhandled error during Publish.
BadTimeout 'BadTimeout'
Running Ubuntu 18.04 IIOT 2.8.1 all in one services Publisher 2.8.1
[13:46:36 DBG Microsoft.Azure.IIoT.Agent.Framework.Agent.Worker] Sending heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] Sending POST request to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] POST to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat returned OK (took 00:00:00.0518594).
[13:46:36 DBG Microsoft.Azure.IIoT.Agent.Framework.Agent.Worker+JobProcess] Sending job processor heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] Sending POST request to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat...
[13:46:36 DBG Microsoft.Azure.IIoT.OpcUa.Protocol.Services.DefaultSessionManager] Runner Keepalive reset due to checkAlive
[13:46:36 DBG Microsoft.Azure.IIoT.OpcUa.Protocol.Services.DefaultSessionManager] Refreshing session '2cc38d59fc2d08bc4bf6abe37aecde7d3ffe0640'
[13:46:36 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) Read Called. RequestHandle=394, PendingRequestCount=2
[13:46:36 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) Read Completed. RequestHandle=394, PendingRequestCount=1
[13:46:36 DBG Microsoft.Azure.IIoT.OpcUa.Protocol.Services.DefaultSessionManager] Refreshing done for session '2cc38d59fc2d08bc4bf6abe37aecde7d3ffe0640'
[13:46:36 DBG Microsoft.Azure.IIoT.Agent.Framework.Agent.Worker] Sending heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] Sending POST request to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat...
[13:46:36 DBG Microsoft.Azure.IIoT.Agent.Framework.Agent.Worker] Sending heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] Sending POST request to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat...
[13:46:36 DBG Microsoft.Azure.IIoT.Agent.Framework.Agent.Worker] Sending heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] Sending POST request to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat...
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] POST to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat returned OK (took 00:00:00.0887432).
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] POST to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat returned OK (took 00:00:00.0477676).
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] POST to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat returned OK (took 00:00:00.0484443).
[13:46:36 VRB Microsoft.Azure.IIoT.Http.Default.HttpClient] POST to https://svc-bifrost-p2-weu.azurewebsites.net/edge/publisher/v2/heartbeat returned OK (took 00:00:00.0529546).
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) PUBLISH #15 RECEIVED
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) ***EXCEPTION*** BadTimeout
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) Publish Completed. RequestHandle=0, PendingRequestCount=0, StatusCode=Bad
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) Publish #15, Reconnecting=False, Error: BadTimeout
[13:46:37 ERR Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Error) PUBLISH #15 - Unhandled error during Publish.
BadTimeout 'BadTimeout'
========================================
Id: BadTimeout
Description: BadTimeout
>>> BadTimeout
--- at Opc.Ua.ClientBase.ValidateResponse(ResponseHeader header)
--- at Opc.Ua.SessionClient.EndPublish(IAsyncResult result, UInt32& subscriptionId, UInt32Collection& availableSequenceNumbers, Boolean& moreNotifications, NotificationMessage& notificationMessage, StatusCodeCollection& results, DiagnosticInfoCollection& diagnosticInfos)
--- at Opc.Ua.Client.Session.OnPublishComplete(IAsyncResult result)
========================================
Opc.Ua.ServiceResultException: BadTimeout
at Opc.Ua.ClientBase.ValidateResponse(ResponseHeader header)
at Opc.Ua.SessionClient.EndPublish(IAsyncResult result, UInt32& subscriptionId, UInt32Collection& availableSequenceNumbers, Boolean& moreNotifications, NotificationMessage& notificationMessage, StatusCodeCollection& results, DiagnosticInfoCollection& diagnosticInfos)
at Opc.Ua.Client.Session.OnPublishComplete(IAsyncResult result)
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) Publish Called. RequestHandle=16, PendingRequestCount=1
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) PUBLISH #16 SENT
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) PUBLISH #16 RECEIVED
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Service) Publish Completed. RequestHandle=16, PendingRequestCount=0
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) Error - Publish call finished. ResultCode=BadSequenceNumberUnknown; SubscriptionId=2403595714;
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NOTIFICATION RECEIVED: SubId=2403595714, SeqNo=8
[13:46:37 DBG Microsoft.Azure.IIoT.OpcUa.Protocol.Services.DefaultSessionManager] Keepalive received from session '2cc38d59fc2d08bc4bf6abe37aecde7d3ffe0640': server current state: Running
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NotificationReceived: ClientHandle=169, Value=8
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NotificationReceived: ClientHandle=94, Value=3.2
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NotificationReceived: ClientHandle=133, Value=6.5
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NotificationReceived: ClientHandle=129, Value=3.2
[13:46:37 VRB Microsoft.Azure.IIoT.OpcUa.Protocol.Services.StackLogger] (Information) NotificationReceived: ClientHandle=49, Value=0
Best regards
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (8 by maintainers)
Commits related to this issue
- fix publish operation timeout exception during publishing (#1620) * fix for Unhandled error during Publish. BadTimeout 'BadTimeout' #1492 * ensure the configured opc stack transport arguments (Opera... — committed to Azure/Industrial-IoT by cristipogacean 2 years ago
- fix publish operation timeout exception during publishing (#1620) * fix for Unhandled error during Publish. BadTimeout 'BadTimeout' #1492 * ensure the configured opc stack transport arguments (Opera... — committed to Azure/Industrial-IoT by cristipogacean 2 years ago
Most upvoted comments
+1
mwiot on Dec 10, 2021