OpenClaw operations guide
OpenClaw SERVICE_DEFINITION_UNKNOWN on Windows
When OpenClaw reports SERVICE_DEFINITION_UNKNOWN, keep the working Windows Gateway task in place. Run openclaw gateway status --deep with the task’s profile and compare the reported Gateway with the task’s action in Task Scheduler. If the task starts an executable directly, have its owner rehearse the rollback before replacing it.
Last updated · Published
By CWYN · Nov 26, 2026 · Checked against docs, not run · Windows Scheduled Task reference
1. Match the active Gateway to the task
Run openclaw gateway status --deep with the same profile the task uses. In Task Scheduler, compare the task’s action and working directory with the expected profile and runtime. Record the task path, principal, trigger and current state privately. Follow the Windows Gateway reference.
If the Gateway is healthy and a cron job runs but skips its backup provider, check the cron job’s saved provider account.
2. Identify the action type
Check whether the task invokes the managed launcher or starts an executable such as node.exe directly. A November operator report describes the latter case. The status command could inspect the task while an install attempt refused to replace it.
3. Check what the updater can restore
The 2026.11.5 platform reference says strict reads can inspect direct executables with literal arguments, while automatic update service management leaves these custom actions alone. Treat an unavailable service plan as a handoff to the task owner. Keep the healthy task in place.
4. Prepare a recovery record
Have the task owner export the task XML privately and record the launch command, profile, runtime version, task permissions and working directory. Retain a restorable OpenClaw state backup separately. Verify that the owner can restore both the task definition and the matching application state in a test Windows environment before replacing either.
5. Rehearse the replacement off production
If the owner chooses a managed install, use a disposable Windows environment or a separate test profile with its own port, state and task, with external delivery disabled. Confirm that it starts under the intended principal, responds after a restart and can return to the saved setup. Schedule the production handoff only after the task owner can recover the original service.
Proof: what was checked
- Version
- OpenClaw 2026.11.10
- Date checked
- Method
- Checked against the OpenClaw docs, not run.
- Symptom
SERVICE_DEFINITION_UNKNOWN- Fix
- Keep the healthy task in place and hand the upgrade to the task owner.
- Evidence
- No log captured. The Windows Gateway reference and 2026.11.5 platform reference cover Scheduled Task handling. On macOS,
openclaw gateway status --helpconfirmed the flag inopenclaw gateway status --deep.
Get your free CWYN Score to choose your next setup improvement.