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.

disconnect and crash

More
31 Jul 2017 06:34 #5389 by support
Replied by support on topic disconnect and crash
Is this the same issue as reported yesterday www.opclabs.com/forum/ua-reading-writing-subscriptions/2233-...ion-acknowledgement-error#5387 , i.e. should the two forum topics be handled as one?

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

More
17 Jul 2017 15:53 #5368 by alr1976
Replied by alr1976 on topic disconnect and crash
Hi!

I have this errore and application doesn t update tag anymore

StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
Description: BadSecureChannelClosed
AdditionalInfo: >>> BadSecureChannelClosed
--- in Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
--- in Opc.Ua.Bindings.TcpClientChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.Bindings.TcpTransportChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.SessionClient.EndPublish(IAsyncResult result, UInt32& subscriptionId, UInt32Collection& availableSequenceNumbers, Boolean& moreNotifications, NotificationMessage& notificationMessage, StatusCodeCollection& results, DiagnosticInfoCollection& diagnosticInfos)
--- in Opc.Ua.Client.Session.OnPublishComplete(IAsyncResult result)
StatusCode: {BadTcpInternalError} = 0x80820000 (2156003328)
Description: Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato
StatusCode: {Bad} = 0x80000000 (2147483648)
Description: Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato
AdditionalInfo: >>> Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato
--- in System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
--- in Opc.Ua.Bindings.TcpMessageSocket.DoReadComplete(IAsyncResult result)
--- in Opc.Ua.Bindings.TcpMessageSocket.OnReadComplete(IAsyncResult result)
---- REMARKS ----
The server may have rejected the connection because it does not trust the client (e.g. certificate problem); check the diagnostics on the server side, if possible.

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

More
17 Jul 2017 10:56 #5366 by alr1976
Replied by alr1976 on topic disconnect and crash
Hi!

OPC UA doesn t retry to connect to server anymore...

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

More
17 Jul 2017 10:42 #5365 by support
Replied by support on topic disconnect and crash
I am sorry but I do not understand the nature of your issue.

Are just referring to warnings in the log entries, but nothing wrong goes in the API? You can safely ignore those.

Or, are you saying that you have done one of the suggestions (which one - (a) or (b)?), but you still get disconnections when you should not?

Or, maybe I understand the issue wrong from the beginning. I can see some errors that indicate problem with the connection. So, in fact, when you say "disconnect", you do not just mean disconnect (Which is generally normal and harmless), but you mean some error (and also a disconnection). If so, do you get some error/exception in the API, and what is the message and its details?

Which of the above are we dealing with?

I can see some suspicious log entries, especially these:
Warning: The OPC-UA subscription ID 4 publishing has stopped on the client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 10017 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.
 Warning: The OPC-UA subscription ID 4 publishing has halted on the client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 15024 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.
 Warning: Failed to perform subscription changes on the OPC-UA client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/". There were 0 removal(s), 0 modification(s) and 500 addition(s) to apply. Further such errors on this session will not be logged. BadRequestTimeout
 Warning: The OPC-UA client session with connect sequence number 2 on endpoint URL "opc.tcp://172.16.10.200: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'.

That looks like that the server stopped responding - which would be most likely either a problem on the server, or in the network.

Note: I will be out of office for 2 weeks from now, please be patient.

Regards

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

More
17 Jul 2017 10:12 #5364 by alr1976
Replied by alr1976 on topic disconnect and crash
Hi,

I have always disconnection and bad subscription. this is my debug(I have removed license info)

