Access and Authentication Issues
”Only organization owners and admins can access agents”
Symptoms: User sees this message when trying to access Agents, Gateways, or other admin pages. Cause: TheisAdmin flag is false in the frontend. This can happen due to:
isSignedInis false (token not loaded)- CORS blocking
/api/v1/organizations/me/memberrequest - User hasn’t completed onboarding (missing timezone)
backend/TECHNICAL.md:787-804
Verification Steps:
- Check if token is working:
- Check CORS configuration:
http://72.62.201.147:3000,http://72.62.201.147).
- Verify token in frontend env:
LOCAL_AUTH_TOKEN in backend .env.
Solutions:
Fix 1: Update CORS origins
Edit backend/.env:
“missing scope: operator.read”
Symptoms: Template sync or gateway operations fail with this error. Cause: Gateway doesn’t havedangerouslyDisableDeviceAuth=true in configuration.
Source: backend/TECHNICAL.md:813-828
Solution:
Edit ~/.openclaw/openclaw.json on the gateway host:
Template Sync Issues
”unable to read AUTH_TOKEN from TOOLS.md (run with rotate_tokens=true)”
Symptoms: Template sync fails with this error message. Cause: The agent entries (mc-*) don’t exist in the gateway’s openclaw.json, so the gateway cannot serve the TOOLS.md file.
Source: backend/TECHNICAL.md:806-811
Solution:
Run sync with rotate_tokens=true to regenerate tokens and recreate agent entries:
rotate_tokens=true:
- First-time gateway setup
- Agents were manually deleted from
openclaw.json - Tokens were compromised
- Gateway was reinstalled or reset
”Gateway rejected required lead workspace files as unsupported”
Symptoms: Template sync fails when syncing board lead agents. Cause: Gateway version is too old and doesn’t support required workspace files (AGENTS.md, ROLES.md). Solution: Upgrade the gateway to version2026.02.9 or later:
backend/.env:
Service Management Issues
Frontend not starting (EADDRINUSE: port 3000)
Symptoms: Frontend service fails to start, port 3000 already in use. Cause: Previous process died but child process is holding the port. Source:backend/TECHNICAL.md:833-837
Solution:
Kill the process holding port 3000:
Backend fails to start
Check logs:-
Database connection failed:
- Verify PostgreSQL is running:
systemctl status postgresql - Check
DATABASE_URLinbackend/.env
- Verify PostgreSQL is running:
-
Redis connection failed:
- Verify Redis is running:
systemctl status redis - Check
RQ_REDIS_URLinbackend/.env
- Verify Redis is running:
-
Port already in use:
-
Migration failed:
Worker not processing jobs
Check worker status:PONG.
Check job queue:
Database Issues
Timezone not set (redirect to /onboarding)
Symptoms: User is redirected to/onboarding even after completing it.
Cause: isOnboardingComplete(profile) requires both name and timezone to be set.
Source: backend/TECHNICAL.md:839-852
Solution:
Set timezone directly in database:
Migration out of sync
Check current migration:Database connection errors
Verify database is accessible:postgresql+psycopg://user:password@host:5432/database
Test connection from Python:
Agent Provisioning Issues
Agent stuck in “provisioning” status
Check agent status:Agent not responding to heartbeat
Verify agent session exists:BASE_URL=http://your-backend-url:8000AUTH_TOKEN=token-valueAGENT_ID=uuid
Gateway RPC calls failing
Test gateway connectivity:backend/.env and gateway configuration.
Performance Issues
Slow API responses
Check database query performance:High memory usage
Check process memory:Debugging Tools
Enable debug logging
Editbackend/.env:
Query database directly
Test API endpoints
Getting Help
If issues persist:-
Collect logs:
-
Export database state:
-
Check configuration:
-
System information: