🛠 Troubleshooting

Common Errors — Grafana on Windows

Fixes for the most frequent Grafana problems on Windows: service startup failures, port conflicts, proxy errors, login issues, MSI install problems and plugin breakage after upgrades.

Service fails to start

The Grafana service enters a Stopped state immediately or won't start at all.

Diagnose

# Check service status Get-Service -Name "Grafana" # Read the last 50 lines of Grafana log Get-Content "C:\Program Files\GrafanaLabs\grafana\data\log\grafana.log" -Tail 50 # Check Windows Event Viewer for service errors Get-EventLog -LogName Application -Source "Grafana" -Newest 10

Common causes & fixes

Port 3000 already in use

Log shows: listen tcp :3000: bind: Only one usage of each socket address is normally permitted

# Find what process is using port 3000 netstat -ano | findstr ":3000" # Get the process name from the PID (replace 1234 with actual PID) Get-Process -Id 1234 # Stop the conflicting process (if safe to do so) Stop-Process -Id 1234 -Force

If you can't free port 3000, change Grafana's port in grafana.ini:

[server] http_port = 3001

Restart the service and update your firewall rule. See the full port change guide.

502 Bad Gateway behind reverse proxy

Browser shows 502 when accessing Grafana through Nginx or IIS.

Check Grafana is actually running

# Test from the server itself Invoke-WebRequest -Uri "http://localhost:3000" -UseBasicParsing

If this fails, start the Grafana service first. If it succeeds, the issue is in your proxy config.

Common Nginx fixes

# Verify your proxy_pass points to the correct port # In nginx.conf: proxy_pass http://localhost:3000; # Ensure these headers are set: proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;

Set root_url in grafana.ini

[server] root_url = https://grafana.yourdomain.com/ serve_from_sub_path = false

See the full Nginx reverse proxy guide.

Can't log in — forgot admin password

# Method 1: CLI reset (stop service first) Stop-Service -Name "Grafana" cd "C:\Program Files\GrafanaLabs\grafanain" .\grafana-cli.exe admin reset-admin-password NewStrongPassword! Start-Service -Name "Grafana" # Method 2: Environment variable (set before starting service) $env:GF_SECURITY_ADMIN_PASSWORD = "NewStrongPassword!" Restart-Service -Name "Grafana"
After resetting: Log in immediately and change the password from the UI (Profile → Change Password). Remove the environment variable if you used Method 2.

MSI installation fails

Plugins break after upgrade

Plugins that worked in the previous version may be incompatible with a major Grafana update.

# List installed plugins grafana-cli plugins ls # Update all plugins grafana-cli plugins update-all # Remove a broken plugin grafana-cli plugins remove plugin-name # Reinstall grafana-cli plugins install plugin-name

Always check the plugin's compatibility with the new Grafana version before upgrading. Check the release notes for deprecated or removed plugin APIs.

Grafana is slow or uses too much memory

# Check Grafana process memory usage Get-Process -Name "grafana*" | Select-Object Name, WorkingSet, CPU

Dashboards show "No data" after upgrade

Still stuck?

Check the official Grafana community forum or the GitHub issues list for your specific error message.

Grafana Community Forum Rollback to previous version