Information: OPC-UA engine application info 'Time' -> UtcNow: 07/17/2017 09:14:55, Now: 07/17/2017 11:14:55, TickCount: 40782609.
Information: OPC-UA engine application info 'AssemblyProperties' -> FullName: "OpcLabs.BaseLib, Version=5.41.524.1, Culture=neutral, PublicKeyToken=6faddca41dacb409", Location: "C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\OpcLabs.BaseLib\v4.0_5.41.524.1__6faddca41dacb409\OpcLabs.BaseLib.dll", GlobalAssemblyCache: True.
Information: OPC-UA engine application info 'Debugger' -> IsAttached: False.
Information: The OPC-UA engine has successfully connected to the underlying subsystems.
Information: Licensing for EasyUAClient component started, license serial number , issuer name "OPC Labs", subject name "".
Information: OPC-UA engine application info 'AssemblyAttributes' -> AssemblyConfiguration: "Release".
Information: OPC-UA engine application info 'AppDomain' -> Id: 1.
Information: The OPC-UA engine has determined the application configuration parameters as listed below.
ProductUri: urn:literal:string:BonattiVisual
Information: OPC-UA engine application info 'Clr' -> Version: '4.0.30319.42000', PtrSize: 4.
Information: OPC-UA engine application info 'Process' -> Is64BitProcess: False, CurrentDirectory: "C:\Progetti\BonattiOpcUaProject\Bonatti- Visual\Win32\Release", Id: 948.
Information: OPC-UA engine application info 'User' -> Name: "Alex76", DomainName: "UFFICIOALR", Interactive: True.
Information: The OPC-UA engine has determined the client certificate parameters as listed below.
SubjectName: BonattiVisual
ApplicationName: BonattiVisual
ApplicationUri: urn:UfficioAlr::1.0.0.0

Information: OPC-UA engine application info 'OSConfiguration' -> MachineName: "UFFICIOALR", SystemPageSize: 4096.
Information: OPC-UA engine application info 'OperatingSystem' -> VersionString: "Microsoft Windows NT 10.0.15063.0".
Information: OPC-UA engine application info 'Environment' -> Is64BitOperatingSystem: True, SystemDirectory: "C:\WINDOWS\system32".
Information: OPC-UA engine SDK configuration successfully provided by "OpcLabs.EasyOpc.UA.Toolkit.InternalSdkConfigurationProvider".
Information: OPC-UA engine application info 'Computer' -> ProcessorCount: 4.
Information: The OPC-UA engine is connecting to the underlying subsystems.
Information: The OPC-UA client session with connect sequence number 1 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: OPC-UA endpoint selection on discovery URL "opc.tcp://172.16.10.200:49320/" candidate report (4 entries) follows.
[0:Winner(1000+0), 1:EligibleNotAccepted(1000+0), 2:EligibleNotAccepted(1000+0), 3:EligibleNotAccepted(1000+0)].
Warning: The OPC-UA server endpoint URL "opc.tcp://DZ0343-5PC:49320" with security policy URI "opcfoundation.org/UA/SecurityPolicy#None" and transport policy URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary", selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/", has zero security level. Using this endpoint is not recommended and is only supported for backward compatibility. This happens when no other endpoints are available and eligible for selection.
Information: The OPC-UA client session with connect sequence number 1 has selected an OPC-UA endpoint for discovery URL "opc.tcp://172.16.10.200:49320/" with following parameters:
Endpoint URL "opc.tcp://172.16.10.200:49320/", message security mode 'None', security policy URI "opcfoundation.org/UA/SecurityPolicy#None", transport profile URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary".
Warning: The preliminary OPC-UA server endpoint URL selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/" differs in host name or port number from the discovery endpoint. The original endpoint URL "opc.tcp://DZ0343-5PC:49320" has been replaced by "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 1 user token selection on endpoint URL "opc.tcp://172.16.10.200:49320/" candidate report (2 entries) follows.
[0:Winner(""), 1:ValidNotEligible(NotApplicable("docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"))].
Warning: The server certificate failed validation with error code 0x801A0000 while establishing OPC-UA client session to endpoint URL "opc.tcp://172.16.10.200:49320/".
BadCertificateUntrusted 'Certificate is not trusted.
SubjectName: CN=KEPServerEX/UA Server, O=Microsoft, C=US, DC=DZ0343-PC
IssuerName: CN=KEPServerEX/UA Server, O=Microsoft, C=US, DC=DZ0343-PC'
SuccessAudit: The server certificate has been accepted for the OPC-UA client session to endpoint URL "opc.tcp://172.16.10.200:49320/" by a fallback method.
Certificate information: [Subject]
CN=KEPServerEX/UA Server, O=Microsoft, C=US, DC=DZ0343-PC

