docs/sources/datasources/influxdb/troubleshooting/index.md
This document provides troubleshooting guidance for common errors you may encounter when using the InfluxDB data source in Grafana.
The following errors occur when Grafana cannot establish or maintain a connection to InfluxDB.
Error message: "error performing influxQL query" or "error performing flux query" or "error performing sql query"
Cause: Grafana cannot establish a network connection to the InfluxDB server.
Solution:
http:// or https://).8086).Error message: "context deadline exceeded" or "request timeout"
Cause: The connection to InfluxDB timed out before receiving a response.
Solution:
The following errors occur when there are issues with authentication credentials or permissions.
Error message: "401 Unauthorized" or "authorization failed"
Cause: The authentication credentials are invalid or missing.
Solution:
Authorization header with the value Token <your-token>.Error message: "403 Forbidden" or "access denied"
Cause: The authenticated user or token does not have permission to access the requested resource.
Solution:
The following errors occur when the data source is not configured correctly.
Error message: "unknown influx version"
Cause: The query language is not properly configured in the data source settings.
Solution:
Error message: "invalid data source info received"
Cause: The data source configuration is incomplete or corrupted.
Solution:
Error message: "database not found" or queries return no data with InfluxQL on InfluxDB 2.x
Cause: InfluxQL queries on InfluxDB 2.x require a Database and Retention Policy (DBRP) mapping.
Solution:
The following errors occur when there are issues with query syntax or execution.
Error message: "error parsing query: found THING" or "failed to parse query: found WERE, expected ; at line 1, char 38"
Cause: The query contains invalid syntax.
Solution:
Check your query syntax for typos or invalid keywords.
For InfluxQL, verify the query follows the correct syntax:
SELECT <field> FROM <measurement> WHERE <condition>
For Flux, ensure proper pipe-forward syntax and function calls.
Use the InfluxDB UI or CLI to test your query directly.
Error message: "query-timeout limit exceeded"
Cause: The query took longer than the configured timeout limit in InfluxDB.
Solution:
Error message: "max-series-per-database limit exceeded" or "A query returned too many data points and the results have been truncated"
Cause: The query is returning more data than the configured limits allow.
Solution:
aggregateWindow() to downsample data.Error message: "no time column found"
Cause: The query result does not include a time column, which is required for time series visualization.
Solution:
_time in the output.The following errors occur when testing the data source connection.
Error message: "error getting flux query buckets"
Cause: The health check query buckets() failed to return results.
Solution:
Error message: "error connecting InfluxDB influxQL"
Cause: The health check query SHOW MEASUREMENTS failed.
Solution:
SHOW MEASUREMENTS.Error message: "data source is working. 0 measurements found"
Cause: The connection is successful, but the database contains no measurements.
Solution:
The following issues don't produce specific error messages but are commonly encountered.
Cause: The query returns no data.
Solution:
Cause: Queries take a long time to execute.
Solution:
aggregateWindow() to downsample data before visualization.Cause: The visualization doesn't show the most recent data.
Solution:
If you continue to experience issues after following this troubleshooting guide: