Troubleshooting
Diagnostic Tools
Section titled “Diagnostic Tools”Check Service Status
Section titled “Check Service Status”# View all service statusdocker compose ps
# View service health statusdocker inspect glean-backend --format='{{.State.Health.Status}}'View Logs
Section titled “View Logs”# View all service logsdocker compose logs -f
# View specific service logsdocker compose logs -f backenddocker compose logs -f worker
# View last 100 linesdocker compose logs --tail=100 backendResource Usage
Section titled “Resource Usage”# View resource usagedocker statsCommon Issues
Section titled “Common Issues”Services Won’t Start
Section titled “Services Won’t Start”Port Conflicts
Section titled “Port Conflicts”Symptom: Service fails to start, logs show port already in use.
Solution:
# Check port usagelsof -i :80lsof -i :3001
# Change portsecho "WEB_PORT=8080" >> .envecho "ADMIN_PORT=8081" >> .envDatabase Connection Failed
Section titled “Database Connection Failed”Symptom: Backend service fails to start, logs show database connection error.
Solution:
# Check PostgreSQL statusdocker compose ps postgres
# Wait for database to be readydocker exec glean-postgres pg_isready -U glean
# Check database logsdocker compose logs postgresBackend Service Unhealthy
Section titled “Backend Service Unhealthy”Check Health Endpoint
Section titled “Check Health Endpoint”curl http://localhost/api/healthCheck Log Errors
Section titled “Check Log Errors”docker compose logs backend | grep -i errorRestart Service
Section titled “Restart Service”docker compose restart backendWorker Not Working
Section titled “Worker Not Working”Check Worker Status
Section titled “Check Worker Status”docker compose ps workerdocker compose logs workerCheck Redis Connection
Section titled “Check Redis Connection”docker exec glean-redis redis-cli ping# Should return PONGRestart Worker
Section titled “Restart Worker”docker compose restart workerRSS Feeds Not Updating
Section titled “RSS Feeds Not Updating”Check Worker Logs
Section titled “Check Worker Logs”docker compose logs worker | grep -i feedManually Trigger Refresh
Section titled “Manually Trigger Refresh”Click the refresh button on the feed in the Web interface.
Check Feed Status
Section titled “Check Feed Status”View feed error status in the Web interface.
Cannot Access Web Interface
Section titled “Cannot Access Web Interface”Check Web Service
Section titled “Check Web Service”docker compose ps webdocker compose logs webCheck Nginx Configuration
Section titled “Check Nginx Configuration”docker exec glean-web nginx -tCheck Backend Connection
Section titled “Check Backend Connection”# Directly access backend APIcurl http://localhost:8000/api/healthCannot Access Admin Dashboard
Section titled “Cannot Access Admin Dashboard”Check Admin Service
Section titled “Check Admin Service”docker compose ps admindocker compose logs adminVerify Port
Section titled “Verify Port”curl http://localhost:3001Out of Memory
Section titled “Out of Memory”Check Memory Usage
Section titled “Check Memory Usage”docker stats --no-streamSolutions
Section titled “Solutions”- Use lite deployment (without Milvus)
- Increase system memory
- Set resource limits
services: backend: deploy: resources: limits: memory: 1GDisk Space Full
Section titled “Disk Space Full”Check Disk Usage
Section titled “Check Disk Usage”docker system dfClean Unused Resources
Section titled “Clean Unused Resources”# Clean unused imagesdocker image prune -a
# Clean unused volumes (be careful not to delete glean volumes)docker volume prune
# Clean stopped containersdocker container pruneLog Rotation
Section titled “Log Rotation”# Truncate Docker logstruncate -s 0 $(docker inspect --format='{{.LogPath}}' glean-backend)Database Issues
Section titled “Database Issues”Migration Failed
Section titled “Migration Failed”# Check migration logsdocker compose logs backend | grep -i migration
# Manually run migrationdocker exec -it glean-backend bashcd /app && uv run alembic upgrade headToo Many Database Connections
Section titled “Too Many Database Connections”Check and increase PostgreSQL connection limit:
services: postgres: command: - postgres - -c - max_connections=200Milvus Issues (Full Version)
Section titled “Milvus Issues (Full Version)”Milvus Won’t Start
Section titled “Milvus Won’t Start”# Check Milvus dependency servicesdocker compose ps milvus-etcd milvus-minio
# Check Milvus logsdocker compose logs milvusMilvus Out of Memory
Section titled “Milvus Out of Memory”Milvus requires significant memory, you can:
- Increase system memory
- Use lite deployment mode
Getting Help
Section titled “Getting Help”If the above methods don’t solve the problem:
- View Documentation: Glean Docs
- GitHub Issues: Submit Issue
- Discord Community: Join Discord
When submitting an Issue, please include:
- Glean version
- Deployment mode (full/lite)
- Error logs
- Reproduction steps