Troubleshooting Guide
Solutions to common issues encountered when running or using OpenCodeHub.
π Diagnostics
Before trying specific fixes, check the system health.
1. Check Container Status (Docker)
docker-compose ps
All containers (app, postgres, redis) should be Up.
2. Check Application Logs
docker-compose logs -f app
Look for "Error" or "Exception" stacks.
3. Check Database Connection
docker-compose exec app npm run db:check
π Common Errors
Git Push Failed: 403 Forbidden
Symptoms:
- You try to push code and get
remote: Forbidden. - CLI says
Error: 403.
Possible Causes:
- Protected Branch: You are trying to push directly to
mainon a protected branch.- Fix: Create a new branch and open a Pull Request.
- Permissions: You only have
Readaccess to the repository.- Fix: Ask an admin to grant
WriteorAdminaccess.
- Fix: Ask an admin to grant
- LFS Locking: Someone else has locked a binary file.
Repository Not Found (404)
Symptoms:
git clonefails withrepository not found.
Possible Causes:
- Private Repo: You are not logged in, or your token is invalid.
- Fix: Run
och auth login.
- Fix: Run
- Typo: Check the owner and repository name.
- Deleted: The repository was deleted.
Database Connection Refused
Symptoms:
- App crashes on startup.
- Logs show
P1001: Can't reach database server.
Solutions:
- Wait: Postgres takes a few seconds to start. The app usually retries.
- Network: Ensure
DATABASE_URLuses the correct internal hostname (postgresin Docker,localhostif running locally). - Credentials: Check that
POSTGRES_PASSWORDindocker-compose.ymlmatchesDATABASE_URL.
Runner: "Job stuck in queue"
Symptoms:
- CI pipelines stay "Pending" forever.
Solutions:
- Check Runner: Is a runner registered and active?
- Go to Admin Panel > Runners.
- Docker Socket: Ensure the runner has access to
/var/run/docker.sock. - Resource Limits: The runner might be OOM (Out of Memory). Increase Docker memory limit.
White Screen / 500 Error
Symptoms:
- The website loads a blank page.
Solutions:
- Build Mismatch: You might be serving an old frontend with a new backend API.
- Fix: Hard refresh (Ctrl+F5) or rebuild the docker image.
- Environment Variables: Check if
NEXT_PUBLIC_SITE_URLmatches your actual domain.
π Getting Support
If you can't resolve the issue:
- Search Documentation: Use the search bar for related keywords.
- Check GitHub Issues: See if others have reported it.
- Join Discord: Ask the community in
#support.
When reporting bugs, include:
- OpenCodeHub Version (footer).
- Deployment method (Docker vs. Source).
- Logs (redacted).