[Issuer]
CN=KEPServerEX/UA Server, O=Microsoft, C=US, DC=DZ0343-PC

[Serial Number]
F588B48A

[Not Before]
14/12/2016 10:57:40

[Not After]
12/12/2026 10:57:40

[Thumbprint]
A9EE407E047DFF9C65AC4463A511F094C80F58FB

Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Information: The OPC-UA client session with connect sequence number 1 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=9fc9dac9-af4f-4fe5-8deb-0b7a1f9d7b77".
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA subscription ID 32 publishing has stopped on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 9840 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.
Warning: The OPC-UA subscription ID 32 publishing has halted on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 14845 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.
Information: The OPC-UA subscription ID 32 publishing has recovered on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/". It has been stopped for 13078 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has reported a subscription acknowledgement error with code 0x807A0000 for subscription ID 31 and sequence number 1. Further subscription acknowledgement errors with this code on this session will not be logged.
Operation result: BadSequenceNumberUnknown.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has reported a subscription acknowledgement error with code 0x80280000 for subscription ID 32 and sequence number 5. Further subscription acknowledgement errors with this code on this session will not be logged.
Operation result: BadSubscriptionIdInvalid.
Warning: The OPC-UA client session with connect sequence number 1 on endpoint URL "opc.tcp://172.16.10.200:49320/" has encountered a publish error with code 0x80020000 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: BadInternalError 'BadInternalError'.
Warning: The OPC-UA client session with connect sequence number 1 on endpoint URL "opc.tcp://172.16.10.200:49320/" has encountered a publish error with code 0x80860000 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: BadSecureChannelClosed 'BadSecureChannelClosed'.
Information: The OPC-UA client session with connect sequence number 1 is disconnecting from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: Failed to close the OPC-UA client session (with connect sequence number 1) to endpoint URL "opc.tcp://172.16.10.200:49320/". This error is generally ignored.
BadSessionIdInvalid
Information: The OPC-UA client session with connect sequence number 1 has disconnected from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42349109 and will retry in 10000 milliseconds.
Warning: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://172.16.10.200:49320/" is in failure. Further such warnings on this session will not be logged.
OPC-UA service result - An error specific to OPC-UA service occurred.
---- SERVICE RESULT ----
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
Description: BadSecureChannelClosed
AdditionalInfo: >>> BadSecureChannelClosed
--- in Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
--- in Opc.Ua.Bindings.TcpClientChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.Bindings.TcpTransportChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.SessionClient.EndPublish(IAsyncResult result, UInt32& subscriptionId, UInt32Collection& availableSequenceNumbers, Boolean& moreNotifications, NotificationMessage& notificationMessage, StatusCodeCollection& results, DiagnosticInfoCollection& diagnosticInfos)
--- in Opc.Ua.Client.Session.OnPublishComplete(IAsyncResult result)
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
---- REMARKS ----
The server may have rejected the connection because it does not trust the client (e.g. certificate problem); check the diagnostics on the server side, if possible.
A possible cause of this error could also be that the OPC-UA server is not running, or that it has rejected the connection due to security reasons.

Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42350984 and will retry in 10000 milliseconds.
Information: The OPC-UA client session with connect sequence number 2 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: OPC-UA endpoint selection on discovery URL "opc.tcp://172.16.10.200:49320/" candidate report (4 entries) follows.
[0:Winner(1000+0), 1:EligibleNotAccepted(1000+0), 2:EligibleNotAccepted(1000+0), 3:EligibleNotAccepted(1000+0)].
Warning: The OPC-UA server endpoint URL "opc.tcp://DZ0343-5PC:49320" with security policy URI "opcfoundation.org/UA/SecurityPolicy#None" and transport policy URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary", selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/", has zero security level. Using this endpoint is not recommended and is only supported for backward compatibility. This happens when no other endpoints are available and eligible for selection.
Warning: The preliminary OPC-UA server endpoint URL selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/" differs in host name or port number from the discovery endpoint. The original endpoint URL "opc.tcp://DZ0343-5PC:49320" has been replaced by "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 2 has selected an OPC-UA endpoint for discovery URL "opc.tcp://172.16.10.200:49320/" with following parameters:
Endpoint URL "opc.tcp://172.16.10.200:49320/", message security mode 'None', security policy URI "opcfoundation.org/UA/SecurityPolicy#None", transport profile URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary".
Information: The OPC-UA client session with connect sequence number 2 user token selection on endpoint URL "opc.tcp://172.16.10.200:49320/" candidate report (2 entries) follows.
[0:Winner(""), 1:ValidNotEligible(NotApplicable("docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"))].
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Information: The OPC-UA client session with connect sequence number 2 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=5d487830-a1a5-4bba-9728-72fc5c2753af".
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA subscription ID 4 publishing has stopped on the client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 10017 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.
Warning: The OPC-UA subscription ID 4 publishing has halted on the client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 15024 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.
Warning: Failed to perform subscription changes on the OPC-UA client session with connect sequence number 2 to endpoint URL "opc.tcp://172.16.10.200:49320/". There were 0 removal(s), 0 modification(s) and 500 addition(s) to apply. Further such errors on this session will not be logged. BadRequestTimeout
Warning: The OPC-UA client session with connect sequence number 2 on endpoint URL "opc.tcp://172.16.10.200: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'.
Information: The OPC-UA client session with connect sequence number 2 is disconnecting from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42629343 and will retry in 10000 milliseconds.
Warning: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://172.16.10.200:49320/" is in failure. Further such warnings on this session will not be logged.
Publishing on all (2) subscription(s) has halted. Something is seriously wrong with the OPC-UA session.
Information: The OPC-UA client session with connect sequence number 2 has disconnected from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42630734 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42633281 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42634750 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42636046 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42637281 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42638671 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42640062 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42641359 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42642640 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42644031 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42645328 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42646593 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42647921 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42649218 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42650453 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42651765 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42653078 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42654437 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42655750 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42656953 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42658234 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42659515 and will retry in 10000 milliseconds.
Information: The OPC-UA client session with connect sequence number 3 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: OPC-UA endpoint selection on discovery URL "opc.tcp://172.16.10.200:49320/" candidate report (4 entries) follows.
[0:Winner(1000+0), 1:EligibleNotAccepted(1000+0), 2:EligibleNotAccepted(1000+0), 3:EligibleNotAccepted(1000+0)].
Warning: The OPC-UA server endpoint URL "opc.tcp://DZ0343-5PC:49320" with security policy URI "opcfoundation.org/UA/SecurityPolicy#None" and transport policy URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary", selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/", has zero security level. Using this endpoint is not recommended and is only supported for backward compatibility. This happens when no other endpoints are available and eligible for selection.
Warning: The preliminary OPC-UA server endpoint URL selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/" differs in host name or port number from the discovery endpoint. The original endpoint URL "opc.tcp://DZ0343-5PC:49320" has been replaced by "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 3 has selected an OPC-UA endpoint for discovery URL "opc.tcp://172.16.10.200:49320/" with following parameters:
Endpoint URL "opc.tcp://172.16.10.200:49320/", message security mode 'None', security policy URI "opcfoundation.org/UA/SecurityPolicy#None", transport profile URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary".
Information: The OPC-UA client session with connect sequence number 3 user token selection on endpoint URL "opc.tcp://172.16.10.200:49320/" candidate report (2 entries) follows.
[0:Winner(""), 1:ValidNotEligible(NotApplicable("docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"))].
Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Information: The OPC-UA client session with connect sequence number 3 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=b7cb3029-25a5-4780-9b10-f914a5c95640".
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA subscription ID 7 publishing has stopped on the client session with connect sequence number 3 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 10021 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.
Warning: The OPC-UA subscription ID 7 publishing has halted on the client session with connect sequence number 3 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 15034 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.
Warning: Failed to perform subscription changes on the OPC-UA client session with connect sequence number 3 to endpoint URL "opc.tcp://172.16.10.200:49320/". There were 0 removal(s), 0 modification(s) and 500 addition(s) to apply. Further such errors on this session will not be logged. BadRequestTimeout
Warning: The OPC-UA client session with connect sequence number 3 on endpoint URL "opc.tcp://172.16.10.200: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'.
Information: The OPC-UA client session with connect sequence number 3 is disconnecting from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 3 has disconnected from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42929671 and will retry in 10000 milliseconds.
Warning: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://172.16.10.200:49320/" is in failure. Further such warnings on this session will not be logged.
Publishing on all (2) subscription(s) has halted. Something is seriously wrong with the OPC-UA session.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42930984 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42933609 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42934843 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42936125 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42937390 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42938609 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42939859 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42941140 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42942718 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42943921 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42945203 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42946437 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42947734 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42949500 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42951468 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42953562 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42955875 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42957734 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42958890 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42960187 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42961437 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42962640 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 42963937 and will retry in 10000 milliseconds.
Information: The OPC-UA client session with connect sequence number 4 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 4 has selected an OPC-UA endpoint for discovery URL "opc.tcp://172.16.10.200:49320/" with following parameters:
Endpoint URL "opc.tcp://172.16.10.200:49320/", message security mode 'None', security policy URI "opcfoundation.org/UA/SecurityPolicy#None", transport profile URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary".
Information: OPC-UA endpoint selection on discovery URL "opc.tcp://172.16.10.200:49320/" candidate report (4 entries) follows.
[0:Winner(1000+0), 1:EligibleNotAccepted(1000+0), 2:EligibleNotAccepted(1000+0), 3:EligibleNotAccepted(1000+0)].
Warning: The preliminary OPC-UA server endpoint URL selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/" differs in host name or port number from the discovery endpoint. The original endpoint URL "opc.tcp://DZ0343-5PC:49320" has been replaced by "opc.tcp://172.16.10.200:49320/".
Warning: The OPC-UA server endpoint URL "opc.tcp://DZ0343-5PC:49320" with security policy URI "opcfoundation.org/UA/SecurityPolicy#None" and transport policy URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary", selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/", has zero security level. Using this endpoint is not recommended and is only supported for backward compatibility. This happens when no other endpoints are available and eligible for selection.
Information: The OPC-UA client session with connect sequence number 4 user token selection on endpoint URL "opc.tcp://172.16.10.200:49320/" candidate report (2 entries) follows.
[0:Winner(""), 1:ValidNotEligible(NotApplicable("docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"))].
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Information: The OPC-UA client session with connect sequence number 4 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=04ca171e-f367-49b1-831d-c5432f34123e".
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has reported a subscription acknowledgement error with code 0x807A0000 for subscription ID 10 and sequence number 1. Further subscription acknowledgement errors with this code on this session will not be logged.
Operation result: BadSequenceNumberUnknown.
Warning: The OPC-UA client session with connect sequence number 4 on endpoint URL "opc.tcp://172.16.10.200:49320/" has encountered a publish error with code 0x80020000 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: BadInternalError 'BadInternalError'.
Warning: The OPC-UA client session with connect sequence number 4 on endpoint URL "opc.tcp://172.16.10.200:49320/" has encountered a publish error with code 0x80860000 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: BadSecureChannelClosed 'BadSecureChannelClosed'.
Information: The OPC-UA client session with connect sequence number 4 is disconnecting from endpoint URL "opc.tcp://172.16.10.200:49320/".
Error: INTERNAL ERROR. The OPC-UA engine might be in an unstable state.
An exception of type 'System.ArgumentException' from source 'OpcLabs.BaseLib' has occurred in OPC-UA SDK callback 'Subscription.PublishStatusChanged'. The exception descend follows.
(1) {System.ArgumentException} OpcLabs.BaseLib(Requires) -> _sdkSubscription must not be null in OnPublishingStoppedChange when PublishingStopped.

