-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Temp edited this page Jan 27, 2026
·
3 revisions
Common issues and solutions for DO Manager.
Causes:
- Incorrect
ACCOUNT_ID - API token missing required permissions
Solutions:
- Verify
ACCOUNT_IDis correct (find it in your dashboard URL:dash.cloudflare.com/ACCOUNT_ID/...) - Ensure API token has Workers Scripts Read permission
- If using Global API Key, verify the email is correct
Test your API token:
curl -X GET "https://api.cloudflare.com/client/v4/accounts/${ACCOUNT_ID}/workers/scripts" \
-H "Authorization: Bearer ${API_KEY}"Causes:
- Misconfigured Cloudflare Access settings
- Incorrect
TEAM_DOMAINorPOLICY_AUD
Solutions:
- Check
TEAM_DOMAINincludeshttps://(e.g.,https://yourteam.cloudflareaccess.com) - Verify
POLICY_AUDmatches your Access application's AUD tag exactly - Ensure your email/identity is included in the Access policy
- Clear browser cookies and try again
Solutions:
- Re-authenticate via Cloudflare Access
- Check if your Access session has expired
- Verify the Access application is configured for your domain
Causes:
- No Durable Objects deployed in your account
- System namespaces are being filtered
Solutions:
- Deploy a Worker with Durable Objects first
- System namespaces (
kv-manager_*,d1-manager_*,do-manager_*) are filtered by default - Add namespaces manually if auto-discovery doesn't work
Causes:
- Admin hook methods not added to DO class
- Endpoint URL not set in namespace settings
- Worker not deployed
Solutions:
- Install
do-manager-admin-hooksNPM package in your Worker - Call
this.handleAdminRequest(request)in your DO's fetch method - Set the Admin Hook Endpoint URL in namespace settings
- Redeploy your Worker after adding admin hooks
Causes:
- Admin hooks using incorrect export/import format
Solutions:
- Ensure export returns:
{ "data": {...}, "exportedAt": "...", "keyCount": N } - Ensure import accepts:
{ "data": {...} } - Use the
do-manager-admin-hooksNPM package which handles this automatically
Solutions:
- Verify the instance ID is correct
- Check if the Durable Object still exists
- Ensure admin hooks are deployed and accessible
- Test the admin endpoint directly:
curl https://your-worker.workers.dev/admin/list
Solutions:
- Check Worker logs in Cloudflare dashboard
- Verify the DO has the correct admin hook endpoints
- For SQLite DOs, ensure the SQL is valid
- Check for storage quota limits (10GB per DO)
Check logs:
docker logs do-managerCommon causes:
- Missing environment variables
- Port already in use
Solutions:
- Ensure all required environment variables are set:
ACCOUNT_IDAPI_KEYTEAM_DOMAINPOLICY_AUD
- Try a different port:
-p 8788:8787
Solutions:
- Verify container is running:
docker ps - Check the port mapping is correct
- On Docker Desktop, ensure the container has network access
Solutions:
- Check logs for error messages
- Verify environment variables are properly escaped
- Try running interactively:
docker run -it --rm writenotenow/do-manager:latest
Causes:
- Invalid SQL syntax
- Table doesn't exist
- Trying SQL on KV-backed DO
Solutions:
- Verify the namespace is SQLite-backed (not KV)
- Check SQL syntax is valid SQLite
- Use
SELECT name FROM sqlite_master WHERE type='table'to list tables
Solutions:
- The DO may not have created any tables yet
- Tables are created on first use — interact with the DO to initialize
- Check if using the correct instance
Causes:
- R2 bucket not configured
- Export endpoint not working
Solutions:
- Verify R2 bucket
do-manager-backupsexists - Check R2 binding in
wrangler.toml - Test export endpoint directly
Solutions:
- Verify the backup exists in R2
- Check import endpoint is working
- Ensure data format is compatible
Solutions:
- Reduce the number of instances/keys displayed
- Use search/filter to narrow results
- Check Cloudflare Worker CPU limits
Solutions:
- Break batch operations into smaller batches
- Check Worker timeout limits (30s for Workers)
- For large exports, consider paginating
Solutions:
- Ensure both servers are running:
- Frontend:
npm run dev(port 5173) - Worker:
npx wrangler dev --config wrangler.dev.toml --local(port 8787)
- Frontend:
- Initialize local D1:
npx wrangler d1 execute do-manager-metadata-dev --local --file=worker/schema.sql
Solutions:
- Run
npm installto install dependencies - Delete
node_modulesand reinstall:rm -rf node_modules npm install
Solutions:
- Run
npm run typecheckto see all errors - Ensure TypeScript version matches project (5.9.3)
If your issue isn't listed here:
-
Search Issues: GitHub Issues
-
Email Support: admin@adamic.tech
When reporting issues, include:
- DO Manager version
- Deployment method (Workers or Docker)
- Error messages from browser console or Worker logs
- Steps to reproduce