IMD SolutionComputing LibraryShop main store

Troubleshooting

Why OPC UA nodes are missing from the Node-RED palette

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

A package can install cleanly and still register no nodes when the Node.js or Node-RED release underneath is older than its dependency tree needs: the module throws at load time and the editor shows nothing. Record both runtime versions, then either pin a release documented for that runtime and prove it loads, or reimage with a supported Node-RED — for production gateways, reimage.

On this page
  1. Why does npm install succeed but the palette stays empty?
  2. Which versions should I record before changing anything?
  3. Is my Node-RED and Node.js combination too old?
  4. How do I pin an older release of the OPC UA package?
  5. Would node-red-contrib-iiot-opcua work instead?
  6. When should I reimage the gateway instead of pinning?
  7. What proves the OPC UA nodes are actually fixed?
  8. Questions asked

The palette is empty because of a load failure, not an install failure: npm puts the package on disk, but the editor can only show nodes from modules the running Node-RED process actually loaded at startup, and on an old runtime a current package never gets that far. The reported pattern is Node-RED v0.16.2 on Node.js v6, where node-red-contrib-opcua v0.2.47 installs to completion and no OPC UA nodes appear. Two legitimate paths fix it: pin a release old enough for that runtime and prove it loads, or move the gateway to an image with a supported Node-RED release. For a unit that must stay in production, the reimage is the answer; the pin is a stopgap with an end date.

Why does npm install succeed but the palette stays empty? #

npm only downloads and unpacks files; the palette is built when the Node-RED process starts and loads each installed module, so a package whose code or dependency tree needs a newer Node.js installs cleanly and then throws at load time, leaving no nodes to show. npm checks the engine range a package declares only as a warning by default, so a successful install proves dependency resolution and nothing about loading. When Node-RED next starts, it requires every installed module; a module, or something deep in its dependency tree, that uses syntax or library functions missing from the old Node.js throws right there. The runtime prints that failure in its startup output, and the editor, which lists only registered nodes, shows nothing from the package.

One documented step comes before any diagnosis: Node-RED loads newly installed nodes only after a restart. If the editor session has been open since the install, restart first and look again.

If the install itself aborts rather than succeeding — the container case on an edge controller — that is a different fault, covered in why a Node-RED OPC UA install fails on an edge controller.

Which versions should I record before changing anything? #

Write down four things on the runtime that shows the fault: the Node-RED release, the Node.js release, the installed package version, and the exact text of any module load failure in the startup output — every decision below compares those against documented requirements.

  • The Node-RED release, from the editor's version information or the version line the runtime prints at startup.
  • The Node.js release the runtime process actually uses, not merely one present somewhere on the image.
  • The installed package version, read back from the editor's installed-module list rather than from the command you remember typing.
  • The startup output of the next restart, unchanged, because the failing module's error text is the only direct evidence of the load failure.

With those four in hand, the same symptom in a different package is diagnosed the same way — the S7 case is walked through in why S7 nodes disappear from the Node-RED palette.

Is my Node-RED and Node.js combination too old? #

It is too old when it sits below two documented references: Node-RED's own support table, which sets a minimum Node.js release for every Node-RED line, and the test baselines the OPC UA packages publish.

Node-RED's documented minimums, as currently published:

Node-RED line Minimum Node.js release
2.x 12
3.x 14
4.x 18
5.x 22

Node-RED currently recommends Node 24.x. Worked example, with the reported case as the illustrative input: the runtime is Node-RED v0.16.2 on Node.js v6, with node-red-contrib-opcua v0.2.47 installed and no palette nodes. Against the oldest documented floor in the table, Node.js 12 for Node-RED 2.x, the gap is 12 − 6 = 6 major Node.js lines. Against the oldest published test baseline of the iiot OPC UA package, Node.js v14.19 with Node-RED v2, it is 14 − 6 = 8 major Node.js lines and two Node-RED generations short. The package moved on long ago as well: its current published release is 0.2.355, which is 355 − 47 = 308 patch increments beyond the installed copy. The package's documentation names no release for a runtime that old, so the decision below deliberately does not depend on finding one.

How do I pin an older release of the OPC UA package? #

Name one exact published release in the install command, appending the release number to the package name after an at sign, and pick that release by reading the package's published version list and notes downward until one matches your recorded Node.js and Node-RED releases.

The command takes this shape, with the release number you chose after the at sign:

npm install node-red-contrib-opcua@<version>

The loop, with a hard stop:

  1. Ask the npm registry for the package's published version list, then read the release notes from the newest entry downward and stop at the first release whose stated requirements your recorded Node.js and Node-RED releases meet.
  2. Install exactly that release, restart Node-RED, and check the palette.
  3. If a release's notes state no runtime requirements at all, count it as untested for your runtime: one attempt, then move on.
  4. Give the loop at most two attempts. If a release that matches on paper still does not load, the runtime itself is the fault — stop pinning and take the reimage path below, carrying the recorded error text with you.