Information: Failed to close the OPC-UA client session (with connect sequence number 4) to endpoint URL "opc.tcp://172.16.10.200:49320/". This error is generally ignored.
BadRequestTimeout
Information: The OPC-UA client session with connect sequence number 4 has disconnected from endpoint URL "opc.tcp://172.16.10.200:49320/".
Warning: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://172.16.10.200:49320/" is in failure. Further such warnings on this session will not be logged.
OPC-UA service result - An error specific to OPC-UA service occurred.
---- SERVICE RESULT ----
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
Description: BadSecureChannelClosed
AdditionalInfo: >>> BadSecureChannelClosed
--- in Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
--- in Opc.Ua.Bindings.TcpClientChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.Bindings.TcpTransportChannel.EndSendRequest(IAsyncResult result)
--- in Opc.Ua.SessionClient.EndPublish(IAsyncResult result, UInt32& subscriptionId, UInt32Collection& availableSequenceNumbers, Boolean& moreNotifications, NotificationMessage& notificationMessage, StatusCodeCollection& results, DiagnosticInfoCollection& diagnosticInfos)
--- in Opc.Ua.Client.Session.OnPublishComplete(IAsyncResult result)
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
---- REMARKS ----
The server may have rejected the connection because it does not trust the client (e.g. certificate problem); check the diagnostics on the server side, if possible.
A possible cause of this error could also be that the OPC-UA server is not running, or that it has rejected the connection due to security reasons.

Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 43308984 and will retry in 10000 milliseconds.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 43311203 and will retry in 10000 milliseconds.
Information: The OPC-UA client session with connect sequence number 5 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Warning: The OPC-UA client session with connect sequence number 5 failed to connect to endpoint URL "opc.tcp://172.16.10.200:49320/".
Error establishing a connection.
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 43336828 and will retry in 10000 milliseconds.
Warning: The status subscription for an OPC-UA session on endpoint URL "opc.tcp://172.16.10.200:49320/" is in failure. Further such warnings on this session will not be logged.
Error establishing a connection.
Information: The OPC-UA client session with connect sequence number 6 is connecting to endpoint URL "opc.tcp://172.16.10.200:49320/".
Warning: The OPC-UA server endpoint URL "opc.tcp://DZ0343-5PC:49320" with security policy URI "opcfoundation.org/UA/SecurityPolicy#None" and transport policy URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary", selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/", has zero security level. Using this endpoint is not recommended and is only supported for backward compatibility. This happens when no other endpoints are available and eligible for selection.
Information: The OPC-UA client session with connect sequence number 6 has selected an OPC-UA endpoint for discovery URL "opc.tcp://172.16.10.200:49320/" with following parameters:
Endpoint URL "opc.tcp://172.16.10.200:49320/", message security mode 'None', security policy URI "opcfoundation.org/UA/SecurityPolicy#None", transport profile URI "opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary".
Information: The OPC-UA client session with connect sequence number 6 user token selection on endpoint URL "opc.tcp://172.16.10.200:49320/" candidate report (2 entries) follows.
[0:Winner(""), 1:ValidNotEligible(NotApplicable("docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"))].
Information: OPC-UA endpoint selection on discovery URL "opc.tcp://172.16.10.200:49320/" candidate report (4 entries) follows.
[0:Winner(1000+0), 1:EligibleNotAccepted(1000+0), 2:EligibleNotAccepted(1000+0), 3:EligibleNotAccepted(1000+0)].
Warning: The preliminary OPC-UA server endpoint URL selected using discovery on endpoint URL "opc.tcp://172.16.10.200:49320/" differs in host name or port number from the discovery endpoint. The original endpoint URL "opc.tcp://DZ0343-5PC:49320" has been replaced by "opc.tcp://172.16.10.200:49320/".
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Information: The OPC-UA client session with connect sequence number 6 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=67d175c7-b686-4531-b8be-48574f13a123".
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has reported a subscription acknowledgement error with code 0x807A0000 for subscription ID 8 and sequence number 1. Further subscription acknowledgement errors with this code on this session will not be logged.
Operation result: BadSequenceNumberUnknown.

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

