Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Troubleshooting

This guide covers common issues and solutions when running OpenClaw on Cloudeka.

Quick Diagnostic Commands

Check pod status

kubectl get pods -n openclaw

Check Pod Events

kubectl describe pod -n openclaw <pod-name>

View Logs

kubectl logs -n openclaw deployment/openclaw -f

Ciew Logs for specific container

kubectl logs -n openclaw deployment/openclaw -c main -f
kubectl logs -n openclaw deployment/openclaw -c init-skills -f

Check PVC

kubectl get pvc -n openclaw

Post forward to test locally

kubectl port-forward -n openclaw svc/openclaw 18789:18789

Common Issues

Pod Not Starting

Issue: CrashLoopBackOff

Symptoms:

Possible Causes:

  1. Missing required environment variables

    Solution: Create the secret with required variables:

  2. Channel enabled but token not setIf you enabled a channel (Slack, Telegram, Discord) in openclaw.json but didn't set the corresponding environment variable, OpenClaw will fail to start.Error example: SLACK_BOT_TOKEN is not setSolution: Either add the token to your secret OR comment out the channel in openclaw.json:

  3. Persistence mount references non-existent secret/ConfigMapIf you uncommented persistence entries (kubeconfig, skills, MCP config) without creating the corresponding secret/ConfigMap, the pod will fail.Error example: Error: couldn't find secret openclaw-kubeconfigSolution: Create the secret first, or keep the persistence commented out:

  4. Invalid openclaw.json syntax

    Look for: Warning: existing config is not valid JSONSolution: Fix JSON syntax in values.yaml

  5. Image pull errors

    Solution: Verify image registry access and credentials

Issue: Init container fails

Symptoms:

Solution:

Cannot Pair Device

Issue: Pairing request not appearing

Symptoms: You open http://localhost:18789 but no pairing request shows

Solutions:

  1. Check if port-forward is running:

  2. Verify gateway token:

  3. Check gateway logs:

Issue: Pairing approval fails

Symptoms: Request appears but approval doesn't work

Solution:

Skills Not Loading

Issue: Skill not found

Symptoms: Agent says skill doesn't exist

Diagnosis:

Solutions:

  1. Single-file skill: Verify ConfigMap exists and path matches

  2. Tar-based skill: Verify archive structure

  3. Redeploy after adding skill:

Issue: Nested skill files missing

Symptoms: SKILL.md loads but other files in skill folder are not found

Solution: Use the tar archive method instead of flat ConfigMap mounts. See Skills Guide.

Agent Not Responding

Issue: Agent replies to wrong channel

Symptoms: Message sent to Slack but agent responds elsewhere or not at all

Diagnosis:

Solution: Verify bindings in openclaw.json match your channel IDs:

Issue: Multi-agent routing not working

Diagnosis:

Solution: Verify:

  1. Each agent has unique workspace path

  2. Bindings are in order (most specific first)

  3. Channel IDs are correct

Channel Connection Issues

Slack: App not responding

Diagnosis:

Common issues:

  1. Socket Mode not enabled — Enable in Slack App settings

  2. Missing scopes — Add required OAuth scopes

  3. Invalid tokens — Verify bot token and app token

Telegram: Bot not responding

Diagnosis:

Common issues:

  1. Bot token invalid — Regenerate via @BotFather

  2. Webhook conflicts — Ensure no other webhook is set

  3. Not paired — Complete Telegram pairing after installation

Telegram Pairing:

After enabling Telegram, you must pair the bot:

Example: kubectl exec -n openclaw deployment/openclaw -c main -- node dist/index.js pairing approve telegram PML9NL9U

kubectl Access Not Working

Issue: kubectl commands fail from agent

Symptoms: Agent says kubectl not found or cannot access cluster

Diagnosis:

Solution: Verify kubeconfig secret exists and is mounted correctly:

MCP Server Connection Issues

Issue: MCP server unreachable

Symptoms: mcporter call fails with connection error

Diagnosis:

Solution: Verify network policy allows egress to MCP server

PVC Issues

Issue: PVC in pending state

Diagnosis:

Solution: Check StorageClass is available in your cluster

Issue: Data lost after restart

Cause: PVC was deleted or configMode: overwrite is set

Solution:

  • Use configMode: merge to preserve runtime changes

  • Don't delete PVC unless intentionally

Performance Issues

Issue: Slow agent responses

Diagnosis:

Solution: Increase resource limits in values.yaml:

Getting Help

If issues persist:

  1. Collect diagnostic info:

  2. Check OpenClaw documentation: https://docs.openclaw.ai

Useful Commands Reference

Purpose
Command

List agents

kubectl exec -n openclaw deployment/openclaw -- node dist/index.js agents list

List devices

kubectl exec -n openclaw deployment/openclaw -- node dist/index.js devices list

Approve device

kubectl exec -n openclaw deployment/openclaw -- node dist/index.js devices approve <id>

Pair Telegram

kubectl exec -n openclaw deployment/openclaw -c main -- node dist/index.js pairing approve telegram <CODE>

Shell into pod

kubectl exec -n openclaw deployment/openclaw -it -- sh

Check config

kubectl exec -n openclaw deployment/openclaw -- cat /home/node/.openclaw/openclaw.json

Restart pod

kubectl rollout restart deployment openclaw -n openclaw

Last updated