Unhandled error during Publish. BadTimeout 'BadTimeout'
See original GitHub issueHi, 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
OPC Issue - BadTimeout - Ignition
Hello,. We have some problems with Ignition OPC UA server. First some information about used software and versions: Windows Server 2008 R2
Read more >BadTimeout (0x800A0000) Error
Hi, i am facing issue while browising OPC UA address space, some times it is giving BadTimeout (0x800A0000) error.
Read more >Error related to check_container_alive when publish a ...
I have designed a shiny app. When I tried to publish this app on shinyapps.io , I got the following error message. Error:...
Read more >Source code for opcua.client.ua_client - Python OPC-UA
ErrorMessage): self.logger.fatal("Received an error: %s", msg) self. ... such as when the server # responds with "BadTimeout" and we should try again later ......
Read more >Don't trust default timeouts
Hell, the author of this exact blog post has picked 10 seconds in all of his ... Let's say 10 seconds, typical intuitive...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve sent you an email with logs and more details…