Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

[Version 5.40.315.1] Sudden subscription fail

More
11 Oct 2016 14:25 #4445 by support
This is the latest version&build, so you are OK in this respect,

Only the first two log entries are indicative of what is happening; the remainder is basically
just a consequence of the problems that originated earlier.

The errors indicate that the client is not getting updates from the server as it should. It is somewhat unusual that these problems were detected on an internal subscription used just for monitoring the server status, and not on one of your own subscriptions (do you have any? If so, what are their monitoring rates?), but that can be incidental.

I can see following possible causes:
1. Network problems (TCP communication between the OPC server and the OPC client).
2. A problem on the server side (bug, CPU load, other issues).
3. A bug on the client side (QuickOPC).

If this was 1) or 2) and just transient, QuickOPC should actually recover automatically after some time. But obviously if the problem persists, recovery isn't possible.

I see 1) and 2) as more likely. Can you please look into these possibilities. If you do not find anything, a further analysis would most likely require obtaining Wireshark logs of at least one incident + correlated client-side logs (from QuickOPC).

Best regards

Please Log in or Create an account to join the conversation.

More
11 Oct 2016 11:30 - 11 Oct 2016 11:31 #4444 by UKPR
Hi,

we have a service that subscribes to about a 1000 variables. It was working fine and suddenly we got warnings in in the event log and the datachange events started coming in with errors.
Below is the output from EasyUAClient.LogEntry
WARN  2016-10-10T10:10:41.817+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:3012 Message: The OPC-UA subscription ID 3 publishing has stopped on the client session with connect sequence number 1 to endpoint URL "opc.tcp://localhost:49320" for approximate current duration of 75822 milliseconds. The current keep-alive count is 10, the current publishing interval is 7500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.  
WARN  2016-10-10T10:10:46.831+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:3014 Message: The OPC-UA subscription ID 3 publishing has halted on the client session with connect sequence number 1 to endpoint URL "opc.tcp://localhost:49320" for approximate current duration of 80837 milliseconds. The current keep-alive count is 10, the current publishing interval is 7500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.  
WARN  2016-10-10T10:10:46.850+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:3201 Message: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://localhost:49320" is in failure. Further such warnings on this session will not be logged.
The OPC-UA subscription ID 3 publishing has halted on the client session to endpoint URL "opc.tcp://localhost:49320" for approximate current duration of 80837 milliseconds. The current keep-alive count is 10, the current publishing interval is 7500 milliseconds, and the probationary period was 5000 milliseconds.  
INFO  2016-10-10T12:48:30.614+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Categoty: 0 Id:2071 Message: The keep-alive queue for the OPC-UA client session with connect sequence number 1 to endpoint URL "opc.tcp://localhost:49320" has overflown its limit of 100 entries. Further such warning on this session will not be logged.  
WARN  2016-10-10T12:49:58.322+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:2051 Message: The OPC-UA client session with connect sequence number 1 on endpoint URL "opc.tcp://localhost:49320" has encountered a publish error with code 0x80850000 for subscription ID 0 and sequence number 0. The error might be from the Publish or the Republish service. Further publish errors with this code on this session will not be logged. 
  Service result: BadRequestTimeout 'BadRequestTimeout'.  
WARN  2016-10-10T12:49:58.324+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:2051 Message: The OPC-UA client session with connect sequence number 1 on endpoint URL "opc.tcp://localhost:49320" has encountered a publish error with code 0x80250000 for subscription ID 0 and sequence number 0. The error might be from the Publish or the Republish service. Further publish errors with this code on this session will not be logged. 
  Service result: BadSessionIdInvalid 'BadSessionIdInvalid'. 

When processing the data change events we started getting such errors for all of the variables:
WARN  2016-10-10T12:50:10.375+01:00 OPCEvent OPC Event Source: OPCLabs-UAEngine Category: 0 Id:3003 Message: Failed to remove subscription on the OPC-UA client session with connect sequence number 1 to endpoint URL "opc.tcp://localhost:49320". This error is generally ignored. Further such warnings on this session will not be logged. BadRequestTimeout

The server that the service was reading from was on the same machine.
There were other services that connected to that server and had no issues.
When I tried to reset the service it got stuck on unsubscribing and I had to kill the process.
The service was working fine for more than 2 weeks then after it was restarted it worked for about a day and then we got the above errors.
We are using the Nuget package and the version of the DLLs was 5.40.315.1
Do You have any ideas what can be the cause of such strange behavior ?

Regards,

Michal Waclawski

Kind regards,


Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Last edit: 11 Oct 2016 11:31 by UKPR.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.059 seconds