Node-Red stops working when I want to connect to OPC UA

Hi Node-Red stops working when I want to connect to opc ua. Node-Red is installed on the plc axc f2152. when I press deploy, node-red stops booting. I need to remove node-red and reinstall to use node-red again.

Other node-red options do work fine. Only if I want to connect with OPC UA then it will crash. With node-red on my windows pc I can make a connection with opc ua and it works fine without problems. See photos for more information. the errors it gives: 3 Mar 10:19:42 - Error: cannot locate certificate file /opt/lib/node_modules/no de-red-contrib-iiot-opcua/node_modules/node-opcua-client/certificates/client_sel fsigned_cert_1024.pem
at OPCUAClientBase (/opt/lib/node_modules/node-red-contrib-iiot-opcua/node_m odules/node-opcua-client/src/client_base.js:71:15)
at new OPCUAClient (/opt/lib/node_modules/node-red-contrib-iiot-opcua/node_m odules/node-opcua-client/src/opcua_client.js:74:21)
at Timeout.i.connectOPCUAEndpoint [as _onTimeout] (/opt/lib/node_modules/nod e-red-contrib-iiot-opcua/opcuaIIoT/maps/opcua-iiot-connector.js:116:21)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) I have tried all these solutions without success: https://www.plcnext-community.net/en/discussions-2-offcanvas/opc-ua-connection-with-nodered-client-not-posible-with-fw-2019-3.html https://www.plcnext-community.net/en/hn-makers-blog/419-problems-with-node-red-opc-ua.html Best regards, Yalcin

Hello Yalcin, I had similar issues. What works for me is the following:

                                               1. update node-gyp  

`npm install -g [node-gyp@latest

](mailto:node-gyp@latest)`

                                               2. install node-red contrib-opcua (The contrib-iiot-opcua is not working well on my controller)  

`npm install -g node-red-contrib-opcua –unsafe-perm –build-from-source

`

Hi, I have the same problem in my controller, did you manage to solve it? I installed the contrib-iiot-opcua. I already tried the previous steps and I couln´t solve it. Best regards, Florindo Sousa

Hi everyone, installing OPC UA nodes for node-red seems to be a big problem due to several reasons. At the moment running node-red on balena-engine works best for me. Please have a look in the makers blog. There is a detailed description of how to install balena-engine. In the docker hub there is an image of node-red. Once you have installed that, the installation of OPCUA is pretty much straight forward. I have tried that on several controllers and had no problems.