Log Locations
Access logs for debugging:
Component Docker Command Direct Path (if not containerized) Backend docker compose logs -f bitbonsai-backendjournalctl -u bitbonsai-backend -fFrontend docker compose logs -f bitbonsai-frontend/var/log/bitbonsai-frontend.logPostgreSQL docker compose logs -f postgres/var/lib/postgresql/data/log/FFmpeg Output Check job details in UI /tmp/bitbonsai/encoding-*/ffmpeg.log
Add -f flag to follow logs in real-time: docker compose logs -f bitbonsai-backend
Full System Reset (Nuclear Option)
This will delete all job history and settings. Use only as last resort.
# Stop all services
docker compose down
# Remove all data (CAUTION: Irreversible)
docker volume rm bitbonsai_postgres-data
# Remove temp files
rm -rf /path/to/temp/bitbonsai/ *
# Start fresh
docker compose up -d
# Verify clean startup
docker compose logs bitbonsai-backend | grep "Application listening"
Database Backup & Restore
Backup:
# Create backup
docker compose exec postgres pg_dump -U bitbonsai bitbonsai > backup- $( date +%Y%m%d ) .sql
# Verify backup
ls -lh backup- * .sql
Restore:
# Stop backend (to prevent write conflicts)
docker compose stop bitbonsai-backend
# Restore from backup
docker compose exec -T postgres psql -U bitbonsai -d bitbonsai < backup-20260111.sql
# Restart backend
docker compose start bitbonsai-backend
Reset Stuck Jobs (Safe)
Reset all jobs to fresh state without losing configuration:
-- Connect to database
docker compose exec postgres psql - U bitbonsai - d bitbonsai
-- Reset all jobs to QUEUED
UPDATE "EncodingJob"
SET status = 'QUEUED' ,
progress = 0 ,
"assignedNodeId" = NULL ,
"startedAt" = NULL ,
"completedAt" = NULL
WHERE status IN ( 'ENCODING' , 'CORRUPTED' , 'FAILED' );
-- Verify reset
SELECT status , COUNT ( * ) FROM "EncodingJob" GROUP BY status ;
When to Report Bugs
If you’ve tried the above fixes and still experiencing issues, please report to GitHub:
Report Issue on GitHub Create a new issue with logs and reproduction steps
Include in your report:
BitBonsai version (docker compose images | grep bitbonsai)
Deployment method (Docker Compose, Unraid, LXC)
Node configuration (single vs. multi-node)
Full error logs (use docker compose logs --tail=100 bitbonsai-backend)
Steps to reproduce the issue
Expected vs. actual behavior
Next Steps
Advanced Debugging Enable debug logging, monitor resources, network debugging
Common Errors Fix specific error messages and issues