Troubleshooting
ctrlX CORE Node-RED 404 after API requests during boot
Short answer
Continuous HTTP API requests hitting Node-RED while a ctrlX CORE is booting can leave the app returning HTTP 404 Not Found even after a soft restart from settings. To recover immediately, pause or disconnect the external API client, remove power from the ctrlX CORE for 30 to 60 seconds, and keep traffic silent until startup finishes. To prevent recurrence, update the Node-RED app to version RED-V-0206 or later and gate machine API requests until the controller reaches Operating state.

On this page
- Why API traffic during boot triggers a persistent 404
- Immediate recovery steps to clear the latched 404
- How ctrlX CORE boot 404s differ from other edge platforms
- Preventing recurrence with app updates and readiness gating
- Sizing the recovery and API gate window for a 60 s cold restart
- Decision checklist for plant-floor deployment
- Questions asked
When an external machine or REST client sends continuous HTTP API requests to Node-RED while a ctrlX CORE is booting, the app can latch into an HTTP 404 Not Found state that a soft restart from settings does not clear. To recover immediately, pause or disconnect the API client, remove power from the ctrlX CORE for 30 to 60 seconds, and keep traffic silent until startup finishes and Node-RED answers locally. To prevent recurrence, update Node-RED to version RED-V-0206 or later and gate external requests until the controller reaches Operating state.
Why API traffic during boot triggers a persistent 404 #
A ctrlX CORE starts its subsystems in stages. The System Handler transitions from Init—where Linux, hardware drivers, and the ctrlX CORE Runtime initialize—through Partial Operating as the first components come up, and finally into Operating once every runtime component is ready. The Ethernet stack and web reverse proxy accept connections before the full application layer finishes starting.
The Bosch Rexroth ctrlX CORE Node-RED App release notes for version RED-V-0206 document Bug 697839, where accessing the Node-RED dashboard or editor after a fresh restart returned HTTP 404 Not Found and previously could require a full system reboot to clear. Those release notes state that Node-RED must wait until both the ctrlX user interface and the Device Admin app are fully operational, because flows and UI elements initialize only after Device Admin starts—a sequence that can take several minutes.
Routing on ctrlX OS runs through a reverse proxy configured by each app's package-manifest.json (schema package-manifest.v1.3.schema.json) under services.proxyMapping. Each mapping pairs a lowercase name ending in .web or .webapp and a lowercase url prefix starting with / to a binding, recommended as a Unix domain socket such as unix://{$SNAP_DATA}/package-run/node-red/web.sock (using node-red as an example app folder) or unix://{$PACKAGE_WWW_SOCKET}. Inside Node-RED, the runtime configuration documentation specifies that settings.js defines uiPort (default 1880), httpAdminRoot (default '/'), and httpNodeRoot (default '/', replacing pre-0.6 httpRoot); any boot-time initialization disruption or subpath mismatch between the proxy prefix and those roots returns 404 Not Found.
Separate this boot-contention fault from other web failures before editing configuration. A 404 that appears right after installing an app rather than after a reboot under continuous API load points to app provisioning or proxy registration, as covered in ctrlX CORE InfluxDB web UI 404 after app install. An editor that stops loading only when the controller loses network access matches why the Node-RED editor is unavailable when a ctrlX CORE goes offline.
Immediate recovery steps to clear the latched 404 #
A soft restart from ctrlX CORE settings rarely clears this 404 while the attached machine stays connected, because continuous polling hits the reverse proxy again before Device Admin finishes initializing. Clear the latched state in this order:
- Isolate the external API client. Stop the machine's HTTP polling loop, disable its outbound interface, or unplug the Ethernet link to the ctrlX CORE so no requests arrive during startup.
- Check System Handler diagnostics first. Inspect the controller status LED and, if the web UI is reachable, review
Diagnostics > LogbookandPending Diagnostics. A flashing red LED indicates anErrorstate (F0-F7), anF8fault triggers an automatic runtime restart, and a solid red LED (SysError) indicates anF9shutdown; resolve active runtime errors alongside Node-RED. - Execute a cold power cycle. Follow your machine's lockout and safe-stop procedure before removing control power, then keep supply power off for the full cold-discharge window instead of running a software reboot from settings.
- Boot with client traffic silent. Restore power and wait while the System Handler transitions from
InitthroughPartial OperatingtoOperatingand both the ctrlX UI andDevice Adminrespond normally. - Confirm Node-RED before reconnecting. Open the editor or run one manual
GETcheck against yourhttp inendpoint and verify a healthy response instead of404 Not Foundbefore reconnecting the machine or re-enabling its API loop.
How ctrlX CORE boot 404s differ from other edge platforms #
On competing industrial edge platforms—including Siemens Industrial Edge (where NGINX on the proxy-redirect network targets container port 1880 using NODE_RED_BASE_URL), Opto 22 groov EPIC, and Podman containers on Phoenix Contact PLCnext AXC F 2152 and 3152—boot races between the reverse proxy and Node-RED's Express.js listener usually return transient HTTP 502 Bad Gateway or 503 Service Unavailable responses for 10 to 30 seconds until Node-RED binds its port. Container health checks paired with restart: unless-stopped typically clear those startup races without manual power cycles.
On those controllers, a persistent 404 Not Found after boot normally traces to a proxy subpath mismatch against httpAdminRoot or httpNodeRoot, or missing WebSocket Upgrade and Connection headers for the editor, as examined in why a Node-RED HTTP page returns 404 on a groov EPIC. Use the matrix below to distinguish boot contention from routing and controller faults.
| Observed symptom | Primary cause | Verification check | Corrective action |
|---|---|---|---|
| Persistent 404 after boot during active API polling | Node-RED hit before Device Admin starts (Bug 697839 on pre-RED-V-0206 or boot contention) |
Check installed Node-RED app version; test a silent cold boot | Cold power cycle with client paused; upgrade to RED-V-0206 or later and gate client |
| Transient 502 or 503 clearing on its own after startup | Reverse proxy listening before Node-RED Express.js binds its backend listener | Re-test after startup finishes without cycling power | Apply RFC 9110 retry backoff on the client |
| Persistent 404 after a silent cold boot | Prefix mismatch between services.proxyMapping url and httpAdminRoot or httpNodeRoot |
Compare package-manifest.json proxy prefix against settings.js root paths |
Align proxy prefix and Node-RED root paths, then restart the app |
| 404 or unreachable UI with flashing or solid red LED | System Handler Error (F0-F7), F8 runtime restart, or F9 SysError |
Inspect Diagnostics > Logbook and Pending Diagnostics |
Resolve the logged controller runtime fault first |
Preventing recurrence with app updates and readiness gating #
Update the Node-RED app and align Data Layer nodes #
Upgrade the ctrlX OS Node-RED App to RED-V-0206—the release documenting the fix for Bug 697839—or a newer matching build such as RED-V-0302. Keep the official Bosch Rexroth Data Layer contribution package (node-red-contrib-ctrlx-automation) matched to your installed ctrlX OS runtime and Node-RED App versions using the Bosch Rexroth release notes. Bench-test a cold reboot of your exact upgraded build under live polling before removing client-side traffic gating in production.
Gate machine API requests on Data Layer readiness #
Rather than polling Node-RED as soon as the Ethernet link negotiates, verify controller readiness independently through the ctrlX CORE Identity Manager and Data Layer REST API:
- Authenticate via
POST https://192.168.1.10/identity-manager/api/v1/auth/token(using192.168.1.10as an example controller address) and read the returnedaccess_token. - Pass
Authorization: Bearerwith that token to query the System Handler state node underhttps://192.168.1.10/automation/api/v2/nodes/...and confirmOperating; optionally checkframework/metrics/cpu-load/currentto verify startup CPU load has settled. - Issue one idempotent
GETprobe to your Node-REDhttpNodeRootendpoint and start continuous API traffic only after that probe succeeds.
Enforce RFC 9110 retry rules or offload the endpoint #
IETF RFC 9110 Section 15.5.5 defines 404 Not Found for absent target resources, whereas Section 15.6.4 defines 503 Service Unavailable for temporary startup or maintenance states and recommends pairing 503 with a Retry-After header (such as Retry-After: 120 in delta-seconds or an HTTP-date). Configure your machine client to back off on connection refusals, 404, or 503 responses, and disable client-side caching of 404 and 503 errors so stale failure states do not persist after Node-RED starts.
When the attached machine runs sealed OEM firmware whose polling loop cannot be paused or gated on controller readiness, stop aiming that client directly at the ctrlX CORE. Offload the Node-RED API listener—or place a lightweight buffering reverse proxy that returns 503 Service Unavailable with a Retry-After interval during controller reboots—onto a dedicated industrial mini PC in the cabinet. Decoupling the HTTP listener also lowers boot-time resource contention if you are currently running PLC logic and Node-RED on one ctrlX CORE.
Sizing the recovery and API gate window for a 60 s cold restart #
Start with three timing inputs for a machine continuously polling Node-RED on a ctrlX CORE: a 60 s cold power-off hold (the upper bound of the cold power-cycle window that clears a latched 404), an illustrative 120 s post-boot API hold-off (adopted from the Retry-After: 120 delta-seconds example in IETF RFC 9110 Section 15.6.4 to span the multi-minute Device Admin startup noted in RED-V-0206), and an illustrative 30 s readiness re-check interval (the upper bound of the container reverse-proxy startup bind window on competing edge platforms).
In words, the total machine-API suppression window equals the cold power-off hold plus the post-boot hold-off, plus one readiness re-check interval if Device Admin has not yet finished initializing; dividing the post-boot hold-off by the container proxy startup bounds shows how early a generic edge retry timer fires. Written out: 60 s + 120 s = 180 s (180 s / 60 s/min = 3.0 min), and adding one follow-up check gives 180 s + 30 s = 210 s (210 s / 60 s/min = 3.5 min); against the container proxy bounds, 120 s / 30 s = 4 (upper bound) and 120 s / 10 s = 12 (lower bound).
The result is a 180 s (3.0 min) minimum silent window across a full cold recovery, extending to 210 s (3.5 min) when one follow-up readiness check is needed. A generic container retry loop set to the proxy bind window fires 4 to 12 times earlier than the post-boot hold-off, sending live HTTP calls straight into Init and Partial Operating.
Decision threshold: if your machine client can hold Node-RED traffic silent for at least 180 s across a cold power cycle and wait for Data Layer Operating status plus a passing GET probe before resuming writes, keep the direct link and implement client-side gating. If the machine's retry timer is locked below the initial post-boot hold-off and cannot be gated on controller readiness, upgrade to RED-V-0206 or later and bench-verify live restarts, or place an upstream buffering proxy or dedicated Node-RED host between the machine and the ctrlX CORE.
Decision checklist for plant-floor deployment #
Select your next action from the fault behavior and how much control you have over the attached machine:
- Controller currently stuck on 404: Isolate the machine client, check
Diagnostics > LogbookforF0-F9faults, run a full cold power cycle with traffic silent, and confirm local Node-RED readiness before reconnecting. - Programmable machine client: Update to
RED-V-0206or later, alignnode-red-contrib-ctrlx-automationwith your ctrlX OS runtime, gate traffic on Data LayerOperatingstatus plus aGETprobe, and disable404and503caching. - Locked OEM machine client: Move Node-RED or an upstream buffering proxy onto a separate cabinet edge computer so controller reboots never collide with continuous HTTP polling.
- 404 persists after a silent cold boot: Audit
services.proxyMappinginpackage-manifest.json, verifyhttpAdminRootandhttpNodeRootinsettings.js, and resolve any active System Handler errors.
Questions asked
Can editing settings.js clear a Node-RED 404 without restarting the app?
No. Node-RED reads settings.js strictly at startup, so changes to httpAdminRoot or httpNodeRoot take effect only after the Node-RED process restarts. Also check that httpAdminRoot is not set to false: disabling it removes the browser editor and the Admin API paths for settings and flows while leaving http in endpoints under httpNodeRoot running, which intentionally returns HTTP 404 on editor URLs even when the controller and flow runtime are healthy.
Why does ctrlX OS recommend Unix domain sockets over local TCP ports for reverse proxy bindings?
The ctrlX AUTOMATION SDK package-manifest documentation recommends binding web apps to Unix domain sockets inside the app runtime directory instead of local TCP ports such as port 5000. Unix sockets keep proxy-to-app communication isolated inside the snap boundary and prevent local port conflicts when multiple web apps share one controller. The same manifest schema also supports optional restricted sub-URL entries so the reverse proxy enforces client authentication before forwarding sensitive endpoints.
How can you tell if high CPU load preceded an automatic ctrlX CORE runtime restart?
After a critical F8 error triggers an automatic ctrlX CORE runtime restart, query the Data Layer telemetry node framework/metrics/cpu-load/previous using an Identity Manager bearer token. That node preserves the CPU load captured before the F8 restart so you can compare it against normal live load in framework/metrics/cpu-load/current. A spike right before the restart points to resource starvation across PLC tasks, Data Layer subscriptions, and Node-RED flows rather than an isolated proxy glitch.
Why should a machine client avoid blindly retrying HTTP POST requests while Node-RED restarts?
HTTP POST and PATCH calls are non-idempotent because each request can write records, increment counters, or trigger machine commands. IETF RFC 9110 warns against automatically replaying those methods without idempotency controls: a request can execute right as Node-RED shuts down or finishes starting while the reply drops, so a blind retry duplicates the action. Hold writes in a local queue until a read-only GET probe succeeds, and tag each write payload with a unique sequence identifier.


