mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
4.4 KiB
4.4 KiB
Troubleshooting
Common issues and their solutions.
Installation Issues
Docker Container Won't Start
Symptoms: Container exits immediately or fails health check
Solutions:
- Check logs:
docker-compose logs -f
-
Verify Docker resources (2GB RAM minimum)
-
Check ports aren't in use:
lsof -i :5003
- Rebuild without cache:
docker-compose build --no-cache
Port Already in Use
Symptoms: Error about port 5003 being in use
Solutions:
- Find process using port:
lsof -i :5003
- Stop the process or change port in
docker-compose.yml:
ports:
- "8080:5003" # Use different host port
Permission Denied Errors
Symptoms: Container can't write to volumes
Solutions:
- Fix ownership:
sudo chown -R $(id -u):$(id -g) ./workspace ./data
Authentication Issues
Can't Log In
Solutions:
- Clear browser cookies
- Try incognito/private mode
- Check
AUTH_SECRETis set in production - Verify
AUTH_TRUSTED_ORIGINSincludes your URL
Session Keeps Expiring
Solutions:
- Ensure
AUTH_SECRETis persistent across restarts - Check browser isn't blocking cookies
- Verify
AUTH_SECURE_COOKIES=falseif using HTTP
OAuth Redirect Error
Solutions:
- Verify callback URL matches exactly in provider settings
- Check for trailing slashes
- Ensure protocol matches (http vs https)
Passkey Not Working
Solutions:
- Verify
PASSKEY_RP_IDmatches your domain - Check
PASSKEY_ORIGINincludes correct protocol and port - Try a different browser
- Ensure WebAuthn is supported
Password Reset Not Working
Solutions:
- Set all required variables:
ADMIN_EMAIL=your@email.com
ADMIN_PASSWORD=new-password
ADMIN_PASSWORD_RESET=true
- Restart container
- Remove
ADMIN_PASSWORD_RESET=trueafter reset
Git Issues
Clone Fails for Private Repository
Solutions:
- Configure GitHub PAT in Settings > Git > Credentials
- Ensure PAT has
reposcope - Check PAT hasn't expired
Push/Pull Fails
Solutions:
- Verify GitHub PAT is valid
- Check PAT has write permissions
- Verify remote URL:
git remote -v
Worktree Creation Fails
Solutions:
- Ensure branch doesn't already exist
- Check disk space
- Verify repo isn't in detached HEAD state
Chat Issues
Messages Not Sending
Solutions:
- Check OpenCode server is running:
docker exec opencode-manager ps aux | grep opencode
- Verify model is configured
- Check API key is valid
Streaming Stops Unexpectedly
Solutions:
- Check network connection
- Look for errors in browser console (F12)
- Check container logs for errors
File Mentions Not Working
Solutions:
- Ensure repository is selected
- Check file exists
- Refresh the file browser
File Browser Issues
Files Not Loading
Solutions:
- Refresh the page
- Check repository is properly cloned
- Verify workspace volume is mounted
Upload Fails
Solutions:
- Check file size
- Verify write permissions
- Check browser console for errors
Performance Issues
Slow Response Times
Solutions:
- Check Docker resources:
docker stats
- Clear old sessions
- Use
/compactto reduce session size
High Memory Usage
Solutions:
- Limit session count
- Delete unused sessions
- Restart container:
docker-compose restart
Database Errors
Solutions:
- Stop container
- Backup database:
cp ./data/opencode.db ./data/opencode.db.bak
- Restart container
Mobile Issues
Keyboard Doesn't Close
Solutions:
- Tap outside input field
- Update device OS
- Try Safari on iOS
PWA Won't Install
Solutions:
- iOS: Must use Safari
- Android: Must use Chrome
- Check HTTPS is enabled
Touch Gestures Not Working
Solutions:
- Swipe from screen edge
- Swipe faster (within 300ms)
- Check no UI element is blocking
Getting More Help
If your issue isn't covered:
- Check GitHub Issues
- Search GitHub Discussions
- Open a new issue with:
- Steps to reproduce
- Expected vs actual behavior
- Container logs:
docker-compose logs - Browser console errors
- Environment info (OS, browser, Docker version)