Troubleshooting
Groov RIO Data Services start and stop from Node-RED
Short answer
To start or stop groov RIO Data Services from Node-RED, send an HTTP POST with an empty payload to /manage/api/v1/dataservice/start or /manage/api/v1/dataservice/stop. The reply can be slow and sometimes returns HTTP 503 Service Unavailable, so the flow needs bounded retry logic. Data Services is the device's native MQTT and OPC UA subsystem, separate from the Node-RED runtime.
On this page
Node-RED has no node that toggles groov RIO's native I/O publishing; that switch lives in the device's Data Services REST API. Send an HTTP POST with an empty payload to /manage/api/v1/dataservice/stop to halt Data Services, or to /manage/api/v1/dataservice/start to bring it back. The reply comes back slowly and sometimes as HTTP 503 Service Unavailable, so build the flow with bounded retry logic rather than a single fire-and-forget request.
Data Services and Node-RED are separate subsystems #
Two subsystems run on the device, and these endpoints act on only one of them. Node-RED is configured from the Node-RED area of groov Manage and runs your flows. Data Services is the device's native MQTT and OPC UA functionality: the layer that publishes controller and I/O data as Sparkplug B or generic MQTT payloads, and that can present the device's tags to authorized OPC UA clients. A POST to the stop endpoint pauses that native publishing. It does not stop the Node-RED runtime, and deploying, disabling or injecting into flows in Node-RED changes nothing about Data Services. Treat them as two independent systems sharing one box, and never use a flow-side change when you mean to stop the native publisher, or the reverse.
The start and stop endpoints #
The control surface is two POST endpoints under the manage API. Both take an empty request body:
| Action | Method | Endpoint | Request payload |
|---|---|---|---|
| Stop native publishing | POST | /manage/api/v1/dataservice/stop |
empty |
| Resume native publishing | POST | /manage/api/v1/dataservice/start |
empty |
These paths are the ones the device's own management interface calls when you start or stop Data Services by hand; you are driving the same operation over HTTP.
Build the POST in Node-RED #
Use the core HTTP request node, pointed at the device's management address:
- Set the node's Method to POST and the URL to the device address plus the endpoint, for example
https://192.168.1.50/manage/api/v1/dataservice/stop, using your device's actual address. - Leave the payload empty. Sending a body is not part of the documented call.
- Give the request the same access the device's groov Manage sign-in already requires on your installation; the endpoint sits behind that same management interface, and this call does not change those access settings.
- Set the node's timeout long enough that a slow reply is not cut off by the node itself.
- Record the requested action, the HTTP status code and a timestamp in the flow, so a later question about when publishing stopped has an answer in the log.
Handle the slow reply and HTTP 503 #
The start and stop operation takes time, and while it runs the endpoint can answer HTTP 503 Service Unavailable instead of a clean result. Wire the flow accordingly:
- Do not treat a slow reply as a failure. Latency alone is not an error on these endpoints.
- On HTTP 503, retry the same POST to the same endpoint.
- Bound the retries and surface a failure when the limit is reached, instead of looping forever.
- Do not look for a status endpoint to poll afterward; none is documented for this API. Confirm the state by watching the data path, as in the next section.
For an example policy, retry up to five attempts with delays of 2, 4, 8 and 16 seconds between them. That is 30 seconds of total backoff plus the request times, after which the flow marks the action failed and reports it. Those delays are an engineering choice, not a documented value: shrink them if a publishing gap of half a minute is unacceptable, lengthen them if the device is busy.
Confirm the state actually changed #
An accepted request is not a changed state. Watch the broker: after a stop, Sparkplug B messages to the primary host should cease; after a start, they should resume. For generic point publishing, compare what arrives against the MQTT point publishing configuration for the device, described in the guide to configuring generic MMP point publishing over MQTT. If publishing does not come back after a start, work through the steps for troubleshooting Sparkplug B publishing to Mosquitto, and if the Sparkplug node itself sticks on Connecting while the broker connection succeeds, the known causes are laid out in the article on why a Sparkplug node stays stuck on Connecting while MQTT connects.
One caution belongs here: stopping Data Services suspends the data path to your brokers, historians and dashboards. It is a data control, not a safety function, and it never substitutes for one.
The decision, then: to stop groov RIO's native I/O publishing from Node-RED, POST with an empty payload to /manage/api/v1/dataservice/stop; to resume it, POST the same way to /manage/api/v1/dataservice/start. Expect delay, retry a bounded number of times on HTTP 503, and confirm the result on the broker, not in the HTTP status code.
Questions asked
How do I stop groov RIO Data Services from Node-RED?
Send an HTTP POST with an empty request payload to the Data Services stop endpoint, the dataservice stop path under version 1 of the manage API on the device. The reply can take a while and may come back as HTTP 503 Service Unavailable, so retry a bounded number of times and then confirm the publishing state on the broker rather than trusting the status code alone.
Does stopping Data Services also stop the Node-RED flow?
No. Data Services is the native MQTT and OPC UA subsystem in groov Manage, and Node-RED is a separate runtime configured from its own area of the same interface. Stopping Data Services pauses only the native publishing of controller and I/O data; your flows keep running, and these endpoints cannot start or stop the Node-RED runtime itself.
What retry interval should I use when the request returns HTTP 503?
No retry interval is documented for these endpoints, so set one from how long a publishing gap your application accepts. An example policy is five attempts with delays of 2, 4, 8 and 16 seconds, which is 30 seconds of total backoff plus the request times, after which the flow reports failure instead of retrying forever.