-
What Grafana version and what operating system are you using?
Grafana - 11.2.2+security-01 -
What are you trying to achieve?
Importing a JSON model that displays autoruns logs from windows. Has been working in a previous environment. -
How are you trying to achieve it?
I have export the JSON models and imported them, updated the uid for the data source and provided an all access token from InfluxDB for the data source that will used for the dashboards. -
What happened?
3 of the 4 dashboards imported work perfectly fine after updating the uid for the data source. One dashboard falls to load any data and states it can’t find the bucket. The variables are querried with Flux and are the same ones used in the other dashboards and when multi values and all option are ticked they only display the “All” option. The other dashboards will show all values along with an “All” option. This applies to the bucket query to an extent as it will display the buckets which are available, the correct buckets, however in the grafana logs it states that there is an error and in the network request and have added to the section below. -
What did you expect to happen?
I expected all four dashboards to work as they do in another environment. -
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
{
"results": {
"metricFindQuery": {
"error": "not found: failed to initialize execute state: could not find bucket \"(win_logs)\"",
"errorSource": "",
"status": 500,
"frames": [
{
"schema": {
"refId": "metricFindQuery",
"meta": {
"typeVersion": [
0,
0
],
"executedQueryString": "import \"influxdata/influxdb/schema\"\r\n\r\nschema.tagValues(bucket: \"(win_logs)\", tag: \"host\")"
},
"fields": []
},
"data": {
"values": []
}
}
]
}
}
}
grafana[178787]: t=2024-10-22T14:03:15.276922454+02:00 level=info
msg="http: TLS handshake error from xx.xx.xx.xx:50681:
remote error: tls: unknown certificate"
xx.xx.xx.xx = ip address
sv011855 grafana[178589]: logger=plugin.signature.key_retriever
t=2024-10-22T13:40:04.34047919+02:00 level=error
msg="Error downloading plugin manifest keys"
error="Get \"https://grafana.com/api/plugins/ci/keys\": dial tcp: lookup grafana.com: Try again"
grafana[178787]: logger=tsdb.influx_flux endpoint=queryData
pluginId=influxdb dsName=InfluxDB_New dsUID=ce1mragsjz6rkc
uname=admin t=2024-10-22T14:03:14.691768243+02:00 level=warn
msg="Flux query failed" err="not found: failed to initialize execute state:
could not find bucket \"(win_logs)\"" query="import \"influxdata/influxdb/schema\"\r\nschema.tagValues(bucket:
\"(win_logs)\", tag: \"LevelText\")"
I tried the following:
-
TLS Skip Verify is set to true in the GUI of grafana data source
-
TLS Skip Verify is set to true in grafana.ini
-
Manually set the signature key in grafana.ini which did change anything and the error repeated itself. (Restart was carried out after changes)
-
Tried various querying syntax forms to find the bucket. The bucket is displayed in the preview values while outputting the error message above.
-
I have re-imported the failing dashboard as well as the working ones and the same ones succeed and fail. Re-imported from an environment where they all work
-
Upgraded Grafana ( 11.2.0 → 11.2.2 ) and after upgrade tried the fixes again
-
I had removed the data source and added it again to make sure the connection is working and when test it displays all the buckets
-
Extra information
Versions/Tokens/OS:
Grafana - 11.2.2+security-01
InfluxDB - 2.7.10
InfluxDB Token - All Access
OS - Debian 12.7 server (No direct internet access) -
Did you follow any online instructions? If so, what is the URL?
Unfortunately too many and had not kept track of them.
Suggestions and advice where I am going wrong or which direction to explore further to solve this issue is greatly appreciated.
I couldn’t append the JSON model as I am a new member here, but if it would help I can find another way to share it, please let me know if it would be of help.