Skip to main content
Troubleshoot problems with CI/CD integration, authentication, and automated workflows.

GitHub Actions: API Call Fails

Error:
Causes:
  1. Incorrect Bytebase URL
  2. Network restrictions
  3. DNS resolution issues
Solutions:

Unauthorized Error

Error:
Causes:
  1. Token expired or invalid
  2. Token not properly set in secrets
  3. Wrong token format
Solutions:
Test token manually:
Should return server info, not 401.
  1. Login to Bytebase
  2. Navigate to Settings → Service Accounts
  3. Find CI/CD service account
  4. Generate new token
  5. Update CI/CD secrets
Token should be:
  • Format: bb_xxxxxxxxxxxxxxxxxxxxxx
  • No quotes or extra characters
  • Properly base64 encoded if required
In GitHub Actions:

SQL Review Fails in CI

Error:
Cause: Migration violates configured SQL review rules. Solutions: Option 1: Fix the violation
Option 2: Adjust SQL review policy If rule is too strict:
  1. Navigate to SQL Review settings
  2. Adjust rule severity (ERROR → WARNING)
  3. Or disable rule if not needed

SQL Review Rules

Complete reference of 200+ rules
Option 3: Override for specific case Add comment justification in SQL:
Review failures prevent bad changes from reaching production. Fix violations rather than bypassing checks.

CI Timeout

Error:
Causes:
  1. Long-running migration exceeds CI timeout
  2. Network connectivity issues
  3. Bytebase server overloaded
Solutions:
GitHub Actions:
GitLab CI:

Workflow Dispatch Not Triggering

Error: Manual workflow doesn’t start when triggered. Causes:
  1. Wrong branch selected
  2. Insufficient permissions
  3. Workflow file syntax error
Solutions: Check workflow configuration:
Verify permissions:
  • Must have write access to repository
  • Workflow must be in default branch
  • Actions must be enabled for repository

Secrets Not Available

Error:
Solutions:
  1. Add secrets to repository:
    • Navigate to Settings → Secrets and variables → Actions
    • Click “New repository secret”
    • Add required secrets
  2. Environment-specific secrets:
  3. Organization secrets:
    • Can be shared across repositories
    • Set at organization level
    • Select which repositories can access

Next Steps

GitOps Tutorials

Step-by-step CI/CD setup guides

API Authentication

Learn about service accounts

Best Practices

CI/CD patterns and strategies

Troubleshooting Overview

Return to troubleshooting overview