Pinning an exact release is also what keeps gateway flows reproducible once they run — the practice is described in stable Node-RED gateway flows with vendor-pinned nodes. If npm reports success yet the runtime keeps loading the previous copy of the module, that separate failure is covered in fix when a node-red-contrib-opcua npm update does not take effect.

Would node-red-contrib-iiot-opcua work instead? #

Not on that runtime: node-red-contrib-iiot-opcua documents its tested pairs as Node.js v16.15 with Node-RED v3.0.0 and Node.js v14.19 with Node-RED v2, so it needs the same runtime upgrade you were trying to avoid. Both packages sit on the same node-opcua library, so the constraint lives underneath either palette. On a runtime below the table's oldest floor, swapping package names changes nothing; on a runtime that meets the documented floors, either package can load, and choosing between them becomes a feature question. Do not spend an outage window on the swap.

When should I reimage the gateway instead of pinning? #

Reimage whenever the unit has to keep running in production: a runtime below every documented support floor cannot be made current by package selection, and the Node.js line it runs on no longer receives security fixes. Decide by case:

  • The unit must stay in production: rebuild or replace the host with a supported Node-RED line on the Node.js release Node-RED recommends today, install the current package release, and rebuild the flow there.
  • A maintenance window exists but the image is frozen for now: run the pin as a stopgap, record the working version set, and put the reimage on the schedule with a date attached.
  • The host cannot be reimaged but can run containers: move Node-RED into a container on a supported host — on ARM-based controllers that move has limits of its own, covered in what Docker cannot do for an ARM edge gateway image.

Until the box is rebuilt, keep it on an isolated OT segment: an unpatched runtime is a standing exposure, not a cosmetic problem.

What proves the OPC UA nodes are actually fixed? #

Restart the runtime and confirm three things: the palette shows the package's nodes, the startup output reports no module load failure, and a read from a known OPC UA server address returns a live value through a debug node. Registration and connection are separate proofs, and passing the first says nothing about the second. Record the final working set of Node-RED release, Node.js release and package release together with the image, so the next rebuild starts from evidence instead of this diagnosis.

Questions asked

Is a connection that fails only at deploy the same fault?

No. Nodes in the palette mean the module loaded and registered, which is this fault solved. A failure that appears only when a flow using the node is deployed points at certificates, endpoints or the server's security policy instead. Capture that error text separately, with the server address and its security policy written down, and treat it as its own diagnosis.

Does this happen only on controller images, or also on Windows and regular Linux servers?

The mechanism follows the versions, not the operating system. Any Windows, Linux or container host running the same Node-RED and Node.js releases shows the same empty palette with the same package. Once the runtime meets the documented floors, the same package loads on any of those platforms, so test the recorded version set rather than blaming the controller image.

Can the editor's palette manager fix this without the command line?

Only partly. The palette manager in the editor installs and removes node packages, but it cannot change the Node.js or Node-RED release underneath, which is what this fault needs. Use it to read back which package version the runtime reports as installed, then make the pin-or-reimage decision from the four items you recorded.

Is it acceptable to leave the gateway on the old runtime with a pinned package?

As a stopgap with an end date, yes. Pin the release that loads, record the full working version set so the image can be rebuilt identically later, and put the reimage on the maintenance schedule with a date. Treat the interim as borrowed time: the runtime's Node.js line is out of maintenance, so nothing on that box gets safer while you wait.

Keep reading

  • Troubleshooting

    Why Node-RED crashes at boot with EACCES mkdir //pki on a Linux PLC

    Keep the init.d script — it starts Node-RED correctly. The crash is an uncaught EACCES from the OPC UA client's mkdir of '//pki', a root-level directory the boot-time account cannot write, so fix the service user, HOME, working directory and certificate path instead. The camera's EHOSTUNREACH is a separate reachability fault that never kills the runtime.

    Edge computing and IIoT

  • How-to

    Stable Node-RED gateway flows with vendor-pinned nodes

    Yes: install the vendor's SE Modbus and Machine Advisor Node-RED packages from offline files, but only after the installed Yocto image meets the prerequisite in each node's manual. If you keep the template's open-source Modbus node instead, pin it to the example's stated version, 2.5.0.0, and re-verify after any package change.

    Edge computing and IIoT

  • Troubleshooting

    Why node-red-contrib-iiot-opcua installs with 3 npm vulnerabilities

    The install did not fail: the transcript shows npm completing a global install, and the three reported vulnerabilities are audit findings on a dependency tree no update will change, because node-red-contrib-iiot-opcua is deprecated and closed since April 2020. Back up the flows, run npm audit fix followed by npm audit, and migrate new work to node-red-contrib-opcua after checking node compatibility.

    Edge computing and IIoT

Tag Browse Tree missing from your designer palette