Skip to content

Troubleshooting & FAQ

This page provides diagnostic steps and solutions for issues encountered when operating brūhi Desktop and self-hosting brūhi Cloud.


Microphone or Audio Interface Not Detected

Section titled “Microphone or Audio Interface Not Detected”

Symptom: Your USB audio interface, microphone, or headphones do not appear in the audio device selectors.

Solutions:

  1. OS Microphone Permissions:
    • macOS: Go to System Settings → Privacy & Security → Microphone and ensure brūhi is toggled ON.
    • Windows: Go to Settings → Privacy & Security → Microphone and ensure “Let desktop apps access your microphone” is enabled.
  2. Device Enumeration:
    • Audio devices are enumerated upon application launch. If you connected hardware after opening brūhi, go to System → Audio Monitoring and click the device selector, or restart the application.
  3. WASAPI Exclusive Mode Conflict (Windows):
    • Ensure other audio software (DAW, Discord, OBS Studio) is not locking the audio interface in exclusive mode.

Audio Crackling, Dropouts, or Buffer Underruns

Section titled “Audio Crackling, Dropouts, or Buffer Underruns”

Symptom: Stuttering audio or metallic clicks during playback or live microphone monitoring.

Solutions:

  1. Open System Settings → Audio Monitoring.
  2. Increase your hardware buffer size (e.g., from 128 frames to 256 or 512 frames).
  3. Ensure all active input and output devices are configured to 48,000 Hz (48 kHz) in your OS sound control panel.
  4. If running heavy DSP effects (multiband compressor, 5-band parametric EQ, reverb), temporarily disable individual modules to reduce CPU load.

Symptom: High-pitched howling or acoustic echo when opening the microphone.

Solutions:

  1. Enable MON Gate: In brūhi Desktop, the master monitor output (MON) features an automated speaker gate that silences room speakers whenever a microphone fader is opened. Ensure studio monitors are connected to the MON bus rather than the raw Master bus.
  2. Use Headphones for PFL: Route Pre-Fade Listen (PFL) and cue monitoring exclusively to sealed headphones.

Symptom: Clicking Go Live or Take Control shows “Microphone access denied” or fails to start audio capture.

Solutions:

  1. HTTPS Context Required: Browsers strictly forbid microphone capture (getUserMedia) on unencrypted HTTP connections. Ensure you are accessing the dashboard over valid HTTPS (https://radio.yourdomain.com).
  2. Browser Permissions: Click the site settings icon in your browser’s address bar and verify Microphone is set to Allow.
  3. Audio Routing: In browser settings, confirm the intended physical microphone input is selected as the default input device.

Symptom: Web listeners report endless buffering or 404 errors when tuning into the stream.

Solutions:

  1. Station On-Air State: Verify that the station is in ON AIR or AUTO DJ mode in the studio console.
  2. In-Memory tmpfs Volume: Verify that the HLS volume is mounted and actively receiving audio chunks:
    Terminal window
    docker compose exec bruhi-cloud ls -lh /hls
    You should observe active .m3u8 playlist files and rolling audio segments.
  3. Reverse Proxy Health: Check that Caddy is serving HLS segments:
    Terminal window
    docker compose logs --tail=50 caddy

Database Locked (sqlite3.OperationalError: database is locked)

Section titled “Database Locked (sqlite3.OperationalError: database is locked)”

Symptom: Server logs show database is locked or API requests return HTTP 500.

Solutions:

  1. brūhi Cloud runs SQLite in WAL (Write-Ahead Logging) mode. A hung backup process or external query can hold a transaction lock.
  2. Force a WAL checkpoint to flush pending transactions:
    Terminal window
    docker compose exec bruhi-cloud sqlite3 /app/data/bruhi.db "PRAGMA busy_timeout = 5000; PRAGMA wal_checkpoint(TRUNCATE);"
  3. If the lock persists, restart the container:
    Terminal window
    docker compose restart bruhi-cloud

Symptom: Broadcast recordings fail, SQLite writes fail with disk I/O error, or Docker crashes.

Solutions:

  1. Check host disk utilization:
    Terminal window
    df -h /
    docker system df
  2. Prune old container images:
    Terminal window
    docker image prune -a --filter "until=72h" -f
  3. Clean temporary recording segments:
    Terminal window
    docker compose exec bruhi-cloud find /app/audio_files/recordings -name "*.part" -mtime +2 -delete
  4. Connect an S3-compatible storage bucket (AWS S3, Cloudflare R2, MinIO) in Admin Dashboard → Storage & Maintenance to offload broadcast archives.

Symptom: Studio displays “Connecting to Audio Engine” or audio output freezes.

Solutions:

  1. Check if the internal bruhi-audio daemon is alive:
    Terminal window
    docker compose exec bruhi-cloud curl -s http://localhost:7700/healthz
  2. Restart the application container cleanly:
    Terminal window
    docker compose restart bruhi-cloud

3. Incident Escalation: Diagnostic Information to Collect

Section titled “3. Incident Escalation: Diagnostic Information to Collect”

When escalating an outage or opening an issue report, collect these command outputs:

Terminal window
# System status & restart counts
docker compose ps
# Application logs
docker compose logs --tail=150 bruhi-cloud
# Reverse proxy logs
docker compose logs --tail=50 caddy
# System memory & disk utilization
free -m
df -h /
# Database integrity check
docker compose exec bruhi-cloud sqlite3 /app/data/bruhi.db "PRAGMA integrity_check;"