-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Type of issue
- Bug
- Enhancement
- Compliance
- Question
- Help wanted
Current Behavior
I reported this issue before and at the time it was first confirmed and later resolved as not repo. The behavior is the same as before: The server disconnects the client the first time the security token is renewed. Subsequent reconnection attempts of the client are rejected.
Expected Behavior
Server successfully renews the security token and the client maintains its connection.
Steps To Reproduce
- Clone the repo https://github.com/digitaltwinconsortium/ManufacturingOntologies
- Open the "Station" solution in Visual Studio and update the OPC UA sack NuGets to the latest ones.
- Compile and run at least 4 instances of the station, 3 configured in "Station" mode ("assembly", "test" and "packaging") and one configured in "MES" mode.
- Let the MES connect to the 3 Stations and wait ~45 minutes while checking the logs.
- You will eventually see the error:
Id: BadNotConnected
Description: BadNotConnected
BadNotConnected
--- at Opc.Ua.Bindings.UaSCUaBinaryClientChannel.QueueConnectOperation(WriteOperation operation, Int32 timeout, IServiceRequest request)
--- at Opc.Ua.Client.Session.BeginPublish(Int32 timeout)
========================================
OPC UA Stack: 12/11/2025 15:44:39.190 Unexpected error sending publish request.
BadNotConnected 'BadNotConnected'
Environment
- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:Anything else?
We really need to start running long running tests as part of the normal CI/CD pipeline fo the stack to avoid customers finding these issues!