cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Node-RED OPC UA Invalid Endpoint

Node-RED OPC UA Invalid Endpoint

Sgilk
Contributor

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

  • Firmware 1.20
  • OPC UA Server 1.20
  • Node-RED 1.20
  • node-red-contrib-opcua 0.2.281 & 0.2.309 neither work

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.

2 REPLIES 2

CodeShepherd
Community Moderator
Community Moderator

We found 2 different topics for this 3rd party palette node-red-contrib-opcua:

  1. There is a problem in the client itself from version 0.2.310 on see this github issue.
  2. There is a problem in the nodejs base lib in versions 18.17.0 and also nodejs 20.04 see this github issue.

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.

@CodeShepherd  @Sgilk i test for you tomorrow guyz 😉

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist