Client dealing with frozen server

26 views
Skip to first unread message

Rudolf

unread,
Apr 14, 2023, 9:49:24 AM4/14/23
to open62541
Hi,

I'm writing an open62541-client (1.3.4) and I'm testing the inactivity-handling.
If I freeze the server app (ctrl+z) and resume it later, it won't recover properly.

If I understand the docs properly there's nothing my client code is supposed to do as long as the connectionstatus is UA_STATUSCODE_GOOD, since the stack has still hope to recover.

The server shows that the session can not be found / has timed out.
[2023-04-14 13:45:32.282 (UTC+0000)] info/server        AccessControl: Anonymous login is enabled
[2023-04-14 13:45:32.282 (UTC+0000)] info/server        AccessControl: x509 certificate user authentication is enabled
[2023-04-14 13:45:32.282 (UTC+0000)] warn/server        Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2023-04-14 13:45:32.282 (UTC+0000)] warn/userland      AcceptAll Certificate Verification. Any remote certificate will be accepted.
[2023-04-14 13:45:32.282 (UTC+0000)] info/userland      AccessControl enabled.
[2023-04-14 13:45:32.282 (UTC+0000)] warn/server        AccessControl: Unconfigured AccessControl. Users have all permissions.
[2023-04-14 13:45:32.282 (UTC+0000)] info/server        AccessControl: x509 certificate user authentication is enabled
[2023-04-14 13:45:32.282 (UTC+0000)] warn/server        Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2023-04-14 13:45:32.283 (UTC+0000)] info/network       TCP network layer listening on opc.tcp://vocamdev.vocam:4840/
[2023-04-14 13:45:32.590 (UTC+0000)] info/network       Connection 7 | New connection over TCP from 127.0.0.1
[2023-04-14 13:45:32.591 (UTC+0000)] info/channel       Connection 7 | SecureChannel 1 | SecureChannel opened with SecurityPolicy http://opcfoundation.org/UA/SecurityPolicy#None and a revised lifetime of 120.00s
[2023-04-14 13:45:32.591 (UTC+0000)] info/session       SecureChannel 1 | Session "" | Session created
[2023-04-14 13:45:32.592 (UTC+0000)] info/session       SecureChannel 1 | Session "" | ActivateSession: Session activated
[2023-04-14 13:45:32.593 (UTC+0000)] info/session       SecureChannel 1 | Session "" | Subscription 1 | Subscription created (Publishing interval 500.00ms, max 1000 notifications per publish)
[2023-04-14 13:45:32.593 (UTC+0000)] info/session       SecureChannel 1 | Session "" | Subscription 1 | MonitoredItem 1 | Created the MonitoredItem (Sampling Interval: 250.00ms, Queue Size: 1)
^Z
[1]+  Stopped                 cmake --build --preset=dev -t run-server-auth
bash-5.1# fg
cmake --build --preset=dev -t run-server-auth
[2023-04-14 13:45:42.193 (UTC+0000)] info/session       SecureChannel 1 | Session "" | Session has timed out
[2023-04-14 13:45:42.193 (UTC+0000)] info/session       SecureChannel 1 | Session "" | Subscription 1 | Subscription deleted
[2023-04-14 13:45:42.193 (UTC+0000)] info/server        Subscription 1 | MonitoredItem 1 | Deleting the MonitoredItem
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | ReadRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:42.646 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | PublishRequest refused without a valid session
[2023-04-14 13:45:43.147 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 1 | CloseSession: No Session activated to the SecureChannel
[2023-04-14 13:45:43.147 (UTC+0000)] info/channel       Connection 7 | SecureChannel 1 | CloseSecureChannel
[2023-04-14 13:45:43.147 (UTC+0000)] info/network       Connection 7 | Closed
[2023-04-14 13:45:44.148 (UTC+0000)] info/network       Connection 7 | New connection over TCP from 127.0.0.1
[2023-04-14 13:45:45.651 (UTC+0000)] info/channel       Connection 7 | SecureChannel 2 | SecureChannel opened with SecurityPolicy http://opcfoundation.org/UA/SecurityPolicy#None and a revised lifetime of 120.00s
[2023-04-14 13:45:46.653 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session created
[2023-04-14 13:45:47.653 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Client tries to use a session that has timed out
[2023-04-14 13:45:47.653 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 2 | ActivateSession: Session not found
[2023-04-14 13:45:48.154 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session created
[2023-04-14 13:45:49.155 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Client tries to use a session that has timed out
[2023-04-14 13:45:49.156 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 2 | ActivateSession: Session not found
[2023-04-14 13:45:49.657 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session created
[2023-04-14 13:45:50.658 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Client tries to use a session that has timed out
[2023-04-14 13:45:50.658 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 2 | ActivateSession: Session not found
[2023-04-14 13:45:51.159 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session created
[2023-04-14 13:45:52.160 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Client tries to use a session that has timed out
[2023-04-14 13:45:52.160 (UTC+0000)] warn/channel       Connection 7 | SecureChannel 2 | ActivateSession: Session not found
[2023-04-14 13:45:52.193 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session has timed out
[2023-04-14 13:45:52.193 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session has timed out
[2023-04-14 13:45:52.193 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session has timed out
[2023-04-14 13:45:52.193 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session has timed out
[2023-04-14 13:45:52.660 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session created
[2023-04-14 13:46:02.193 (UTC+0000)] info/session       SecureChannel 2 | Session "" | Session has timed out

The client detects that the session is invalid, but creating a new one isn't succesful

[2023-04-14 13:45:32.592] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:32.592] [info   ] OPCUA 5 A session with the server is activated
[2023-04-14 13:45:32.593] [info   ] OPCUA 5 Create subscription succeeded, id 1
[2023-04-14 13:45:32.594] [info   ] OPCUA 5 Monitoring UA_NS0ID_SERVER_SERVERSTATUS_CURRENTTIME', id 1
[2023-04-14 13:45:33.135] [info   ] OPCUA 5 date is: 14-04-2023 13:45:32.845
[2023-04-14 13:45:33.636] [info   ] OPCUA 5 date is: 14-04-2023 13:45:33.344
[2023-04-14 13:45:34.137] [info   ] OPCUA 5 date is: 14-04-2023 13:45:33.844
[2023-04-14 13:45:34.637] [info   ] OPCUA 5 date is: 14-04-2023 13:45:34.345
[2023-04-14 13:45:35.138] [info   ] OPCUA 5 date is: 14-04-2023 13:45:34.844
[2023-04-14 13:45:35.639] [info   ] OPCUA 5 date is: 14-04-2023 13:45:35.344
[2023-04-14 13:45:36.139] [info   ] OPCUA 5 date is: 14-04-2023 13:45:35.845
[2023-04-14 13:45:36.640] [info   ] OPCUA 5 date is: 14-04-2023 13:45:36.344
[2023-04-14 13:45:37.140] [info   ] OPCUA 5 date is: 14-04-2023 13:45:36.845
[2023-04-14 13:45:40.142] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:40.142] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:40.142] [info   ] OPCUA 5 date is: 14-04-2023 13:45:39.656
[2023-04-14 13:45:40.643] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:40.643] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:40.643] [info   ] OPCUA 5 date is: 14-04-2023 13:45:40.157
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.143] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.143] [info   ] OPCUA 5 date is: 14-04-2023 13:45:40.657
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:41.645] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:41.645] [info   ] OPCUA 5 date is: 14-04-2023 13:45:41.157
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.145] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.146] [info   ] OPCUA 5 date is: 14-04-2023 13:45:41.657
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionClosed
[2023-04-14 13:45:42.646] [info   ] OPCUA 5 date is: 14-04-2023 13:45:42.157
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadNoSubscription
[2023-04-14 13:45:42.646] [warning] OPCUA 4 Received Publish Response with code BadNoSubscription
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadNoSubscription
[2023-04-14 13:45:42.646] [warning] OPCUA 4 Received Publish Response with code BadNoSubscription
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadNoSubscription
[2023-04-14 13:45:42.646] [warning] OPCUA 4 Received Publish Response with code BadNoSubscription
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:42.646] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadNoSubscription
[2023-04-14 13:45:42.646] [warning] OPCUA 4 Received Publish Response with code BadNoSubscription
[2023-04-14 13:45:43.146] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:43.146] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:43.146] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:43.146] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:43.147] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:43.147] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:43.147] [info   ] OPCUA 5 Subscription Id 1 was deleted
[2023-04-14 13:45:43.147] [info   ] OPCUA 4 Client Status: ChannelState: Closed, SessionState: Closed, ConnectStatus: Good
[2023-04-14 13:45:43.147] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:43.147] [info   ] OPCUA 5 The client is disconnected
[2023-04-14 13:45:43.147] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:43.147] [warning] OPCUA 4 Received BadSessionIdInvalid
[2023-04-14 13:45:43.147] [warning] OPCUA 1 Connection 0 | SecureChannel 0 | Receiving the response failed with StatusCode BadInternalError
[2023-04-14 13:45:43.147] [warning] OPCUA 4 Received BadSessionIdInvalid
[2023-04-14 13:45:43.648] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:43.648] [info   ] OPCUA 5 The client is disconnected
[2023-04-14 13:45:43.648] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:44.649] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:44.649] [info   ] OPCUA 5 Waiting for ack
[2023-04-14 13:45:44.649] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:45.149] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:45.149] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:45.650] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:45.650] [info   ] OPCUA 5 Waiting for OPN Response
[2023-04-14 13:45:45.650] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:46.151] [info   ] OPCUA 1 Connection 26 | SecureChannel 2 | SecureChannel opened with SecurityPolicy http://opcfoundation.org/UA/SecurityPolicy#None and a revised lifetime of 120.00s
[2023-04-14 13:45:46.151] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Closed, ConnectStatus: Good
[2023-04-14 13:45:46.151] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:46.151] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:46.151] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:46.652] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:46.652] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:47.153] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Created, ConnectStatus: Good
[2023-04-14 13:45:47.153] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:47.153] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:47.653] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:47.653] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:48.154] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:48.154] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:48.154] [error  ] OPCUA 4 ActivateSession failed with error code BadSessionIdInvalid
[2023-04-14 13:45:48.154] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Closed, ConnectStatus: Good
[2023-04-14 13:45:48.154] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:48.154] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:48.154] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:48.154] [error  ] OPCUA 4 Session cannot be activated. Create a new Session.
[2023-04-14 13:45:48.154] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:48.154] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:48.655] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Created, ConnectStatus: Good
[2023-04-14 13:45:48.655] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:48.655] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:49.155] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:49.155] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:49.656] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:49.656] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:49.656] [error  ] OPCUA 4 ActivateSession failed with error code BadSessionIdInvalid
[2023-04-14 13:45:49.656] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Closed, ConnectStatus: Good
[2023-04-14 13:45:49.656] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:49.656] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:49.656] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:49.656] [error  ] OPCUA 4 Session cannot be activated. Create a new Session.
[2023-04-14 13:45:49.656] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:49.656] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:50.157] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Created, ConnectStatus: Good
[2023-04-14 13:45:50.157] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:50.157] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:50.658] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:50.658] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:51.158] [info   ] OPCUA 4 Received a ServiceFault response
[2023-04-14 13:45:51.158] [info   ] OPCUA 4 The ServiceResult has the StatusCode BadSessionIdInvalid
[2023-04-14 13:45:51.158] [error  ] OPCUA 4 ActivateSession failed with error code BadSessionIdInvalid
[2023-04-14 13:45:51.158] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Closed, ConnectStatus: Good
[2023-04-14 13:45:51.158] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:51.158] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 13:45:51.158] [info   ] OPCUA 5 Session disconnected
[2023-04-14 13:45:51.158] [error  ] OPCUA 4 Session cannot be activated. Create a new Session.
[2023-04-14 13:45:51.158] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 13:45:51.158] [info   ] OPCUA 5 A SecureChannel to the server is open


