-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConditionHandling stops working after some time #2288
Comments
Is it possible to use the |
Question: is the stop related to a reconnect? If you look through the logs to the point it stops, a reconnect should be apparent. |
@marcschier you are right. I see a reconnect in the log:
Since it is kind of a critical bug for us do you have an idea for a workaround until its fixed? |
After some investigation it turns out, that this happens only for subscriptions to an aggregation OPC UA server. The events comes from an aggregated OPC UA server. If the aggregation server is disconnected (shutdown, restart or connection interrupt) and the OpcPublisher reconnected, all subscriptions are reestablished but the conditions are missing. |
Looks like the issue is due to the condition timer staying disabled after reconnect, and the item in the subscription is in a state where it can not be reenabled again on the server, therefore the condition timer staying disabled, and even when the subscription is periodically resynchronized with the server (which should happen if there is one item not fully applied to the subscription). Right now I have no ready idea/fix here, nor good idea how to reproduce. The only thing that comes to mind is to recognize this in the watchdog condition and trigger the watchdog, a feature I would need to implement. When you go through the logs, and you find where the items are "added", can you pinpoint any errors that apply to this condition item? I would be happy to go through the logs, too, if you care to share them. You can share them through a gist you give me access to, or through MSFT support, or add a subset to the issue here. |
You were right. There is indeed an bad monitored node: 2024-07-16T07:38:01.407Z [24-07-16 07:38:01.4071] info: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaSubscription[0] This is the part of the log where the connection is lost and reconnected. |
…2297) * Update nuget dependencies * Publish Start/stop tests * Fix seconds heartbeat bug #2292 * Fix condition handling stop working and heartbeat timer stopping on reconnect #2288 * Add ipi option #2299 * Session per writer #2298 * Setting ska and slt options to default to 0 #2294 * Add auto calculation of qs. #2300 * Document browse path formats and fix issue when node id is missing #2296 * API and sample to dump session, channel and subscription diagnostics from server #2303 * Better validation for missing node id on inputs to the configuration API.
Describe the bug
We configure the ConditionHandling using following options.
This works after a fresh start of the OpcPublisher.
After some hours it stop sending ua-condtion messages even if there are retained events.
To Reproduce
Currently its not clear what causes the stop but it happens always after some hours.
Additional context
It seems, that the OpcPublisher 2.8.1 still worked without issues. At least with version 2.9.8 we see these issues. But it could be introduced in earlier versions.
The text was updated successfully, but these errors were encountered: