IMD SolutionComputing LibraryShop main store

Troubleshooting

Why the Node-RED editor hangs on loading with an empty palette

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

Short answer

A Node-RED editor that stops at the header, sidebar and loading animation while the dashboard at /ui still serves fresh values is a browser fault, not a runtime fault. Test the editor in a second browser or clean profile, read the console and network errors, then update or repair that browser. Reinstalling Node-RED or Node.js cannot fix it, because the failing component never touches the server.

On this page
  1. Why does the Node-RED editor hang on loading with an empty palette?
  2. Is the runtime broken if the dashboard still works?
  3. Why did reinstalling Node-RED and npm rebuild change nothing?
  4. How do I test whether the browser session is the fault?
  5. How do I read the console and network errors?
  6. How do I repair the browser without touching the flows?
  7. What if a second browser hangs too?
  8. How do I confirm the editor and the machine data recovered?
  9. Questions asked

An editor that stops at the header, the sidebar and a loading animation is telling you where the fault lives. If the dashboard on the same runtime still receives fresh machine values, the Node-RED process, your flows, the OPC UA connections and the historian writes are all intact, and the fault is in the browser session that renders the editor. In the documented case behind this article, a reboot, a reinstall of Node-RED and Node.js and npm rebuild all changed nothing, and updating Chrome restored the editor on the first try. Work in that order: confirm what still works, isolate the fault to one browser, read the console and network errors, then repair or update that browser. Reinstalling the runtime to fix a rendering fault costs an afternoon and repairs nothing.

Why does the Node-RED editor hang on loading with an empty palette? #

Because the browser has loaded the editor shell but failed while fetching or running the scripts that build the palette and workspace, the runtime is still serving the page, and the documented fix for this failure mode was a browser update.

The editor loads in stages. The server sends the page shell first, the browser then fetches and executes the editor's scripts, and only after that does the interface request the installed-node list and the flow contents and build the palette and workspace. A failure anywhere after the shell arrives leaves exactly the picture in front of you: header, sidebar, loading animation, no nodes, no flows. An empty palette in this state is a rendering result, not evidence about what is installed or saved.

Two neighboring faults look similar and fix differently. If the palette loads and only one node family is missing, that is an installation fault, covered in why OPC UA nodes go missing from the Node-RED palette. A palette action that genuinely loses flows is the manage-palette fault covered in troubleshooting Node-RED palette changes and lost flows; a stuck loading screen is not that fault, so do not start recovering flows that were never lost.

Is the runtime broken if the dashboard still works? #

No — a dashboard that still updates proves the runtime, the flows and every machine connection behind it are alive, because the dashboard is served by the same Node-RED process you suspect is broken.

Freshness is the stronger evidence: watch a value while the machine cycles and confirm it moves. In the reported case, flows for five more milling machines had been deployed from a laptop the evening before, and all of them were live on the dashboard next morning — the runtime was running everything it had been given.

Read the address too. The dashboard lives at /ui on this runtime, and a one-character slip such as /u lands the browser somewhere else entirely; take the working path from the bookmark or configuration, not from memory. Values that appear only after a manual reload are their own publishing fault — trace them the way stale MQTT sensor values that only update on refresh are traced — not a reason to rebuild the runtime.

The three presentations and their decisions:

What the page shows What it means The decision
Editor shell with loading animation; dashboard values current Runtime, flows and connections intact; the front end fails to load in this browser Repair the browser; do not reinstall the runtime
Dashboard opens but its values are frozen Page delivery works; live collection or publishing has its own fault Check the runtime log and the newest historian timestamps
Neither the editor nor the dashboard responds The fault is upstream of the browser Confirm the runtime process is running and retype the address from the bookmark

Why did reinstalling Node-RED and npm rebuild change nothing? #

Because a reinstall replaces server-side files while the failing component is the browser that renders the editor: the reported case stayed broken through a reboot, reinstalls of Node-RED and Node.js, and npm rebuild, and cleared only when the browser was updated.

Reinstalling Node-RED replaces server-side files, and npm rebuild recompiles the installed server-side nodes. Neither step touches the failing component: the browser's JavaScript engine, its cached copy of the editor front end, its extensions and its stored site data. A repair has to land on the failing component, which is why the symptom survived every server-side repair and disappeared with a browser update.

Keep the matching discipline. A working dashboard is standing proof that the runtime layer needs no work; treat the browser as guilty until a second browser exonerates it. Before any change that genuinely touches the runtime — an upgrade, a node install, an edit to the settings file — back up the flows first, and change one thing at a time.

How do I test whether the browser session is the fault? #

Open the same editor address in a second browser or a clean profile on the same desktop: if the palette and flows appear there, the fault is confined to the original browser session and the repair is a browser repair.

Start from what localhost means: it always names the machine the browser runs on. From the laptop, localhost:1880 would have opened the laptop itself, which is why the desktop's own address was the right one over the VPN — that address is a different origin, not a different server. Browsers treat localhost and an IP address as two origins with separate caches, cookies and stored site data, so the two addresses can behave differently in the same browser.

Worked example on the office desktop, with the runtime host at 192.168.10.42 (an example address) and the editor on port 1880. Run all four combinations and score them:

  • localhost:1880 in the failing browser — stuck at loading
  • localhost:1880 in a clean profile of the same browser — palette and flows load
  • 192.168.10.42:1880 in the failing browser — stuck at loading
  • 192.168.10.42:1880 in the clean profile — palette and flows load

The failing browser failed 2 of 2 addresses and the clean profile passed 2 of 2, so the fault follows the browser session, not the address. The opposite score — each address loading in one browser and failing in the other — would point at the localhost origin's stored site data, and clearing that origin's site data would be the first repair.

One boundary while you test: the editor is an administrative interface on a machine that touches production, so keep it inside the plant network or an approved VPN and never forward its port to the internet.

How do I read the console and network errors? #

Open the browser's developer tools, watch the console and network panels during a reload, and record the first script error plus the first failed or pending request — that pair separates a browser fault from a server or authentication fault.

  1. Open the developer tools in the failing browser (F12 on most desktops, or the browser menu's developer-tools entry) and select the console panel.
  2. Reload localhost:1880 and let it stall.
  3. Record the first error text exactly as printed, including the file it names.
  4. Switch to the network panel, reload again, and note the first request that fails, stays pending or returns an error status, with its address and status code.
  5. Repeat both panels in the browser that loads the editor correctly and compare the two.

Read the results by type. A script exception means the browser stopped executing the editor's code mid-load — a client-side fault in that session. A request that never completes, or returns an error status, is a different trail pointing at authentication, a proxy or the server. Failures confined to one browser direct the work at that browser's version, cache, extensions or local policy; the same failure in every current browser sends you to the runtime log. Keep the exact error text: the first error names which fault you have.

How do I repair the browser without touching the flows? #

Update that browser through your organization's approved update path, fully quit and relaunch it so the new version runs, and reopen the editor — in the reported case updating Chrome alone restored the palette and the flows with no change on the Node-RED side.

  1. Note the installed browser version and keep the captured errors; save work in other tabs.
  2. Update the browser through the approved update path, then quit it completely and relaunch, because an update is not active until the browser restarts.
  3. Reopen localhost:1880 and look for the palette and the flows before touching anything on the Node-RED side.
  4. If it still stalls, open a clean profile or a private window. If the editor loads there, clear the stored site data for the editor's origin in the everyday profile, then re-enable extensions one at a time until the culprit shows itself.
  5. If policy blocks an in-place update on that workstation, a newer browser build can run side by side with the old one — testing Chrome versions without reinstalling is a documented approach that gets you the same engine fix without uninstalling anything.

An update is a credible fix here, not a superstition: these front ends are built and tested against current Chrome and Firefox releases, and the identical loading freeze has been reported on a dated engine, Firefox 88. A browser current when Node-RED was installed falls behind after months of unattended use, and no server-side work closes that gap.

What if a second browser hangs too? #

Then the fault has moved to the server side of the page, and the next evidence is the Node-RED runtime log: set the log level to trace in settings.js in the .node-red user directory, restart Node-RED, and reload the editor while watching the log.

Trace-level logging prints each node load and admin API call as the editor builds, so the log's last line sits where the fault is: a missing module, a rejected authentication or a hung request each look different there. Read the last log entries against the pending request in the browser's network panel — the two should name the same call, and that call is the fault.

Judge by what the page manages to show. A shell with a spinner is a front-end problem in a working runtime. A page with nothing at all — no header, no sidebar — is the runtime-down case, the one you get when a ctrlX CORE goes offline and takes its Node-RED editor with it; that failure has its own diagnosis.

Note what changed just before the stall: enabling the projects feature is one reported trigger for an editor that stops mid-load, and so are a runtime upgrade and a newly installed node. Undoing the last change is cheaper than any reinstall and names the cause instead of masking it.

How do I confirm the editor and the machine data recovered? #

The editor is recovered when a fresh reload shows the full palette, your flows and a responsive workspace, and the data path is confirmed separately: current dashboard values against the running machine and recent timestamps in the historian.

  • Reload the editor twice and reopen the browser once: recovery has to survive a fresh session, not one lucky load.
  • Open two or three representative nodes read-only and confirm the workspace stays responsive, with no reconnect banner.
  • Watch a dashboard value against the machine in front of you while it cycles.
  • Compare the newest timestamp for each measurement in the historian against the parts just produced.
  • If you want a deployment test, make one low-risk change in an authorized window; opening the editor is not a reason to redeploy.

When the palette fills and the historian's newest samples match production, leave the flows as they are, keep the browser on its update path, and treat any future stall as a browser question first — the dashboard is your standing proof of what still works.

Questions asked

Do my flows keep running while the editor is stuck on loading?

Yes. The editor is only the development view; the runtime keeps executing the deployed flows, polling the machines and writing to the historian until something restarts the runtime. A hung editor never stops data collection, so there is no rush to reboot the host. Fix the browser on your own schedule and verify the data timestamps when you are done.

Can I keep editing flows from another computer while the office browser is broken?

Yes, through an approved remote path. The editor at port 1880 on the runtime host is reachable from any authorized machine, and edits there deploy to the live runtime as soon as you click Deploy. Remember that localhost always means the machine the browser runs on, so a remote machine must use the runtime host's IP address, and every change lands in production immediately.

When is reinstalling Node-RED actually justified?

Only for a runtime-side fault: a crash at startup, missing-module errors in the log, or a palette operation that damaged the installation. Before reinstalling, back up the flows and credentials files from the .node-red user directory along with the installed-node list, so the recovered runtime can be restored to the same state. A front-end-only stall with a working dashboard is never a reason to reinstall.

How do I check that data logging kept working through the editor fault?

Compare the newest timestamp in each historian measurement against the machine's actual activity. A dashboard showing values proves page delivery, not database writes. If the newest stored sample matches a part that was just produced, logging is current; if it stops at the time you left the office, treat the logging path as its own fault and start from the runtime log, not from the browser.

Keep reading

  • 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

  • Troubleshooting

    Why the InfluxDB node install fails in Node-RED behind a proxy

    A ping from the edge box proves only name resolution and ICMP. The palette install fetches packages over HTTPS with npm, and npm on the device does not inherit the proxy configured on the company modem, so the install fails while the same install works on a Windows PC. Set the proxy in npm on the device, in the account that runs the install, then retry and restart Node-RED.

    Edge computing and IIoT

  • Troubleshooting

    Fix MQTT sensor data missing in Node-RED

    A green MQTT connection in Node-RED proves only a broker session, not that the GSM module published a value or that the flow subscribes to its topic. An http in node cannot receive MQTT publications at all: use an mqtt in node. Trace RS-485 acquisition, publish result, broker identity and topic match in order, and fix the first stage with no positive result.

    Edge computing and IIoT

Node-RED writes to InfluxDB on another PC time out