Detect .exr and .hdr image outputs before normal Job Monitor thumbnail rendering, and show explicit source-preview fallback tiles instead of broken image elements. Keep normal image thumbnails plus existing media and asset fallback behavior intact, and document the HDR fallback posture. Validation: targeted Vitest, R107 Playwright, doc-contract checks, and the full Windows test gate passed.
10 KiB
Troubleshooting
This guide keeps the longer operational troubleshooting steps out of the README.
UI shows Backend Not Loaded / endpoints return 404
This usually means ComfyUI did not load the Python side of the pack, or route registration failed during startup.
Steps:
- Check ComfyUI startup logs for import errors while loading the custom node pack. Search for
openclaw,Route registration failed, orModuleNotFoundError. - Confirm the pack folder is directly under
custom_nodes/and contains__init__.py. - Run the smoke import check inside the same Python environment ComfyUI uses:
python scripts/openclaw_smoke_import.py
# or
python scripts/openclaw_smoke_import.py --verbose
- Manually verify the endpoints used by the Settings tab:
GET /api/openclaw/healthGET /api/openclaw/configGET /api/openclaw/logs/tail?n=50
Notes:
- If your pack folder name is not
comfyui-openclaw, the smoke script may needOPENCLAW_PACK_IMPORT_NAME=your-folder-name. - If imports fail with a
services.*module error, check for name collisions with other custom nodes and prefer package-relative imports.
Imported workflow shows missing OpenClaw nodes
Current builds expose node portability metadata so "missing custom node" can be diagnosed separately from a generic import failure.
What to check:
- Open the Explorer / inventory diagnostics view or inspect
/openclaw/preflight/inventory. - Confirm whether the workflow references
openclaw:*nodes that are not present on the current host. - Look for portability/replacement guidance rather than renaming nodes blindly.
- If Explorer shows inactive-branch suppressed findings, inspect them as context but do not treat them as active blockers unless the corresponding branch is enabled.
Notes:
- Compatibility class names such as
Moltbot*still exist for older workflows, but the canonical portability contract is anchored onopenclaw:*node identities. - Current shipped nodes use the
openclawcategory in ComfyUI; seeing oldermoltbotcategory text usually means the installed pack is stale or ComfyUI has not been restarted after update. - Current diagnostics may include deterministic replacement hints when an unavailable OpenClaw node can degrade to a more portable workflow pattern.
- Muted or bypassed root nodes and subgraph branches are separated into suppressed diagnostics when the workflow payload includes enough frontend metadata. Plain API prompt JSON remains deterministic, but it may not contain frontend ancestry needed to identify inactive subgraph context.
- If no portability guidance is present and the pack itself is loaded correctly, treat that as a real contract gap rather than assuming the workflow can be repaired by arbitrary JSON edits.
Operator Doctor
Run the built-in diagnostic tool to verify environment readiness (libraries, permissions, contract files):
python scripts/operator_doctor.py
# Or check JSON output:
python scripts/operator_doctor.py --json
Explorer / inventory note:
/openclaw/preflight/inventoryis snapshot-first on current builds.- A response showing
scan_state=refreshingorstale=truedoes not necessarily mean the inventory path is broken; it can mean the cached snapshot was returned quickly while a deeper model scan continues in the background. - Treat
last_erroras the primary signal that the background scan actually failed.
External tool execution is disabled or fails with sandbox diagnostics
External tools are disabled by default and require an admin boundary plus an explicit feature flag.
Checklist:
- Confirm the feature flag is enabled only for the deployment that needs it:
OPENCLAW_ENABLE_EXTERNAL_TOOLS=true
- Confirm the request is authenticated as an admin when using:
GET /openclaw/toolsPOST /openclaw/tools/{name}/run
- Confirm the tool definition exists in the allowlist:
- default allowlist: package-owned
data/tools_allowlist.json - custom allowlist: set
OPENCLAW_TOOLS_CONFIG_PATH=/path/to/tools_allowlist.json
- default allowlist: package-owned
- If the result or logs report
sandbox_runtime_unavailable, do not bypass hardened mode blindly:- make the sandbox runtime available, then set
OPENCLAW_TOOL_SANDBOX_RUNTIME_AVAILABLE=1 - or keep tooling disabled until the deployment can fail closed safely
- make the sandbox runtime available, then set
- If the result or logs report
interpreter_missing, install the executable referenced by the tool allowlist or update the command path. - If the result or logs report
timeout, review the command behavior before increasing the tool'stimeout_sec. - If the result or logs report
workspace_violation, move inputs under the configured filesystem allowlist or update the tool sandbox policy.
Notes:
- Tool scratch/temp paths default to the configured state directory's
tool_sandbox/. OPENCLAW_TOOL_SANDBOX_DIRcan override the scratch path for reviewed deployments.- Runtime cache and sandbox scratch paths are generated state, not package resources.
- OpenClaw does not automatically repair, migrate, or delete runtime dependency caches.
Jobs preview shows an explicit media or asset fallback state
Current OpenClaw builds keep /history + /view as the supported runtime preview contract for job results.
If a result ref only exposes an upstream asset-service identifier and cannot be represented through /view, OpenClaw keeps that ref explicit instead of silently guessing a direct /api/assets fetch.
What this means:
asset_api_requiredis a bounded compatibility state, not a generic parser failure.- Classic history refs should continue to preview normally even when hash metadata is absent. Optional hash-backed refs exposed as
asset_hashorhashstill map onto/viewwhen ComfyUI host metadata provides them. - Current media-aware outputs can include
images,video,audio,3d, and boundedtext; normal images render as thumbnails, HDR.exr/.hdrimage refs render as explicit source-preview fallback links, text renders as escaped bounded text, and other file-like media may appear as explicit fallback/link tiles instead of image elements. - If an operator workflow starts depending on direct asset-service identifiers, treat that as a contract gap and review
docs/asset_api_adoption_decision.mdbefore widening the runtime dependency.
Verify audit-chain continuity after restart or rotation
Use the retained-chain verifier:
python scripts/verify_audit_chain.py
JSON output:
python scripts/verify_audit_chain.py --json
Notes:
- The verifier checks the current
audit.logand any retained rotated audit segments in the state directory. - When no audit chain key is supplied from environment/config, OpenClaw persists
audit.log.keyso verification still works across restart and rotation. - Treat verification failure as an audit-integrity incident until proven otherwise.
Webhooks return 403 auth_not_configured
Set webhook auth environment variables as described in the README quick-start section, then restart ComfyUI.
LLM model list shows HTTP 403 ... Private/reserved IP blocked: 127.0.0.1
This usually means your OpenClaw build is older than the local-loopback SSRF fix. For local providers, 127.0.0.1 and localhost are valid targets and should not require insecure SSRF flags.
Checklist:
- Update OpenClaw to the latest release.
- For Ollama:
- run
ollama serve - verify
http://127.0.0.1:11434/api/tagsis reachable on the same machine
- run
- In OpenClaw Settings:
- Provider:
Ollama (Local)orLM Studio (Local) - Base URL: leave empty to use the provider default, or set a loopback URL explicitly
- Provider defaults:
Ollama (Local)->http://127.0.0.1:11434/v1LM Studio (Local)->http://localhost:1234/v1
- If an older saved Ollama URL is still set to
http://127.0.0.1:11434, update it to/v1or clear the field so the built-in default can be applied
- Provider:
- Keep these flags disabled:
OPENCLAW_ALLOW_ANY_PUBLIC_LLM_HOST=0OPENCLAW_ALLOW_INSECURE_BASE_URL=0
Remote Admin can open, but custom LLM on 192.168.x.x is still blocked
This is expected under the current SSRF policy.
OPENCLAW_ALLOW_REMOTE_ADMIN=1only allows remote admin access; it does not relax outbound LLM egress rules.OPENCLAW_LLM_ALLOWED_HOSTSonly extends the exact-host allowlist for custom public hosts.- Private/reserved IP targets such as
192.168.x.x,10.x.x.x, and172.16.x.xremain blocked unless the scopedallow_private_networkLLM setting is enabled for the configured target, orOPENCLAW_ALLOW_INSECURE_BASE_URL=1is also set. OPENCLAW_ALLOW_ANY_PUBLIC_LLM_HOST=1does not allow private/reserved IPs.OPENCLAW_LLM_ALLOWED_HOSTS=*is not a wildcard and will not bypass the policy.
Correct setup flow:
- If you are using a built-in local provider (
ollama,lmstudio), keep it on loopback only and use the provider default orlocalhost/127.0.0.1/::1. - If you need a custom public LLM host, set:
OPENCLAW_ALLOW_CUSTOM_BASE_URL=1OPENCLAW_LLM_ALLOWED_HOSTS=<exact-host>orOPENCLAW_ALLOW_ANY_PUBLIC_LLM_HOST=1
- If you intentionally need a LAN/private-IP target, prefer enabling
allow_private_networkonly for that configured LLM target. UseOPENCLAW_ALLOW_INSECURE_BASE_URL=1only when you intentionally accept the broader SSRF risk, then fully restart ComfyUI. - On Windows portable, set environment variables in the same launcher that starts
python_embeded\\python.exe, or restart aftersetx/ System Properties changes. - Verify the effective value in the same embedded Python runtime:
python_embeded\python.exe -c "import os; print(repr(os.environ.get('OPENCLAW_LLM_ALLOWED_HOSTS')))"
Safer alternative:
- keep the LLM behind a reviewed public HTTPS reverse proxy and allowlist that public host, instead of enabling private-network or insecure overrides
- on current builds, the scoped private-network setting and insecure override are both applied consistently by Remote Admin validation and
/openclaw/llm/models
Admin Token: server-side vs UI
OPENCLAW_ADMIN_TOKEN is a server-side environment variable.
- The Settings UI can use an Admin Token for authenticated requests.
- The UI cannot set or persist the server token itself.
For full setup steps, see the main README quick-start section and tests/TEST_SOP.md.