Is that related to this change, perhaps?
https://github.com/open62541/open62541/commit/b70378d5fde34328623cc25381ae8ff1219a6bbf

Julius Pfrommer

unread,
Apr 14, 2023, 11:33:09 AM4/14/23
to Rudolf, open62541
Hey there,

We improved the client logic on the master branch.
Thanks to the new EventLoop model.

The changes are pretty profound and cannot be backported to v1.3.

Is it possible for you to use the master branch?
The v1.4 release family will be cut from that in a few weeks.

Regards, Julius 
--
You received this message because you are subscribed to the Google Groups "open62541" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open62541+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open62541/4c27fe81-beab-4a91-a2f3-46313badbaf3n%40googlegroups.com.

Rudolf

unread,
Apr 17, 2023, 4:03:59 AM4/17/23
to open62541
Hey,

Thanks for the quick reply.
I tried the master branch, but I didn't see an improvement right away.

[2023-04-14 16:43:08.837] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 16:43:08.837] [info   ] OPCUA 4 Client Status: ChannelState: Open, SessionState: Activated, ConnectStatus: Good
[2023-04-14 16:43:08.837] [trace  ] void stateCallback(UA_Client*, UA_SecureChannelState, UA_SessionState, UA_StatusCode)
[2023-04-14 16:43:08.837] [info   ] OPCUA 5 A SecureChannel to the server is open
[2023-04-14 16:43:08.837] [info   ] OPCUA 5 A session with the server is activated
[2023-04-14 16:43:08.837] [error  ] OPCUA 7 Cannot run EventLoop from the run method itself
[2023-04-14 16:43:08.837] [warning] OPCUA 4 Request with unknown RequestId 8
[2023-04-14 16:43:08.837] [error  ] OPCUA 4 Processing the message returned the error code BadSecurityChecksFailed

"Cannot run EventLoop from the run method itself" might indicate I'm using the API incorrectly...
That's not unlikely, because I'm fairly new to open62541.
I need some more time to investigate to find my flaw or maybe I can come up with a minimal reproduction scenario.

Kind regards,
Rudolf

Op vrijdag 14 april 2023 om 17:33:09 UTC+2 schreef julius....@gmail.com:
To unsubscribe from this group and stop receiving emails from it, send an email to open62541+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages