IMD SolutionComputing LibraryShop main store

Troubleshooting

Fix empty pin dropdowns in Node-RED RevPi nodes

Edge computing and IIoT Published 6 min read

Short answer

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.

On this page
  1. Why is the input pin dropdown empty in my revpi-single-input node?
  2. Which service fills the pin list, and how do I check it?
  3. How do I save the PiCtory layout so pin names resolve?
  4. What version of node-red-contrib-revpi-nodes should be installed?
  5. What is the full recovery sequence from a fresh image?
  6. Why do the pins disappear again after I read an input once?
  7. How do I keep the fix after a reboot, and how do I verify it?
  8. Questions asked

The pin dropdown in a RevPi input node is not filled by the Node-RED runtime. It is served by a separate backend, the systemd unit noderedrevpinodes-server, which reads the process image and hands the variable list to the editor over a socket. When that unit is stopped, disabled at boot, or out of step with the PiCtory export, the dropdown opens empty and the node cannot be bound to a variable. The fix is to start and enable the unit, save the PiCtory layout as start-config in physical module order, and confirm node-red-contrib-revpi-nodes at 1.0.6 or newer, restarting the server before the nodered service. The sections below order the checks from cheapest to most invasive.

Why is the input pin dropdown empty in my revpi-single-input node? #

Because the list is served by the noderedrevpinodes-server backend, not by the Node-RED runtime: when that unit is stopped, disabled at boot, or out of step with the exported PiCtory configuration, the editor has no variable names to show. The editor raises no error of its own, which is why the fault looks silent in the browser.

Three independent conditions produce the same empty list, and their fingerprints differ:

Cause How it presents Fix
Backend unit stopped or not enabled Empty on every RevPi node, in every browser, right after an editor reload Start and enable the unit
Process image out of step with the PiCtory layout Pins appear once, then vanish; or only Core variables show, no DIO channels Re-configure in PiCtory, save as start-config, reboot
Outdated palette package Empty after deploy or read cycles; behavior differs between node types Bring the package up to the required release

A worked diagnostic shows how the checks peel these apart. Take a Core with one DIO module and an empty dropdown: three candidate causes. systemctl is-active noderedrevpinodes-server returns active, so the service cause is removed, 3 - 1 = 2 candidates remain. The palette manager shows the package at the required release, so the version cause is removed, 2 - 1 = 1 remains: the process-image mismatch. The committed action for that unit is to re-configure the inputs in PiCtory, save as start-config and reboot — no reflash and no package change.

Which service fills the pin list, and how do I check it? #

The unit is noderedrevpinodes-server: run sudo systemctl status noderedrevpinodes-server and confirm the output shows enabled in the Loaded line and active (running) as its state. node-red-log shows the recent Node-RED log output next to it.

sudo systemctl status noderedrevpinodes-server
sudo systemctl start noderedrevpinodes-server
sudo systemctl enable noderedrevpinodes-server
sudo systemctl restart noderedrevpinodes-server
sudo systemctl restart nodered

Restart order matters: bring the backend up before the nodered service so the nodes find a live socket when the flows are instantiated. Reversed, the first deploy after boot can attach to nothing and repeat the empty list until the editor is reloaded. If this RevPi controls a running machine, do the restarts and any reboot in a planned stop, because both interrupt the flows.

How do I save the PiCtory layout so pin names resolve? #

In PiCtory, place the Core and every expansion module in the same left-to-right order as the physical rack, then use Save as Start-Config so the export becomes the active process image. The driver loads that exported file, the .rsc configuration, when the system boots.

Physical order must match the layout exactly, or the exported variable names do not resolve and the dropdown shows Core variables only, or nothing at all. After any re-save, reboot so the driver reloads the current export instead of the one it read at the previous boot.

What version of node-red-contrib-revpi-nodes should be installed? #

At least 1.0.6: open Menu → Manage palette → Nodes in the editor and confirm node-red-contrib-revpi-nodes shows that version or a later one, because 1.0.6 is the release the recovery sequence that resolved the reported case names. If an older release is installed, remove it in the palette manager, install the current release, and restart Node-RED.

An empty dropdown is not the same fault as a node type missing from the palette altogether; that case is covered in why S7 nodes disappear from the Node-RED palette. Across a fleet, pinning one node version on every gateway keeps this mismatch class out of the plant; the method is in stable Node-RED gateway flows with vendor-pinned nodes.

What is the full recovery sequence from a fresh image? #

