IMD SolutionComputing LibraryShop main store

Troubleshooting

Why only 3 of 18 iiot-opcua nodes appear in Node-RED

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

Short answer

Only three of the eighteen node-red-contrib-iiot-opcua types registered with the runtime: the node sets that failed to load took their type names with them, and the unknown-node popup on the imported examples lists exactly what is missing. The deciding mismatch is the runtime pairing: the current release wants Node-RED 2.2.3 or 3.0.2 on Node.js 14 or newer, while the gateway ran v0.20.7 on v10.16.0. Upgrade the runtime, or pin the package's 3.0 LTS branch that was tested with the old pairing.

On this page
  1. Why does node-red-contrib-iiot-opcua show only 3 of its 18 nodes?
  2. What does the unknown-node popup on the example import prove?
  3. Is the Node-RED and Node.js version too old for the installed release?
  4. Why did reinstalling from Manage Palette and with npm change nothing?
  5. Should you upgrade the runtime or pin an older package release?
  6. How do you confirm that every node type registered after the fix?
  7. When do you open an issue with the package maintainer?
  8. Questions asked

Three usable palette entries out of eighteen is a partial node-type registration failure, not a display glitch and not an OPC UA connection problem. The case worked through here: a Raspberry Pi 3 gateway running Node-RED v0.20.7 on Node.js v10.16.0, with node-red-contrib-iiot-opcua installed and only OPCUA IIoT Lister, OPCUA IIoT Write and OPCUA IIoT Discovery editable, the rest grey and unusable in Manage Palette. Importing the package's own examples settled it: the editor flagged OPCUA-IIoT-Inject and OPCUA-IIoT-Server as unknown node types, so their definitions were never registered with the running runtime. The repair is a supported runtime-and-release pairing; certificates, endpoints and CPU temperature come into play only after the types exist.

Why does node-red-contrib-iiot-opcua show only 3 of its 18 nodes? #

Because the package registers its node types in separate sets, and on this runtime only the sets behind 3 of the 18 types loaded, so that count is a registration result read straight from the runtime, not a palette display problem.

Node-RED brings a contribution package online in stages, and the symptom pins the fault to the third of them:

  • Install – npm places the module files in the runtime's user directory, .node-red on this gateway.
  • Load – at startup the runtime requires each node set the package declares.
  • Register – every loaded set registers its type names with the runtime.
  • Present – the editor palette and the flow importer read only registered names.

The sets behind the visible nodes loaded and registered; the sets behind the rest never did. What this is not: a thermal effect does not remove the same type names on every restart while leaving their neighbours intact, and OPC UA session settings, certificates and endpoints act only after a node exists in a flow. Nothing at the OPC UA layer can create a missing type definition.

What does the unknown-node popup on the example import prove? #

It proves those type names never reached the runtime's registry, because the editor raises its unknown-type warning only for a node whose type the running instance did not register; importing a flow copies names, not implementations.

When the examples import and a type is unregistered, the editor lists the offender — this node is a type unknown to your installation of Node-RED — and the flow shows it as unknown: OPCUA-IIoT-Inject or unknown: OPCUA-IIoT-Server. Those two labels are the diagnostic handle: they name exactly which definitions the runtime lacks, with no configuration dialog needed.

Worked example from this case: the installed release's documentation lists 18 node types, the palette offered 3, so 18 − 3 = 15 types were unregistered. The popup named 2 of them because that example flow uses only those 2; the popup is a sample of the failure, not its full extent.

When none of the package's nodes appear at all, the fault sits one stage earlier, at install or load rather than partial registration; that case is covered in why OPC UA nodes are missing from the Node-RED palette.

Is the Node-RED and Node.js version too old for the installed release? #

Yes: the current release documents support for Node-RED 2.2.3 or 3.0.2 on Node.js 14 or newer, and the gateway in question ran Node-RED v0.20.7 on Node.js v10.16.0, which is 14 − 10 = 4 major versions below that floor.

The numbers to compare sit on the package's own pages: its entry in the Node-RED flow library records testing with Node.js v16.15 and Node-RED v3.0.0, and its scorecard lists the supported Node-RED versions. The readme records the other end of the history: the 3.0 branch is the LTS line tested with Node.js v10 and Node-RED v0.19, and it held that role until October 2019. Manage Palette installs the current release by default, so the old pairing received a package built and tested against newer engines. On the v10 runtime that release sits outside its documented support, and the observed pattern — some sets registering, the rest grey — is what a set-level load failure looks like.

The absence of an error line in the terminal does not clear the runtime. Read the startup output of the instance actually serving the editor; if a service starts Node-RED, that output belongs to the service's log, not to a separate terminal session. And treat the editor's registry, proven by the example import, as the authoritative verdict.

Why did reinstalling from Manage Palette and with npm change nothing? #

Because both routes repeat only the install stage: the terminal command npm install node-red-contrib-iiot-opcua in the .node-red directory completed, and the identical partial registration came back, exactly what an unsupported pairing predicts.

Installation success is not load success. Both routes end with the same files meeting the same runtime, so both reproduce the same result; that reproducibility is itself evidence for a deterministic cause such as an unsupported engine, not a corrupted download. A reinstall cannot repair a dependency that requires a newer Node.js, syntax the old engine cannot parse, or a package release built against a newer editor API.

Instead of a third install, capture what decides the case:

  • the full output of npm install node-red-contrib-iiot-opcua, run in the .node-red directory of the account that runs the editor's instance;
  • the full startup output of that same instance, including any module-load lines;
  • the installed package release and its status text in Manage Palette, grey entries included;
  • confirmation that the user directory serving the editor is the one you installed into.

