Implement proper storage metrics (P0-009)\n\n- Add dedicated storage_metrics table\n- Create StorageMetricReport models with proper field names\n- Add ReportStorageMetrics to agent client\n- Update storage scanner to use new method\n- Implement server-side handlers and queries\n- Register new routes and update UI\n- Remove legacy Scan() method\n- Follow ETHOS principles: honest naming, clean architecture

This commit is contained in:
Fimeg
2025-12-17 16:38:36 -05:00
parent f7c8d23c5d
commit 0fff047cb5
43 changed files with 3641 additions and 248 deletions

35
restart_and_fix.sh Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
echo "=== RedFlag Database Recovery Script ==="
echo
echo "1. Stopping containers..."
docker-compose down
echo
echo "2. Removing postgres volume to reset database (WARNING: This will delete all data)..."
docker volume rm redflag_postgres-data 2>/dev/null
echo
echo "3. Starting containers with fixed configuration..."
docker-compose up -d
echo
echo "4. Waiting for database to be ready..."
sleep 10
docker exec redflag-postgres pg_isready -U redflag
echo
echo "5. Checking server logs (tail):"
echo "=========================="
docker logs redflag-server --tail 50
echo
echo "=========================="
echo "If migrations ran successfully, you should see:"
echo "- Database migrations completed message"
echo "- Default security settings initialized"
echo "- Admin user ensured"
echo
echo "The server should now be accessible at http://localhost:8080"
echo "Login with admin / Qu@ntum21!"