Seven steps from a fresh image: flash the current Stretch image, update it with apt, configure the hardware in PiCtory, enable both Node-RED switches, start the backend, verify the palette package, then test a revpi-single-input node. Run the sequence end to end on a unit with an unknown history; skipping the update step re-introduces the mismatch between the nodes package and the backend.

  1. Flash the current Stretch image on the Core, from the Revolution Pi download pages. Layered manual Node-RED installs are a common source of a broken backend, so a fresh image is the clean baseline.
  2. Update the running image and reboot: sudo apt-get update && sudo apt-get upgrade && sudo reboot
  3. Configure the Core and the DIO module in PiCtory in physical order, then Save as Start-Config.
  4. Still in PiCtory, press the Node-RED START button and set Enable Node-RED RevPi Nodes to ON.
  5. Start the backend: sudo systemctl start noderedrevpinodes-server
  6. In Menu → Manage palette → Nodes, confirm node-red-contrib-revpi-nodes is at 1.0.6 or later.
  7. Hard-refresh the editor with Ctrl+F5, open a revpi-single-input node, and confirm the input pin dropdown lists the DIO input variables.

Why do the pins disappear again after I read an input once? #

Because the node caches the variable list it retrieved when the dialog was configured, and once the runtime attaches to the live process image, a mismatch between that cached list and the exported layout leaves the dropdown with nothing to render. This variant survives the service and version checks, which is why it looks like a new bug.

The step that clears it: re-enter PiCtory, re-configure the inputs on the DIO module, save as start-config again, and reboot. That step alone resolved the vanishing pins on units where the palette version was already correct. Re-open the node dialog after the reboot, confirm the list is back, then read the input a second time to prove it holds.

How do I keep the fix after a reboot, and how do I verify it? #

Enable both units so the backend comes up at every boot: run sudo systemctl enable noderedrevpinodes-server and sudo systemctl enable nodered.service, then restart in order, backend first. A manual systemctl start survives only until the next power cycle, and after an unplanned reboot the dropdown breaks again.

Verify with this checklist:

  • sudo systemctl status noderedrevpinodes-server shows active (running) and enabled in the Loaded line.
  • sudo systemctl status nodered shows active (running), and the editor loads on the RevPi's address.
  • Menu → Manage palette → Nodes shows the palette package at the required version.
  • PiCtory shows Core and DIO in physical order with the start-config saved, and the DIO input variables are listed in the dropdown.
  • Wired to a debug node and deployed, the input node shows the field device's state change in the debug pane within its polling interval.
  • After sudo reboot, the node dialog is still populated and the flow still reports values.

Questions asked

Can I read a RevPi input without the nodes while the dropdown is broken?

Yes, as a temporary path: an exec node can call the command-line process image tool and pass the returned value into your flow. You lose the type and length metadata the RevPi nodes carry, so keep the workaround on one signal and remove it once the backend serves the list again.

The palette page lists node-red-contrib-revpi-nodes 1.2.2, so which version do I install?

Install what your image's update provides. The recovery sequence that resolved the reported case names 1.0.6, and the package page currently publishes 1.2.2. A later release is fine while noderedrevpinodes-server runs; pin 1.0.6 only if a newer build misbehaves on your unit.

Where do I see the backend server's own error output?

Run sudo journalctl -u noderedrevpinodes-server for the unit's own output and node-red-log for the Node-RED side, then compare the timestamps with the moment the dropdown went empty. A unit that fails right after starting leaves its message close to the boot timestamp.

Do I have to reflash the image to fix this?

No. The fresh-image sequence is the clean baseline for reproducing the fault, but a production unit usually recovers with the targeted path: restart the backend, re-save the PiCtory start-config and reboot, bring the palette package up to date, then restart Node-RED. Reserve a reflash for units with an unknown modification history.

Does the empty dropdown affect flows that are already deployed?

No. Nodes that were bound earlier keep reading and writing, because the running flows hold their variable bindings; only new configuration is blocked. That is why the fault can go unnoticed until someone opens the editor to change a flow.

Keep reading

  • Troubleshooting

    Why S7 nodes disappear from the Node-RED palette

    Installing an S7 package such as node-red-contrib-s7 can break another package's startup registration, which empties its node types out of the Node-RED palette; the flows and the S7-1200 are untouched. Compare the installed-package list and startup log against your baseline, reinstall the missing package through the deployment's supported method, restart and hard-refresh, then set the S7-1200's PUT/GET permission, rack and slot, and a non-optimized test block.

    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

  • 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