Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Troubleshooting

Start with the narrowest check that proves the failing layer.

Daemon

dkg status
dkg logs
curl http://127.0.0.1:9200/api/status

Auth

TOKEN=$(dkg auth show)
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:9200/api/agent/identity

401 means no usable token. 403 means the caller is recognized but not allowed to perform that operation.

Memory writes

  • Verify the target Context Graph exists.

  • Verify the sub-graph exists before targeting it.

  • Query the Knowledge Asset before sharing.

  • Finalize (seal) the Knowledge Asset, then share it to SWM before publishing to VM (VM publish requires a finalized Knowledge Asset present in SWM).

  • Check wallet funding before on-chain finality.

Slow async share or publish, retryable 503s

  • A 503 with retryable: true from share-async or publish-async usually means the node is busy. Wait for the Retry-After header. If the body names a job (jobId or existingJobId), follow that job instead of resending. Resend a publish only if the answer says jobCreated: false; otherwise find the job first. Never resend under a new name. What each answer means: Async Share and Publish Jobs.

  • To see whether admission, the store or the workers are slow, read the async_admission_usage line in dkg logs. The daemon writes it every five minutes. How to read it: Monitor Store and Queue Pressure.

  • If jobs got slower after an update, check the start-up line Store control path: .... To turn the path off, see Store control path.

Slow or stalled node: record a CPU profile

When the node answers slowly, or dkg logs shows Event loop blocked warnings, record a CPU profile while the problem is happening:

  • It needs the node-level admin token, which the CLI reads from the node's home directory. Agent-scoped tokens get 403.

  • The node records its main thread for 10 s by default and 60 s at most; a longer request is shortened to 60 s. One profile runs at a time: a second request gets 409.

  • The node writes cpu-<start time>.cpuprofile into the diagnostics folder of its home directory (~/.dkg, or DKG_HOME), and the command prints the path. The node does not delete old profiles.

  • Open the file in Chrome DevTools (Performance panel, Load profile) or any other .cpuprofile viewer.

  • The node profiles itself in process: no debugging port is opened, and the profiler is closed when the recording ends or fails. CPU use is slightly higher while it records. If the node starts to shut down, the profile ends early and is still written.

  • Over HTTP: POST /api/diagnostics/cpu-profile with {"seconds": 30}. The request stays open until the file is written.

Agent integrations

  • MCP: restart the client after setup and inspect the tool list.

  • Hermes: confirm the gateway is running and API_SERVER_ENABLED=true.

  • OpenClaw: restart the gateway after setup if the adapter does not appear.

Last updated

Was this helpful?