Skip to content

Troubleshooting

If services fail to start because ports are already in use:

Terminal window
# Check what's using the port
lsof -i :4000
# Stop conflicting services and retry
pnpm run setup:local

If you see configuration errors during local development:

Terminal window
cp .env.example .env.local

Then edit .env.local with your credentials using <YOUR_TOKEN> placeholders.

When running locally without LocalStack, SQS operations will time out. The pipeline uses in-process queues in development mode. Ensure NODE_ENV is not set to production when running locally.

If the worker fails to connect to Redis:

  1. Verify Docker is running: docker ps
  2. Check Redis is healthy: docker compose ps redis
  3. Ensure REDIS_URL is set correctly in your .env file

If pnpm cdk deploy fails with a bootstrap error:

Terminal window
cd packages/cdk
pnpm cdk bootstrap

This is a one-time operation per AWS account and region.

Always use safe placeholders in configuration files:

Placeholder Usage
<YOUR_TOKEN> LLM API keys, bot tokens, signing secrets
<SLACK_BOT_TOKEN> Slack Bot User OAuth token (starts with xoxb-)
<TEAMS_WEBHOOK_URL> Teams webhook URLs

Never commit real credentials to the repository.