-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Devvekariya711 edited this page Nov 26, 2025
·
1 revision
Common issues and solutions for the Automated DevOps Agent.
Solution:
pip uninstall google-adk
pip install google-adk --upgradeSolution:
# Make sure you're in the right directory
cd e:\KENGEL\automated_devops_agent
# Reinstall
pip install -r requirements.txtSolution (Windows):
# Run as Administrator or use:
pip install --user -r requirements.txtSolution (Linux/Mac):
# Don't use sudo, use virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtSolution:
# Check if set
echo $GOOGLE_API_KEY # Linux/Mac
echo %GOOGLE_API_KEY% # Windows CMD
$env:GOOGLE_API_KEY # Windows PowerShell
# Set if empty
export GOOGLE_API_KEY="your_key" # Linux/Mac
$env:GOOGLE_API_KEY="your_key" # Windows PowerShellSolutions:
- Get new key: https://makersuite.google.com/app/apikey
- Check for spaces:
echo $GOOGLE_API_KEY | wc -c - Try .env file instead
Solution:
# Find what's using port 8000
lsof -i :8000 # Linux/Mac
netstat -ano | findstr :8000 # Windows
# Kill process or use different port
adk web --port 8080Causes:
- Gemini API rate limits
- Large file size
- Network latency
Solutions:
- Use smaller files (< 1000 lines)
- Check internet connection
- Wait and retry
- Switch to
gemini-2.0-flash-exp(faster)
Solution:
# Check if adk web is running
ps aux | grep adk # Linux/Mac
tasklist | findstr adk # Windows
# Restart if needed
pkill adk # Linux/Mac
adk webExplanations:
- 74% F1 score = some bugs will be missed
- AI is non-deterministic
- Some bug types not in training data
Solutions:
- Run review multiple times
- Use specific prompts: "Check for SQL injection"
- Combine with manual review
- Report false negatives as issues
Solutions:
- Review
config/project_context.jsoncoding standards - Add false positive patterns to memory
- Use more specific prompts
- Adjust pylint score threshold
This is why we have rollback!
# RefactoringPipeline auto-creates .bak files
# Manual rollback:
cp tools.py.bak tools.pySolutions:
# Check memory file exists
cat config/project_context.json
# If corrupted, delete and restart
mv config/project_context.json config/project_context.json.old
# Agent will recreate on next runSymptoms: JSON parse errors
Solution:
# Atomic writes prevent this, but if it happens:
# Restore from backup
ls config/project_context.json*
cp config/project_context.json.tmp config/project_context.jsonSolutions:
# Limit memory (Linux)
ulimit -v 2000000 # 2GB max
# Use Docker with limits
docker run --memory=2g devops-agent
# Clear cache
rm -rf __pycache__ .pytest_cacheCauses:
- Large dependency tree
- Cold start for Gemini API
Solutions:
- Use virtual environment (faster imports)
- First run is always slower
- Keep
adk webrunning
Solution:
# Clean reinstall
pip uninstall -r requirements.txt -y
pip install -r requirements.txtSolution:
# Create fresh venv
deactivate
rm -rf .venv
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txtCheck:
# Create logs directory if missing
mkdir -p logs
# Check permissions
ls -la logs/
# Test logger
python -c "from automated_devops_agent.logger import AgentLogger; print('✅ Logger works')"Solution:
# Rotate logs
mv logs/agent_activity.jsonl logs/agent_activity_$(date +%Y%m%d).jsonl
# Agent will create new file- Check GitHub Issues: Search existing
-
Open New Issue: Include:
- Python version:
python --version - OS:
uname -aorver - Error traceback
- Steps to reproduce
- Python version:
- Email: devvekariya711@gmail.com
- Discussions: GitHub Discussions
Pro Tip: Before reporting, try:
# Clean reinstall
git pull origin main
pip uninstall -r requirements.txt -y
pip install -r requirements.txt
adk web