Troubleshooting
Common issues and how to resolve them
Installation Issues
Bun Not Found
# Install Bun
curl -fsSL https://bun.sh/install | bash
# Reload your shell
source ~/.bashrc # or ~/.zshrcDependencies Won't Install
# Clear cache and reinstall
rm -rf node_modules bun.lock
bun installTurborepo Cache Issues
# Clear Turborepo cache
rm -rf .turbo
bun run buildDatabase Issues
Database Locked
SQLite can only handle one write at a time. If you see "database is locked":
# Stop all Sesame processes
pkill -f sesame
# Restart the server
bun run devReset Database
This deletes all data including users, tasks, and settings.
rm ./data/sesame.db
bun run dev # Migrations run automaticallyMigration Errors
If migrations fail:
# Check for schema issues
bun run db:push
# Or regenerate migrations
bun run db:generate
bun run db:migrateAuthentication Issues
Can't Log In
- Check that
BETTER_AUTH_SECRETis set and consistent - Clear browser cookies for the site
- Check server logs for authentication errors
OIDC Not Working
- Verify
OIDC_ENABLED=trueis set - Check callback URL matches exactly in your identity provider
- Ensure
BASE_URLis set to your public URL (including port if not 80/443) - Check server logs for OAuth errors
Session Expires Immediately
Ensure BASE_URL matches the URL you're accessing the app from, including the port (e.g., http://localhost:13531).
Agent Issues
Agent Not Starting
-
Verify the agent CLI is installed:
claude --version # For Claude Code codex --version # For Codex gh copilot --version # For Copilot -
Check API keys are configured (Settings → API Keys)
-
Review task logs for specific errors
"Authentication Failed" Error
- For API keys: verify the key is valid and has sufficient credits
- For subscriptions: check Agent Credentials are configured
- Try removing and re-adding credentials
Agent Hangs or Times Out
Increase the task timeout or check if the agent is waiting for input:
# Check if agent process is running
ps aux | grep -E "claude|codex|gemini"Output Not Streaming
- Check browser console for SSE connection errors
- Verify the task status is "processing"
- Try refreshing the page
GitHub Issues
"Invalid GitHub PAT" Error
- Verify the token format:
- Classic tokens start with
ghp_ - Fine-grained tokens start with
github_pat_
- Classic tokens start with
- Check the token hasn't expired
- Verify required permissions (Contents, Pull Requests, Metadata)
Can't See Repositories
- Check the PAT has access to the repository
- For organization repos, ensure the org allows PAT access
- For fine-grained tokens, verify the repo is in scope
Push Fails
- Check the PAT has write access (Contents: Read and Write)
- Verify branch protection rules allow pushes
- Check if the repo requires signed commits
Docker Issues
Container Won't Start
# Check logs
docker compose logs sesame
# Common issues:
# - Missing environment variables
# - Port already in use
# - Insufficient memoryPermission Denied
# Fix volume permissions (container runs as 'bun' user, UID 1000)
docker compose exec sesame chown -R bun:bun /app/data /app/sandboxesOut of Memory
Increase container memory limits:
services:
sesame:
deploy:
resources:
limits:
memory: 4GHealth Check Failing
Check if the server is responding:
# From inside the container
docker compose exec sesame curl http://localhost:13531/api/health
# From the host
curl http://localhost:13531/api/healthConfiguration Issues
Config Not Loading
- Check file exists:
config.json,config.yaml, etc. - Validate JSON/YAML syntax:
cat config.json | jq . # Validate JSON - Check admin UI at
/admin/settingsfor current values
Environment Variable Not Working
- Environment variables require a server restart
- Check for typos in variable names
- Verify
.envfile is in the project root
Setting Shows as Locked
Settings configured via environment variables are locked and cannot be changed via the admin UI. To unlock, remove the environment variable and restart.
Build Issues
Frontend Build Fails
# Clear build cache
rm -rf apps/web/dist apps/web/.turbo
# Rebuild
bun run build --filter=@sesame/webTypeScript Errors
# Run type check to see all errors
bun run check-types
# Check specific package
bun run check-types --filter=@sesame/sharedPerformance Issues
Slow Task Creation
- Check GitHub API rate limits
- Verify network connectivity to GitHub
- Large repositories take longer to clone
High Memory Usage
- Limit concurrent tasks
- Enable task cleanup (disable "Keep Alive")
- Increase container memory for Docker deployments
Slow Frontend
- Check browser dev tools for network issues
- Verify SSE connection is stable
- Clear browser cache
Development Issues
Hot Reload Not Working
# Restart the dev server
# Ctrl+C to stop, then:
bun run devPort Already in Use
# Find what's using port 13531
lsof -i :13531
# Kill the process
kill -9 <PID>Vite Proxy Errors
If the frontend can't reach the backend in development:
- Ensure backend is running on port 13531
- Check
apps/web/vite.config.tsproxy configuration - Look for CORS errors in browser console
Getting Help
If you can't resolve an issue:
- Check existing GitHub Issues
- Search the Discussions
- Open a new issue with:
- Sesame version
- Deployment method (Docker, Bun, etc.)
- Relevant logs
- Steps to reproduce