FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-20-2023 03:01 PM
I am recieving an "Invalid endpoint, check that server has security policy" error when attempting to connect to the ctrlX CORE OPC UA server via Node-RED client (node-red-contrib-opcua). I am not getting a rejected certificate in the OPC UA server either. I am able to connect to the server from UA Expert client.
Versions
I verified the same process works with firmware 1.14, OPC UA server 1.14 and Node-RED 1.14 along with node-red-contrib-opcua 0.2.281.
Node-RED snap logs
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19:26:49.155Z :client_base_impl :531 Inner create secure channel has failed ClientTCP_transport3: socket has been disconnected by third party
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: Client connect error: The connection may have been rejected by server,
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: Err = (ClientTCP_transport3: socket has been disconnected by third party)
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [warn] [OpcUa-Client:9670c3bad02b88ab] OpcUaClientNode: Case A: Endpoint does not contain, 1==None 2==Sign 3==Sign&Encrypt, using securityMode: [3]
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [warn] [OpcUa-Client:9670c3bad02b88ab] OpcUaClientNode: using securityPolicy: ["http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256"]
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [warn] [OpcUa-Client:9670c3bad02b88ab] OpcUaClientNode: Case B: UserName & password does not match to server (needed by Sign or SignAndEncrypt), check username: boschrexroth and password: boschrexroth
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [warn] [OpcUa-Client:9670c3bad02b88ab] OpcUaClientNode: Case C: With Sign you cannot use SecurityPolicy None!!
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [warn] [OpcUa-Client:9670c3bad02b88ab] OpcUaClientNode: Invalid endpoint parameters:
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [error] [OpcUa-Client:9670c3bad02b88ab] Client node error on: error: ["Wrong endpoint parameters: {\"id\":\"ae2fdf6a48217315\",\"type\":\"OpcUa-Endpoint\",\"_closeCallbacks\":[],\"_inputCallback\":null,\"_inputCallbacks\":null,\"wires\":[],\"_wireCount\":0,\"credentials\":{\"user\":\"boschrexroth\",\"password\":\"boschrexroth\"},\"endpoint\":\"opc.tcp://192.168.1.100:4840\",\"securityPolicy\":\"Basic256Sha256\",\"securityMode\":\"SignAndEncrypt\",\"login\":true,\"none\":false,\"usercert\":false,\"userCertificate\":\"\",\"userPrivatekey\":\"\",\"user\":\"boschrexroth\",\"password\":\"boschrexroth\"}"]
2023-07-19T14:26:49-05:00 ctrlx-node-red.node-red[3319]: 19 Jul 14:26:49 - [error] [OpcUa-Client:9670c3bad02b88ab] Invalid endpoint
This seems to be an incompatability with the node-opcua library used in node-red-contrib-opcua and our OPC UA Server. I am not getting any logs from the OPC UA Server.
Solved! Go to Solution.
08-25-2023 04:49 PM
We found 2 different topics for this 3rd party palette node-red-contrib-opcua:
You can try to use ctrlX CORE Node-RED app in version 1.18 (including nodejs 16.18.1 ) in combination with node-red-contrib-opcua palette in version 0.2.309. Feel free to tell us if it works this way.
08-29-2023 04:46 PM
@CodeShepherd @Sgilk i test for you tomorrow guyz 😉