Troubleshooting
Why Node-RED OPC UA deploy fails: node-opcua-client not found
Short answer
The error means the active Node-RED package tree lacks node-opcua-client where node-red-contrib-opcua expects it, so the flow fails at deploy, before any connection attempt. In the reported case on firmware 2020.6.1, reinstalling version 0.2.89 changed nothing; moving Node-RED from the AppStore install into a balena-engine container fixed it.

On this page
- What does the get-installed-path module not found error mean?
- Is the missing node-opcua-client an endpoint, certificate or network fault?
- Why does reinstalling node-red-contrib-opcua not fix the deploy?
- Which Node-RED installation actually works on the controller?
- How do you move the flows into a balena-engine container?
- What do you verify after the redeploy?
- Why does the firewall page show only a spinning circle after reboot?
- When do you stop and escalate to the controller vendor?
- Questions asked
Your OPC UA flow fails at deploy because the running Node-RED cannot resolve node-opcua-client inside its own package tree: the message is a module-resolution failure on the controller's disk, not a network, endpoint or certificate problem. In the reported case, node-red-contrib-opcua 0.2.89 installed through the CLI into an AppStore Node-RED on a PLCnext controller with firmware 2020.6.1 kept failing, and repeating the install changed nothing. The repair that worked was to retire the AppStore deployment and run Node-RED as a balena-engine container, where packages and flows installed normally.
What does the get-installed-path module not found error mean? #
It means Node-RED loaded your OPC UA palette package but could not find that package's own client module on disk, a resolution failure inside the local installation tree that stops the deploy before any server is contacted. The message from the reported deployment is:
Error: get-installed-path: module not found "node-opcua-client" in path /opt/plcnext/appshome/data/60002172000051/lib/node_modules/node-red-contrib-opcua/node-opcua-client
Worked example, that path decomposed as the failing lookup saw it:
/opt/plcnext/appshome/data/60002172000051is the data directory of the AppStore app that carried Node-RED; the long number is that app's identifier in the report.lib/node_modulesis that app's private package tree, the one this Node-RED resolves from.node-red-contrib-opcuais the OPC UA palette package, and it is present.node-opcua-clientis the client module the package expects to find inside itself, and it is absent, so the deploy stops.
The lookup routine reports the exact location it searched, and the location it names sits inside the OPC UA package itself. Because the lookup never leaves the controller's disk, no endpoint setting, certificate or firewall rule can change its outcome; the repair has to change the package tree the active runtime resolves from.
Is the missing node-opcua-client an endpoint, certificate or network fault? #
No. Endpoint, routing, certificate and permission faults are reported after a deploy succeeds, at connect time, with messages that name a URL, a certificate file or a timeout; this error names a module path on the controller itself. Keep the cases apart by what the message names:
- An OPC UA client that fails on an endpoint URL mismatch reports a connect-time error against a reachable server.
- Node-RED crashing on deploy for a missing OPC UA certificate names a certificate file, not a module path.
- A Node-RED deploy failing on OPC UA certificate file permissions names files the package cannot read, not files it cannot find.
So for this message, leave the endpoint URL, security policy and certificates exactly as configured until a deploy completes; the first fix is on the disk of the controller.
Why does reinstalling node-red-contrib-opcua not fix the deploy? #
Because the reported reinstall of version 0.2.89 through the command line wrote into the same AppStore runtime and the lookup failed again, which shows the fault is the layout that runtime resolves from, not a damaged download. Stop repeating the CLI install; it has already been shown not to reach the broken location. Record four facts instead, because they decide everything that follows:
- the controller firmware version;
- how Node-RED was installed, AppStore or container;
- the full error text, especially the path quoted after the words in path;
- the version of the OPC UA package you installed.
Then run one check from a shell on the controller: list the package folder the message names.
ls /opt/plcnext/appshome/data/60002172000051/lib/node_modules/node-red-contrib-opcua/
In the failing layout that listing has no client entry, which is exactly what the message reports. With the absence confirmed on disk, the decision is to change the runtime, not the package.
Which Node-RED installation actually works on the controller? #
The setup that worked in the reported case is Node-RED as a balena-engine container: the palette package installed, flows deployed repeatedly and the client lookup error disappeared, while the AppStore installation kept failing. The container route is also the preferred way to run Node-RED on that controller family, and the reported end state matches it: after a clean start, Node-RED ran and flows installed at any time. Treat this as the demonstrated remedy for the reported firmware and installation method, not as a verdict that every AppStore installation on every release fails the same way. If the OPC UA package itself refuses to install inside the container, that is a different failure, diagnosed in why a Node-RED OPC UA install fails on an edge controller.
How do you move the flows into a balena-engine container? #
Move in one pass: export the flows from the AppStore editor, retire that instance, start one balena-engine container with a persistent data directory, install node-red-contrib-opcua inside it, then import and deploy.
- Export the flows from the AppStore editor as JSON and keep the file off the controller.
- Remove the AppStore app, so exactly one Node-RED with one flow store remains.
- Deploy the container with balena-engine following the controller's container instructions, with the data directory persisted so flows and installed packages survive restarts; a container that cannot write that directory fails for an unrelated reason, covered in resolving the balena-engine data-directory permission.
- Install
node-red-contrib-opcuain the container, import the exported flows and deploy. - If the AppStore installation left state you cannot clean up, the reported case reached a clean system with a factory reset before the container deployment; export the flows first, because the reset erases them.
What do you verify after the redeploy? #
Verify in this order: the deploy completes without the lookup error, the OPC UA nodes sit in the palette and the flow installs repeatedly, and only then do you test the configured endpoint.
- Deploy: the flow saves with no module-not-found message; if the message returns, read its new path, because it now describes the container's tree, not the old AppStore one.
- Palette: the OPC UA nodes are available, and a second deploy behaves like the first.
- Connect: a failure at this stage is a connect-time fault; collect its message and work the endpoint, routing or certificate case it names.
- Reboot: restart the controller and recheck the container's internet access as its own check, because a good deploy proves nothing about post-reboot connectivity.
Why does the firewall page show only a spinning circle after reboot? #
That circle is the known appearance of the firewall page under the firmware 2020.6 workaround: manually deactivating the firewall stops the service that supplies the page's data, so the display says nothing about your OPC UA repair. The reported sequence makes the separation clear: the container worked and flows deployed, then after a reboot it lost internet access and the firewall page in Web-based Management showed the circle with no text. Running update-rc.d -f firewall remove made no difference, so do not use it as a fix for anything in this chain. For a productive system on 2020.6 that needs a firewall, the stated path is to set IP Tables=disabled and then configure the NFT rules as they were configured on firmware before 2020.6; the workaround was stated to become unnecessary with 2021.0, so a planned firmware upgrade closes this item for good. Until the NFT rules are in place, keep the controller on an isolated engineering segment rather than running productive traffic with the firewall off.
When do you stop and escalate to the controller vendor? #
Escalate once the container deployment still reports the missing client after a clean install, or once the firewall workaround cannot be validated; below those two points the steps above close the case. Hand over four things: the firmware version, the installation method, the full error text with its path, and the post-reboot network behavior. Keep the two problems in separate tickets where you can, because the module error is closed by the container move, the firewall behavior is closed by the NFT path or the newer firmware, and neither repair fixes the other.
Questions asked
Does the same error occur on other node-red-contrib-opcua versions?
The identical message was reported on version 0.2.78 as well, which fits a lookup that fails on the local installation layout rather than on one defective release. Record the version you ran, but base the decision on the runtime: when the client folder is missing from the package tree the error names, reinstalling any version into that same tree is not the repair.
Will upgrading node-red-contrib-opcua to a newer release restore the missing client?
Not in a runtime whose package tree already fails the lookup. Reinstalling the same release into the AppStore runtime changed nothing in the report, and a different release installed into that same tree can break identically. Move Node-RED into the working container deployment first, then install the release you actually want and deploy against it.
Can the AppStore Node-RED and the container stay installed side by side?
Avoid it. Two installations carry separate package trees and separate flow stores, so a deploy can land in the instance you never tested, and the two editors cannot both claim the same host port. Retire the AppStore instance, keep exactly one active Node-RED, and import the exported flows into the container before you remove anything.
Is it acceptable to run the controller with its firewall off?
Only as a temporary state on an isolated engineering network, never as the productive configuration. For a productive system on firmware 2020.6 that needs a firewall, set the IP tables option to disabled and configure the NFT rules as on earlier firmware; the workaround was expected to disappear with firmware 2021.0.


