8.9 KiB
Troubleshooting
Container Issues
Cannot Connect to Docker Daemon
Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock
Solution:
# Linux: Start Docker service
sudo systemctl start docker
sudo systemctl enable docker # Start on boot
# macOS/Windows: Open Docker Desktop application
# Ensure Docker Desktop is running in system tray
Port Already in Use
Error: Bind for 0.0.0.0:5000 failed: port is already allocated
Solution:
Option 1 - Use different port:
# Add to .env file
SGO_PORT=8080
# Restart container
docker-compose down && docker-compose up
Option 2 - Find and stop conflicting service:
# Linux/macOS: Find process using port 5000
sudo lsof -i :5000
sudo kill -9 <PID>
# Windows: Find process using port 5000
netstat -ano | findstr :5000
taskkill /PID <PID> /F
AWS Credentials Not Found in Container
Error: AWS config file not found or Permission denied: '/home/sgo/.aws/config'
Solution:
-
Verify
.envfile exists and containsAWS_CONFIG_PATH:cat .env # Should show: AWS_CONFIG_PATH=/home/yourusername/.aws -
Create
.envfile if missing:cat > .env << EOF AWS_CONFIG_PATH=$HOME/.aws PUID=$(id -u) PGID=$(id -g) EOF -
Verify AWS files exist on host:
ls -la ~/.aws/ # Should show: config, credentials -
Check file permissions:
chmod 600 ~/.aws/credentials chmod 644 ~/.aws/config -
Rebuild container:
docker-compose down && docker-compose up --build
Permission Denied Errors
Error: PermissionError: [Errno 13] Permission denied: '/app/data/aws_export.db'
Solution:
-
Set PUID/PGID to match your user:
cat > .env << EOF AWS_CONFIG_PATH=$HOME/.aws PUID=$(id -u) PGID=$(id -g) EOF -
If using local directory mode, fix ownership:
sudo chown -R $(id -u):$(id -g) ./data -
Or switch to Docker volume mode (default):
# Use default docker-compose.yml docker-compose down -v docker-compose up --build
Database Locked Error
Error: database is locked or OperationalError: database is locked
Solution:
-
Stop all running containers:
docker-compose down -
If using local directory mode, remove lock file:
rm -f ./data/aws_export.db-journal -
If problem persists, use Docker volume mode:
# Edit docker-compose.yml to use volume instead of bind mount docker-compose up --build
Container Keeps Restarting
Error: Container exits immediately or restarts constantly
Solution:
-
Check container logs:
docker-compose logs -f -
Look for error messages in logs and address specific issues
-
Try running in debug mode:
# Add to .env DEBUG=true docker-compose down && docker-compose up
AWS Configuration Issues
No AWS Profiles Found
Error: "No AWS profiles found" or empty profile list
Solution:
-
Verify
~/.aws/configexists:cat ~/.aws/config -
Ensure profiles are properly formatted:
[profile my-profile] region = us-west-2 [default] region = us-east-1 -
Check file permissions:
chmod 644 ~/.aws/config -
Restart container to reload profiles:
docker-compose restart
MFA Authentication Fails
Error: "MFA authentication failed" or "Invalid MFA code"
Solution:
-
Verify MFA code is current:
- MFA codes expire every 30 seconds
- Generate a fresh code and try again
-
Check
mfa_serialis correct in~/.aws/config:[profile my-profile] region = us-west-2 mfa_serial = arn:aws:iam::123456789012:mfa/username -
Verify credentials are valid:
aws sts get-caller-identity --profile my-profile -
Ensure MFA device is active in AWS IAM Console
-
Check for clock skew:
- Ensure system time is accurate
- MFA is time-based and requires synchronized clocks
Import Fails with Access Denied
Error: "Access Denied" or "UnauthorizedOperation"
Solution:
-
Verify IAM permissions (see AWS Configuration)
-
Test permissions with AWS CLI:
aws ec2 describe-instances --profile my-profile --max-results 1 aws ec2 describe-security-groups --profile my-profile --max-results 1 -
Check if credentials have expired:
- Temporary credentials expire
- Try refreshing credentials
-
Verify you're using the correct profile
Wrong Region / No Resources Found
Error: Import succeeds but no EC2/SG data appears
Solution:
-
Check region in profile configuration:
[profile my-profile] region = us-west-2 # Ensure this is correct -
Remember: EC2 resources are region-specific
-
Try specifying region explicitly:
aws ec2 describe-instances --profile my-profile --region us-west-2 -
Import from correct region in profile
Application Issues
Search Returns No Results
Problem: Search box doesn't show any results
Solution:
-
Verify data was imported successfully:
- Check import progress logs
- Look for "Import complete" messages
-
Try different search terms:
- Minimum 2 characters required
- Try searching for "*" to see all resources
-
Check filter buttons:
- Ensure you're not filtering out the type you're searching for
- Try "All Resources" button
-
Refresh the page:
Ctrl+F5 or Cmd+Shift+R
Blank Page or UI Not Loading
Problem: Browser shows blank page or incomplete UI
Solution:
-
Check browser console for JavaScript errors:
- Press F12 to open developer tools
- Look at Console tab for errors
-
Clear browser cache and reload:
Ctrl+Shift+R (Windows/Linux) Cmd+Shift+R (macOS) -
Try a different browser
-
Check if application is running:
docker-compose logs
CSV Export Not Working
Problem: Export button doesn't download file
Solution:
-
Check browser popup blocker settings
-
Look for downloads in browser's download location
-
Try different browser
-
Check browser console for JavaScript errors (F12)
Session Expired / MFA Required Again
Problem: Asked for MFA again before 55 minutes
Solution:
- AWS sessions expire after 1 hour (we cache for 55 minutes)
- This is expected behavior for security
- Simply enter MFA code again to create new session
Performance Issues
Slow Import
Problem: Import takes a very long time
Solution:
-
Use parallel imports:
- Select all profiles at once
- Click "Start Import" on each profile
- All imports run simultaneously
-
Check network connectivity to AWS:
ping ec2.us-west-2.amazonaws.com -
Large accounts take longer:
- Many EC2 instances/security groups increase import time
- This is normal
Slow Search
Problem: Search is laggy or slow
Solution:
-
Large datasets:
- Thousands of resources can slow search
- This is a known limitation of client-side search
-
Use more specific search terms:
- Narrow down results with longer search strings
-
Use regex carefully:
- Complex regex patterns can be slow
- Disable regex for simple searches
Platform-Specific Issues
Windows
Problem: Path issues or permission errors
Solution:
-
Use WSL2 for better compatibility:
# Install WSL2 and run commands from Linux environment wsl --install -
Use Git Bash for running commands
-
Ensure Docker Desktop is using WSL2 backend
-
Use forward slashes in paths
macOS
Problem: Docker can't access files in home directory
Solution:
- Open Docker Desktop Settings
- Go to Resources → File Sharing
- Add your home directory to shared paths
- Click "Apply & Restart"
Linux (Podman)
Problem: podman-compose not found or issues
Solution:
-
Install podman-compose:
# Fedora sudo dnf install podman-compose # Ubuntu/Debian pip3 install podman-compose -
Use
dockercommand instead:# Podman supports docker CLI alias docker=podman docker-compose up --build -
Check SELinux contexts (Fedora/RHEL):
# Already handled by :z flag in docker-compose.yml # If issues persist, try: sudo setenforce 0 # Temporarily permissive mode for testing
Getting Help
If you continue to experience issues:
-
Check application logs:
docker-compose logs -f -
Enable debug mode (see Configuration)
-
Open an issue on the repository with:
- Error messages from logs
- Steps to reproduce
- Your environment (OS, Docker/Podman version)
- Relevant configuration (sanitized)
-
Check existing issues - Your problem may already be solved