Troubleshooting
Common issues and solutions.
Application Won't Start
Check Logs
bash
# Docker
docker-compose logs -f ops-atlas
# Kubernetes
kubectl logs -f deployment/ops-atlas -n ops-atlasCommon Causes
Database connection failed
- Verify DATABASE_URL
- Check if database is running
- Test connection:
psql $DATABASE_URL
Port already in use
lsof -i :3000- Kill process or change port
Missing environment variables
- Check required vars are set
- Verify .env file is loaded
Cannot Access Dashboard
Symptoms
- Connection refused
- Blank page
- 502 Bad Gateway
Solutions
bash
# Check if service is running
docker-compose ps
# Check port binding
netstat -tlnp | grep 3000
# Check firewall
ufw statusSlow Performance
Database
sql
-- Check slow queries
SELECT * FROM pg_stat_activity WHERE state = 'active';
-- Analyze tables
ANALYZE;
-- Check indexes
SELECT * FROM pg_stat_user_indexes;Application
bash
# Check resource usage
docker stats ops-atlas
# Check memory
free -h
# Check CPU
top -p $(pgrep -f ops-atlas)Authentication Issues
Can't Login
- Clear browser cookies
- Check JWT_SECRET is set
- Verify user exists in database
- Check LDAP/OAuth configuration
Reset Admin Password
bash
# Via CLI
docker exec ops-atlas ops-atlas user reset-password admin
# Via database
psql -c "UPDATE users SET password='$BCRYPT_HASH' WHERE username='admin'"Alerts Not Sending
- Check webhook URLs are correct
- Test webhook manually:bash
curl -X POST $SLACK_WEBHOOK_URL -d '{"text":"test"}' - Check network connectivity
- Review alert rules
Getting Help
- Search existing issues: GitHub Issues
- Ask the community: Discord
- Check logs: Always include relevant logs
- Provide context: Version, OS, deployment method