More
16 Jul 2017 06:18 #5361 by support
Replied by support on topic disconnect and crash
QuickOPC always disconnects after a configurable time when there is no need to be connected.
There is no way to control the connections and disconnections directly.

You can:

a) Increase the delay between the moment the connection becomes unused, and when QuickOPC disconnects it. The delay is in milliseconds and is in the .IsolatedParameters.SessionParameters.HoldPeriod property of the EasyUAClient object. You also need to set the .Isolated property to 'true'.

b) keep the connection open by a trick: if you subscribe to anything on the server you want to stay connected to, QuickOPC will try to maintain the connection until you unsubscribe.

Regards

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

More
16 Jul 2017 00:29 #5360 by alr1976
disconnect and crash was created by alr1976
Hi!

I m using delphi and i have more than 500 tags but when i connect with server i have always disconnect it. It possible to add timeout and how?

This is my log:


Information: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty list of software certificates.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" did not return a valid software certificate for product URI "urn:DZ0343-5PC:Kepware.KEPServerEX.V5:UA Server" listed in server endpoints. The server returned 0 software certificate(s) in total.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" returned an empty server signature.
Information: The OPC-UA client session with connect sequence number 1 has successfully connected to endpoint URL "opc.tcp://172.16.10.200:49320/". The server-assigned session Id is "ns=1;g=ab1608c0-dc0d-4a6f-9f51-c2e616361d9f".
Information: When creating or modifying a monitored item, the OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has revised the sampling interval to 5000 milliseconds; the requested sampling interval was 15000 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA subscription ID 68 publishing has stopped on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 9760 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period will be 5000 milliseconds. Further such errors on this session will not be logged.
Warning: The OPC-UA subscription ID 68 publishing has halted on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/" for approximate current duration of 14809 milliseconds. The current keep-alive count is 10, the current publishing interval is 500 milliseconds, and the probationary period was 5000 milliseconds. Further such errors on this session will not be logged.
Information: The OPC-UA subscription ID 68 publishing has recovered on the client session with connect sequence number 1 to endpoint URL "opc.tcp://172.16.10.200:49320/". It has been stopped for 7719 milliseconds. Further such warnings on this session will not be logged.
Warning: The OPC-UA server on endpoint URL "opc.tcp://172.16.10.200:49320/" has reported a subscription acknowledgement error with code 0x807A0000 for subscription ID 67 and sequence number 1. Further subscription acknowledgement errors with this code on this session will not be logged.
Operation result: BadSequenceNumberUnknown.
Information: The OPC-UA client session with connect sequence number 1 is disconnecting from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session with connect sequence number 1 has disconnected from endpoint URL "opc.tcp://172.16.10.200:49320/".
Information: The OPC-UA client session on endpoint URL "opc.tcp://172.16.10.200:49320/" failed at tick 175613937 and will retry in 10000 milliseconds.

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

Moderators: support
Time to create page: 0.263 seconds