-
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
Item was disposed or moved to another subscription #2317
Comments
@steffenbeermann - please could you try mcr.microsoft.com/iotedge/opc-publisher:2.9.11-preview1, which should address this issue. |
Background - this happens during subscription reset where the old monitored items are not properly removed from the subscription and then remain in a disposed state. Data should flow, but heartbeats and other timers are off and not firing anymore. |
Thank you for the quick response! To understand the issue: Why are the subscriptions reset in the first place? I noticed that every hour the subscriptions were recreated, eg: In our case, we sadly hadn't any dataflow anymore for the affected subscriptions? |
The message you are seeing there happens as a result of a) when a session recovery/reconnect sequence was run and produced either a new session or the old one. Then the subscription state in the session is synchronized which if it is new creates the monitored items - or - b) the subscription itself ran into an issue e.g. the subscription lifetime expired on the server and status change notification returned, or keep alives were missing on our side - then the subscription in a running session is reset (closed and recreated). Then the items should have been recreated, but the bug we had was that the existing (now disposed items) are not even touched anymore. But they are reported now as "bad". We fixed this in 2.9.11. This should all be prominent in the log. If you can try 2.9.11-preview1 that would help me a lot. You also see this message you pasted if applying one or more monitored items failed before or on the general management timer. Typically nothing is done to the subscription or items at this point though if all is working fine. |
Thanks for the clarification! |
It seems like 3.9.11-preview11 helped with the issue of
|
Thank you for the details @steffenbeermann, when the subscription is STOPPED, do you see session keep alive timeout logs as well (this is the way in OPC UA connection drops are discovered). If the channel is closed, the session keep alive check should fail and trigger a reconnect. The keep alive error and reconnect should be visible in the logs,
If not it would be great if you could share (e.g., via github gist or support team the full logs). Another important diagnostics info is the number of publish requests in progress, it is one of the metrics at the top of the diagnostic output to console (if --di is not disabled) like this:
What server is this connected to? |
We have two Publisher Modules that connect to the same endpoints. In one of them I could not find the In the second module log I found some, here are the logs related to the failed endpoint and I maybe found some usefull logs: Because there are some additional informations like node names and so on, I need to check if I can upload the full logs. I will give an update on monday. I could not find the diagnostic info, even the start up is with '--dii==3600'? But we collect all metrics via the metric collector. For It connects to an OPC UA Server that is provided by a power plant provider. Sadly I don't know which kind of software they are using to provide the OPC UA Server. |
You can set --di=60 and there will be metrics printed to the console every minute. But it is ok what you are doing. I could not see anything concerning above. Don't share - it is ok. What is likely the key piece is
You could test |
okay, I will test 2.9.11-preview2. But over the weekend it ran without problems with 2.9.11-preview1 as well. |
Thanks for testing and confirming, I will close, please let me know if you encounter issues by either commenting here or open a new issue. |
Describe the bug
We have a OPC Publisher with about 24 Endpoints with around 2000-3000 Nodes each. We just updates to version 3.9.10 and facing the issue that after a couple of hours the OPC Publisher removed almost all nodes of the endpoints with the logs stating:
24-08-07 15:35:27.9796] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=...' with server id 1 (created): Item was disposed or moved to another subscription
We can see this error message a lot in the logs, since the issue occurred it was written for the same nodes every hour.
This affected 22 of the endpoints where for most of them, all nodes where disposed and for some only about 60% were disposed.
We athough noticed this happend in two waves. Yesterday at 17:30 6 Endpoints went down and after about 2 hours the other 16 were affected.
After restarting the publisher, all connections were established again and working fine for now. It seems that this is not an issue with the OPC Servers or Nodes because with a restart everything works fine again
To Reproduce
Publisher Config:
{ "Hostname": "publisher_axh_active", "Cmd": [ "--cl=5", "--cf", "--aa", "--pf=/mount/publishednodes.json", "--PkiRootPath=/mount/pki", "--bs=100", "--di=3600" ], "HostConfig": { "Binds": [ "/home/edge/OPCPublisherMount_Active:/mount" ] } }
Version used: 3.9.10
Expected behavior
The nodes are not disposed.
Additional context
Part of the logs:
em.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA700.in.betriebsart.value' with server id 205 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_MELDEKONTAKT.1_3MFB40_EA801_YA03.in.kontakt.value' with server id 206 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA801_XM54.in.kontakt.value' with server id 207 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_MELDEKONTAKT.1_3MFB40_EA802_YA03.in.kontakt.value' with server id 208 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA802_XM54.in.kontakt.value' with server id 209 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_MELDEKONTAKT.1_3MFB40_EA811_YA03.in.kontakt.value' with server id 210 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA811_XM54.in.kontakt.value' with server id 211 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_MELDEKONTAKT.1_3MFB40_EA812_YA03.in.kontakt.value' with server id 212 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA812_XM54.in.kontakt.value' with server id 213 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA851_XM54.in.kontakt.value' with server id 214 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA852_XM54.in.kontakt.value' with server id 215 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA862_XM54.in.kontakt.value' with server id 216 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA861_XM54.in.kontakt.value' with server id 217 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA871_XM54.in.kontakt.value' with server id 218 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_ALARMKONTAKT.1_3MFB40_EA872_XM54.in.kontakt.value' with server id 219 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA710.in.zustand0.value' with server id 220 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA710.in.zustand1.value' with server id 221 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA710.in.aktive_bedienebene.value' with server id 222 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA710.in.modus.value' with server id 223 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_SOLLWERT.1_3MFB41_AP100_ZE11.out.sollwert.value' with server id 224 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_SOLLWERT.1_3MFB41_AP200_ZE11.out.sollwert.value' with server id 225 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA711.in.zustand0.value' with server id 226 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_AGGREGAT_NL.1_3MFB40_EA711.in.zustand1.value' with server id 227 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.in.ausfall.value' with server id 228 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.in.minalarm.value' with server id 229 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.out.gw_minalarm.value' with server id 230 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.in.tief.value' with server id 231 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.out.gw_tief.value' with server id 232 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CL001_XQ01.in.wert.value' with server id 233 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s={827D3700-C4FF-41A9-884F-B49DA06097ED}' with server id 1 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CT001_XQ01.in.ausfall.value' with server id 234 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CT001_XQ01.in.meldung1.value' with server id 235 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s={82218900-CF04-457D-89AA-4658952B6D64}' with server id 2 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s={101CE900-4D46-4D4B-A828-84D575C85DEF}' with server id 3 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s={D3E10101-CD29-445D-89EB-3D5089A7F197}' with server id 4 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9835] fail: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaMonitoredItem.DataChange[0] Data Item 'ns=2;s=RO_KW_MESSWERT.1_3MFB41_CT001_XQ01.in.meldung2.value' with server id 236 (created): Item was disposed or moved to another subscription [24-08-07 15:35:27.9847] info: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaSubscription[0] 1fdf3dbee7ab3b7700eb7c690aab5a41af407714_0:3762709867 - Now monitoring 155 nodes: # Good/Bad: 155/0 # Reporting: 155 # Sampling: 0 # Disabled: 0 # Not applied: 0 # Removed: 0 [24-08-07 15:35:27.9849] info: Azure.IIoT.OpcUa.Publisher.Stack.Services.OpcUaSubscription[0] 989ca92c8a770ee4b215750a5e242542683c1ca9_0:3762709869 - Now monitoring 52 nodes: # Good/Bad: 52/0 # Reporting: 52 # Sampling: 0 # Disabled: 0 # Not applied: 0 # Removed: 0
The text was updated successfully, but these errors were encountered: