Skip to main content
This guide covers common issues you might encounter when running self-hosted Bilanc and how to resolve them.

Quick Diagnostics

Before diving into specific issues, run these commands to gather diagnostic information:

Container Startup Issues

Containers Fail to Start

Symptoms: Containers exit immediately or restart repeatedly. Diagnosis:
Common Causes:
Check that all required variables are set in your .env file:
Ensure these critical variables are set:
  • POSTGRES_PASSWORD
  • AI_PROVIDER and corresponding API key
  • GITHUB_ACCESS_TOKEN
Another service may be using the required ports.
Stop conflicting services or change the ports in docker-compose.yml.
Ensure you’re authenticated to pull the Bilanc image:
If you see permission errors, contact Bilanc support to verify your access.

Database Connection Issues

Cannot Connect to PostgreSQL

Symptoms: API or Dagster fails with database connection errors. Diagnosis:
Solutions:
Check your .env file:
Test the connection manually:
If using an external database, ensure the Docker containers can reach it:
For cloud databases, check security groups/firewall rules.
If using the bundled PostgreSQL, ensure services are on the same network:

Integration Issues

GitHub: 401 Unauthorized

Symptoms: GitHub pipeline fails with authentication errors. Solutions:
  1. Token expired: Generate a new Personal Access Token
  2. Insufficient scopes: Ensure token has repo and read:org scopes
  3. No repository access: Verify token owner has access to listed repositories

GitHub: No Data Appearing

Symptoms: Pipelines run successfully but no data in dashboard. Check:
  1. Verify GITHUB_REPOSITORY format is correct (owner/repo)
  2. Check the start_date in tenant_config.yaml isn’t in the future
  3. Ensure there’s activity in the repositories within the date range

Linear: No Data

Symptoms: Linear pipeline runs but no issues appear. Solutions:
  1. Verify API token is correct
  2. Check token owner has access to the workspace
  3. Ensure start_date covers the period with issue activity

Cursor: Connection Failed

Symptoms: Cursor pipeline fails to connect. Solutions:
  1. Verify CURSOR_API_KEY is correct
  2. Contact Bilanc support if the issue persists

Pipeline Issues

Pipelines Not Running

Symptoms: No data being ingested, Dagster shows no runs. Diagnosis:
Solutions:
Open Dagster UI at http://localhost:4000 and verify schedules are enabled.

Pipeline Failures

Symptoms: Pipelines start but fail partway through. Diagnosis:
  1. Open Dagster UI at http://localhost:4000
  2. Click on the failed run
  3. Expand the failed step to see error details
Common Causes:
  • API rate limits (wait and retry)
  • Invalid credentials (check tokens)
  • Network timeouts (check connectivity)

API Issues

API Returns 500 Errors

Symptoms: Dashboard shows errors, API requests fail. Diagnosis:
Common Causes:
Restart the API service:
Check container memory usage:
Increase memory allocation if needed.

API Health Check


Dashboard Issues

Dashboard Not Loading

Symptoms: Browser shows error or blank page at http://localhost:3000. Diagnosis:
Solutions:
The dashboard needs to reach the API:
Verify NEXT_PUBLIC_API_URL is set correctly for your deployment.

Email Issues

Emails Not Sending

Symptoms: Scheduled reports or notifications not arriving. Diagnosis:
Solutions:
  1. Verify RESEND_API_KEY is correct
  2. Check DEFAULT_SENDER_EMAIL is a valid sender in Resend
  3. Verify the sender domain is configured in Resend

AI Insights Issues

AI Insights Not Generating

Symptoms: Insights section is empty or shows errors. Diagnosis:
Solutions:
  1. Verify AI_PROVIDER is set to a valid value (openai, anthropic, google-ai)
  2. Check the corresponding API key is set and valid
  3. Ensure you have API credits/quota remaining

Performance Issues

Slow Dashboard

Symptoms: Dashboard takes long to load or times out. Solutions:
  1. Scale PostgreSQL: Increase CPU/RAM for the database
  2. Check indexes: Ensure database has proper indexes
  3. Reduce data range: Use shorter time ranges in queries

High Memory Usage

Symptoms: Containers being killed or system running slow. Solutions:

Getting Help

If you’re still experiencing issues:
  1. Collect logs:
  2. Check configuration:
  3. Contact support: Email support@bilanc.co with:
    • Description of the issue
    • Steps to reproduce
    • Relevant log excerpts
    • Your configuration (with secrets redacted)