Appearance
Frequently Asked Questions (FAQ)
Find quick solutions to common issues. Use the categories below to jump to a specific section.
Quick Navigation
- 🔑 Account & Access (UIDs, Tokens, Permissions)
- 🐳 Installation & Deployment (Docker, Backups, Updates)
- 🔍 Analysis & Scans (Remote Scan, Exclusions, RAM)
- 🤖 SCM & Workflows (PRs, Commits, Webhooks)
- 🛠️ Troubleshooting (Errors 401, 403, 422)
🔑 Account & Access
How do I get the Repository UID (RepoUID)?
The RepoUID is a unique identifier required for CLI scans.
- Method 1: Open your repository in the browser; the UID is the string at the end of the URL.
- Method 2: Go to Repository Dashboard > Three Dots (...) > More Information.
- Detailed Guide →
How do I generate an Access Token (EAT)?
- Log in to your instance.
- Navigate to User Settings > Access Tokens.
- Click Generate Token. Note: Copy it immediately; it will not be shown again.
What permissions does my access token need?
For CLI scans and API access, your token needs:
- Repository Access: Read permissions for target repositories
- Scan Permissions: Ability to create and upload scan results
- Project Access: View access to projects containing your repositories
🐳 Installation & Deployment
What are the minimum system requirements?
For standard use, we recommend:
- CPU: 4 Cores (8 recommended for large repos)
- RAM: 16GB minimum (32GB for enterprise workloads)
- Storage: SSD with at least 50GB free space
- Full Requirements Guide →
How do I handle self-signed SSL certificates?
If your Git server uses a self-signed certificate, you must mount your .crt file to the container:
bash
--volume /path/to/cert.crt:/opt/gamma/certs/cert.crtHow do I backup my data before upgrading?
Always create backups before any upgrade:
- Database backup:
docker exec -t embold_db_1 pg_dump -U postgres postgres > backup.sql - File backup:
tar -czf backup.tar.gz /home/user/BrowserStackCodeQuality/gamma_data
🔍 Analysis & Scans
Where can I download the CLI Scanner?
The CLI tool is essential for remote and pipeline-based scans.
How do I download the Repository Configuration?
- Open your Repository Dashboard.
- Click the Three Dots (...) in the top right.
- Select Download Repository Configuration.
- Place this
repository-configuration.jsonat your repo root.
How do I exclude specific folders (e.g., node_modules)?
Add the paths to the excludes array in your repository-configuration.json:
json
{
"excludes": [
"**/node_modules/**",
"**/test/**",
"**/vendor/**",
"**/build/**",
"**/*.min.js"
]
}My scan is running out of memory. How do I fix this?
Large codebases need more RAM allocation:
- Docker: Add
--memory 8gto your docker run command - CLI: Set
JAVA_OPTS=-Xmx8genvironment variable - Performance Optimization Guide →
How long should a scan take?
Typical scan times:
- Small repos (<100k LoC): 2-5 minutes
- Medium repos (100k-1M LoC): 10-30 minutes
- Large repos (>1M LoC): 1-3 hours
- Delta scans: <10 seconds regardless of size
🤖 SCM & Workflows
How do I enable Pull Request analysis?
- Go to Repositories > [Your Repo] > Edit
- Toggle Enable Pull Request Analysis
- Webhooks are created automatically if your VCA has permissions
Why aren't my PRs being scanned?
Check these common issues:
- Webhook exists: Verify webhook is created in your SCM settings
- Token permissions: Ensure VCA token has webhook and PR comment rights
- Server accessibility: Your SCM must reach your BrowserStack Code Quality server URL
- Troubleshooting Guide →
What's the difference between Commit and PR workflows?
- Commit Workflow: Enterprise-only, scans every commit (GitHub/Bitbucket)
- PR Workflow: All licenses, scans pull requests (GitHub/GitLab/Bitbucket/Azure)
- Workflow Comparison →
🛠️ Troubleshooting
Why am I getting a 401 Unauthorized error?
Your Access Token is either missing, expired, or doesn't have the correct permissions:
- Check if
EMBOLD_TOKENenvironment variable is set:echo $EMBOLD_TOKEN - Regenerate a new token in User Settings > Access Tokens
- Verify token has repository access permissions
What does a 422 Unprocessable Entity error mean?
This usually occurs during webhook setup:
- Server accessibility: Ensure your BrowserStack Code Quality server URL is reachable from your SCM
- Duplicate webhooks: Check if webhook already exists for this repository
- URL format: Verify webhook URL ends with
/api/views/repositories/webhooks
My Docker container won't start. What should I check?
Common startup issues:
- Port conflicts: Ensure port 3089 is available:
netstat -tlnp | grep 3089 - Memory limits: Verify sufficient RAM allocated to Docker
- Volume permissions: Check file ownership:
chown -R 1001:1001 gamma_data/ - Database connectivity: Ensure database container is healthy
How do I check the application logs?
Use these commands to diagnose issues:
bash
# View recent logs
docker logs BrowserStackCodeQuality --tail 50
# Follow live logs
docker logs -f BrowserStackCodeQuality
# Search for errors
docker logs BrowserStackCodeQuality 2>&1 | grep -i errorMy scan completed but I don't see results. Why?
Possible causes:
- Analysis in progress: Check Development History for scan status
- No issues found: Verify scan actually analyzed files (check logs)
- Permission issues: Ensure user has view access to repository results
- Delta scan limitations: New repositories need full scan first
Need More Help?
Can't find your answer? Try these resources:
- Installation Guide - Complete setup procedures
- User Guide - Getting started with the UI
- Integration Guides - SCM and CI/CD setup
- Troubleshooting - Emergency procedures and common fixes
