Troubleshooting
Common issues and how to fix them
Troubleshooting
Solutions to common issues you might encounter with Claudear.
Linear Issues
ngrok Tunnel Not Starting
Symptoms:
- Error: "Failed to establish ngrok tunnel"
- No public URL in logs
Solutions:
-
Check ngrok auth token:
ngrok config check -
Verify token in .env:
NGROK_AUTHTOKEN=your-token-here -
Test ngrok manually:
ngrok http 8000 -
Check ngrok status: Visit status.ngrok.com
Webhook Events Not Received
Symptoms:
- Moving issues to Todo does nothing
- No events in Claudear logs
Solutions:
-
Verify webhook URL:
- Must end with
/webhooks/linear - Must use HTTPS
- Must end with
-
Check webhook secret:
- Same value in Linear and
.env - No trailing whitespace
- Same value in Linear and
-
Test the endpoint:
curl https://your-url.ngrok.io/webhooks/linear/test -
Check Linear webhook logs:
- Go to Linear Settings → API → Webhooks
- Click on your webhook
- Check delivery history
Wrong State IDs
Symptoms:
- Issues not picked up
- State changes not detected
Solutions:
-
Verify state names match exactly:
LINEAR_STATE_TODO=Todo # Must match Linear exactly -
Check case sensitivity:
- Linear state names are case-sensitive
Notion Issues
Tasks Not Being Picked Up
Symptoms:
- Pages moved to Todo are ignored
- No polling activity in logs
Solutions:
-
Verify database is shared with integration:
- Open database → ... → Add connections
- Check "Claudear" is listed
-
Check status value matches:
- Claudear auto-detects common names (Todo, In Progress, Done)
- For custom names, use
NOTION_{DB}_STATUS_TODO=YourStatus
-
Verify database ID:
# Check ID is correct (32 chars, no hyphens in env var name) NOTION_DATABASE_ID=abc123def456 -
Check polling is running:
- Look for "Polling Notion database" in logs
Unauthorized Errors
Symptoms:
- "API token is invalid" errors
- 401 responses in logs
Solutions:
-
Check API key is valid:
- Regenerate at notion.so/my-integrations
-
Verify database is shared:
- Each database must explicitly add the integration
Properties Not Appearing
Symptoms:
- Claudear ID, Branch, etc. not showing on pages
Solutions:
- Claudear creates properties on first task pickup
- Trigger a task by moving a page to "Todo"
- Check logs for property creation errors
- Verify integration has "Update content" capability
Rate Limiting
Symptoms:
- 429 errors in logs
- Tasks not being picked up consistently
Solutions:
-
Increase poll interval:
NOTION_POLL_INTERVAL=30 -
Reduce number of databases
Task Execution Issues
Claude Not Starting
Symptoms:
- Task stays in PENDING state
- No Claude Code output
Solutions:
-
Check Claude Code CLI:
claude --version claude whoami -
Verify authentication:
claude auth status -
Check worktree creation:
ls -la /path/to/repo/.worktrees/
Tasks Keep Failing
Symptoms:
- Tasks immediately fail
- Error comments on tasks
Solutions:
-
Check the error message in the comment
-
Review logs:
LOG_LEVEL=DEBUG claudear -
Common causes:
- Missing dependencies in target repo
- Git configuration issues
- Insufficient permissions
Worktree Creation Fails
Symptoms:
- Error: "Failed to create worktree"
- Git errors in logs
Solutions:
-
Check git status:
cd /path/to/repo git status git worktree list -
Clean up stale worktrees:
git worktree prune -
Check disk space:
df -h
Comments Not Detected
Symptoms:
- Blocked tasks don't resume
- Your comments are ignored
Solutions:
-
Check comment polling:
COMMENT_POLL_INTERVAL=10 # More frequent polling -
Verify you're commenting as yourself:
- Comments from bots/integrations may be ignored
Multi-Provider Issues
Wrong Repository Used
Symptoms:
- Task creates worktree in wrong repo
- PR created in wrong repo
Solutions:
-
Check per-instance repo paths:
LINEAR_ENG_REPO=/correct/path/for/eng NOTION_ABC123_REPO=/correct/path/for/abc123 -
Verify team/database ID matches:
- Check startup banner shows correct mappings
Database Schema Errors
Symptoms:
- "no such column: provider" errors
- SQLite errors on startup
Solutions:
-
Run migration:
python -m claudear.scripts.migrate_db -
Or delete and recreate:
rm claudear.db claudear # Creates fresh database
Performance Issues
High Memory Usage
Solutions:
-
Reduce concurrent tasks:
MAX_CONCURRENT_TASKS=2 -
Check for stuck processes:
ps aux | grep claude
Slow Task Startup
Solutions:
-
Pre-fetch base branch:
cd /path/to/repo git fetch origin main -
Use local base branch:
- Ensure
mainis up to date locally
- Ensure
Getting Help
If none of these solutions work:
-
Enable debug logging:
LOG_LEVEL=DEBUG claudear 2>&1 | tee debug.log -
Test the multi-provider setup:
python -m claudear.scripts.test_multi_provider -
Check GitHub Issues: github.com/ianborders/claudear/issues
-
Open a new issue with:
- Debug logs (sanitized)
- Steps to reproduce
- Environment info (OS, Python version)