Siemens WinCC OPCUA Error

Hi, I’m trying to connect Ignition’s UA client to a WinCC UA server running on the same machine. I can browse the endpoint, but when I finish the connection setup it faults and returns the following error:

UaException: status=Bad_ConnectionClosed, message=connection closed
at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler.channelInactive(
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(
at io.netty.handler.codec.ByteToMessageCodec.channelInactive(
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(
at io.netty.util.concurrent.SingleThreadEventExecutor$
at Source)

7.9.3 (b2017060210)
Oracle Corporation 1.8.0_131

Any help on this is appreciated.

All this error is showing is that the other end closed the connection.

Are you connecting with security enabled? If so, you may need to import and trust Ignition’s UA client certificate in the server somehow.

I kind of figured that’s all it was telling me. Though I was hoping for a reason somewhere in there. I’ve uploaded the ignition certificate into the OPC UA trusted list, but I’ll go double check all of that. Thanks for the quick reply.

A Wireshark capture may help figure out what’s going on as well.

1 Like