OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.97k stars 950 forks source link

Subscription won't update although it seems to be online #2708

Closed CryptoCodeing closed 2 months ago

CryptoCodeing commented 3 months ago

Type of issue

Current Behavior

Dear Contributers

Our APP (.NET 4.8 Application implementing this library) connects to a PLC via Subscription.

Tested and it seems to work. BUT sadly it doesnt.

Our Customer is reporting issues daily.

We are experiencing an issue that subscriptions suddenly stop to work at some point, but unfortunately we are not able to figure out why and how this would happen. The applications seems to run as it should, but at some point subscription events do not trigger anymore at all. Restarting the application does solve the problem for a while until the same problem rises again.

in steps:

  1. Subscription seems to be online and everything seems normal
  2. No Updates are provided, despite that the PLC has update the subscribed field in the OPC Server
  3. Turning it on and off fixes the issue for about 30-45min.

Desperately need help on this issue and are also willing to pay for provided support.

Thanks alot for any help.

Expected Behavior

Subscription should update everytime that the PLC provids a new value in the subscribed field

Steps To Reproduce

  1. Install App in production enviroment
  2. Start the process with Prod PLC
  3. sometime the system wont carry on working, since the new values from PLC are missing (because subscription doesn't work anymore)

Environment

- OS:Windows Server
- Environment: 
- Runtime: .NET 4.8
- Nuget Version:
- Component:
- Server: Windows Server
- Client: Serverside Issue (no User interface, since background process)

Anything else?

No response

mregen commented 3 months ago

hi @CryptoCodeing , please check with wireshark traces first if there is still publishrequest/response and the session and subscription keepalive is working. It can be many reasons.

CryptoCodeing commented 3 months ago

@mregen Thanks alot for the fast response, much appreciated! i will check and come back to you if needed.

mrsuciu commented 2 months ago

@CryptoCodeing Any new updates on this issue ?

CryptoCodeing commented 2 months ago

@mrsuciu Thanks for asking. We have found, that the issue was due to a architecture deficiency in our APP and has nothing to do with the OPC .NET Library.