The wider patterns behind palette installs that appear to succeed and then lose nodes are collected in troubleshooting Node-RED Manage Palette and lost flows.

Should you upgrade the runtime or pin an older package release? #

Upgrade the runtime on any gateway that stays in service, and pin the package's 3.0 LTS branch only where the old pairing genuinely cannot be changed; both routes are legitimate, and choosing by convenience instead of the compatibility matrix is the mistake.

Runtime pairing you run Package release to install Where that is documented
Node.js 14 or newer with Node-RED 2.2.3 or 3.0.2 the current release the package scorecard's supported versions
Node.js v10 with a v0.19-era runtime, as on this v0.20.7 / v10.16.0 gateway a release from the 3.0 LTS branch the readme's tested pairing for that branch

For the upgrade route on that Pi-class box: take Node.js from the Node.js project's own distribution rather than the old image's repository, then install a supported Node-RED on top — and before installing Node-RED natively on the box, identify the Linux base first. If the operating system on the box cannot carry a supported engine, retire the box rather than the standard: replace the gateway with a fanless industrial mini PC running a current Linux and the supported pairing.

For the pin route: install a 3.0-branch release into the same user directory, restart, and verify. Accept what the pin buys — a branch whose LTS window closed in October 2019 — and hold it as a bridge while scheduling the upgrade.

How do you confirm that every node type registered after the fix? #

Restart the runtime, then pass three checks: a startup with no failed node set, a palette where every package entry is editable, and an example import that raises no unknown-type popup at all.

  1. Restart and read the complete startup output of the instance serving the editor; note the Node-RED and Node.js versions it prints and every module-load line.
  2. Open Manage Palette and compare the package's entries against the type list in the documentation of the release you installed; no entry may sit grey.
  3. Import the package's examples into a test workspace and leave them undeployed; no unknown-type popup may appear, and the formerly flagged names must open as editable nodes.
  4. Open one node of each formerly missing kind and confirm its configuration dialog and its configuration-node selector are populated.
  5. Deploy examples only against a test OPC UA server: the package's examples include response and write nodes, and a deployed write example writes values to whatever endpoint it is wired to.

If the Inject node now appears in the palette but renders blank in the browser, registration succeeded and the fault has moved into the editor; that separate case is covered in why the iiot OPC UA Inject node shows blank on install.

When do you open an issue with the package maintainer? #

Only after the pairing matches the documented compatibility and a node set still fails to load, because a maintainer can act on a reproducible load failure but not on an unsupported-engine report.

Attach the deciding evidence in one bundle: the Node-RED and Node.js versions from the startup output, the installed package release, the full install output, the full startup output, the exact unknown-type labels from the example import, and the board with its operating system. That bundle turns grey palette entries into a case someone can reproduce. Until the pairing question is settled, the answer remains the compatibility matrix you already have.

Questions asked

Can I fix the unknown nodes by renaming their types in the flow file?

No. Renaming a type in the flow file only helps when the replacement type is already registered, and Node-RED does not re-link an unknown node to a type installed later; replacing an unknown node with the correct one is not handled automatically. Renaming OPCUA-IIoT-Inject to the core inject node produces a different node that ignores the example's configuration. Register the package's own types first, then import the examples again.

Will upgrading Node.js alone bring the missing nodes back?

No. Compatibility is a pairing: the current release lists Node-RED 2.2.3 or 3.0.2 together with Node.js 14 or newer. Raising only one side leaves the other as the blocker, and an editor as old as v0.20.7 does not know the newer release's node definitions, so the same node sets fail. Upgrade both, restart the runtime, and confirm registration in the startup output before judging the palette.

Is the expected node count the same for every package release?

No. The count belongs to one release's documentation; another release registers a different set, and older branches register fewer types. The acceptance test is a clean import, not a number: when the package's own examples import without a single unknown-type warning and every palette entry is editable, registration is complete. Count the palette against the documentation of the release you actually installed, not against a figure from someone else's install.

Does a grey palette square always mean the module was disabled?

Not necessarily. Grey marks a type the running editor cannot offer, whether someone disabled the module by hand or it failed to load at startup. The status text beside the module in Manage Palette separates the two cases; read it before reinstalling, because a reinstall cannot repair a load failure caused by an unsupported runtime, and re-enabling cannot repair a failed load.

Keep reading

  • 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

  • Troubleshooting

    Fix empty pin dropdowns in Node-RED RevPi nodes

    The pin list in the RevPi nodes is served by the separate noderedrevpinodes-server systemd unit, not by the Node-RED runtime. Start and enable that unit, save the PiCtory layout as start-config in physical module order, confirm node-red-contrib-revpi-nodes at 1.0.6 or newer, and restart the server before the nodered service. If pins vanish after the first read, re-configure the DIO inputs in PiCtory and reboot.

    Edge computing and IIoT

  • Selection guide

    Node-RED OPC UA server node selection for edge gateways

    Install node-red-contrib-opcua as the pilot OPC UA server package on the first edge gateway, through the Node-RED editor's Manage palette, and keep node-red-contrib-opcua-server as the evaluated fallback. A fleet rollout past a thousand gateways is justified only when the pilot passes the qualification table: server function, real-client interoperability, NodeId stability across restarts, quality behavior, security policy and install reproducibility, all on a recorded software stack.

    Edge computing and IIoT

Why the IIoT Connector Save button stays disabled without a license