-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana: "InfluxDB Error: retention policy not found: autogen" #54
Comments
and testing the datasource showed up green? |
Yes, it did. |
Mmh, and you selected this datasource on import? The same happens for the logs dashboard? |
Correct on both cases. |
In order to use InfluxQL with a v2 DB you need to remove the default retention policy with a command: influx v1 dbrp create --bucket-id --db --rp autogen --org --token |
All this should be done by the script if you use admin api token for the first run. Also the script should tell you what it is doing this first setup. After this is done you definitely should use a write only token for the particular bucket. Did you use a admin token on first setup? |
I did not use the Admin Token. The documentation just states to use an Admin Token to setup InfluxDB, but does not tell one which container to use the token on (the InfluxDB one or the FritzInfluxDB one?) and where to get it. I just tried to wipe everything and set up the containers from scratch. However, when I start my docker compose setup, influxdb first requires me to log in through the webinterface and create a user account plus an initial database before I can even get a hold of the Admin token. I don't know if this is already wrong - I just went through all the steps again and arrived at the same error. |
I ran another test:
Unfortunately, I still see the same error in grafana. |
Using this command manually in the influxdb container made the data appear in Grafana. For future reference, the full command is:
You can find |
Thank you for the effort, I have to check this and add it to the description. |
just pushed a change to |
any updates? |
I have not yet had the heart to raze my entire setup and try out the new setup procedure. However, I just noticed something new: After stopping the containers and restarting them a few hours later (trying to diagnose an entirely different problem), fritzinfluxdb cannot write to influxdb anymore. Here is the error message from fritzinfluxdb:
I also inspected the drbp mappings of influxdb:
As you can see, there are two mappings for the fritzbox bucket. If I manually remove the mapping For referencce, how to remove the mapping: Is this problem related to your change, or is this a different issue? I'm currently on 67d6aaa, but I only update to this commit a few minutes ago while trying to diagnose this problem. I believe that I was on 15aff85 before, but I am not absolutely certain. Is this problem related to your change, or is this a new issue? |
Thank you for all the testing |
Just pushed a new commit to |
So at least stopping and restarting the container now works. I still haven't gotten around to tearing my whole setup down and rebuilding it. |
Great, at least this seems fixed. Why do you need to recreate your setup again? Just to test the retention policy issue. Just define a second bucket and try it out with a second docker instance. You can leave the current one running. And then define another datasource, import the dashbord and select the new datasource. |
I did make an attempt at setting up a new influxdb bucket without tearing everything down. This is complicated by the fact that I have influxdb and grafan in the same compose file as fritzinfluxdb. I first tried to just add a second container running fritzinfluxdb. However, both containers reported that the Fritz!Box would not let them log on. I had to comment out my original container and run only the test container (differing only by the influxdb bucket the data goes to) - then the Fritz!Box accepted the credentials. I can now see the new bucket in influxdb with data coming into it. Next, I tried to set up Grafana. I added a second datasource pointing to the other bucket (Side note: Make sure to set up another read token for grafana, if your original read token does not have universal access!). I imported the Fritz!Box Status Dashboard into Grafana a second time and pointed it at the new data source. I also made sure to change the Bucket name in the Dashboard configurations. However, the dashboard remains empty ("No Data" everywhere), now with no error message whatsoever - I'm not sure whether this is now a good thing or a bad thing. What stuck out to me was that I also had to change the UID of the Dashboard. I'm too much of a novide in InfluxDB and Grafana to know what this does or wheter this may be the cause of "no data". EDIT Another Test, to try and rule out the UID as a problem:
|
Hi, The UID is mostly for grafana internal use. Changing it on import is totally fine. Dis you try to import the log dashboard? Did this one show any data. |
I did just now - it also shows "no data" with no error message being shown. |
Hi, maybe you want to try the new all flux dashboards here, they might solve your issue: https://github.com/bb-Ricardo/fritzinfluxdb/blob/next-release/README.md#grafana |
Unfortunately last week my server blew up with a defective SSD. I’m currently setting up the server from scratch. This has thrown quite the wrench into all of my testing. |
Aua. This is not good. Hope you can recover from backups. |
I'm just closing this issue as I assume it fixed. I released 1.1.0 today and if this issue still occurs feel free to reopen. thank you |
I set up Fritzinfluxdb, InfluxDB 2.4 and Grafana (latest tag at the time of writing) using Docker Compose. After getting another problem fixed (see #51) it now appears that FritzInfluxDB is actually filling my Influx DB - at least, I can poke at it using the query builder and actually get some values back. However, my Grafana Dashboards remain empty.
I made sure to add the InfluxQL source in Grafana with the
Authorization
Token and imported the dashboards from https://github.com/bb-Ricardo/fritzinfluxdb/tree/1fd5f80e195d9249e1bb9ca394b123c9b9252afa/grafana. Unfortunately, the dashboards remain empty:Note the error message about the AnnotationQueryRunner - maybe this is the cause of the issue? I tried googling around, but could not find anything that got me forward with InfluxDB 2.4 relating to this error.
This issue appears to be similar in symptoms to #25 and #30. In #25 the cause was a Cable Fritz!Box - which is not the case for me, I'm on DSL. In #30 the solution was to use an updated Dashboard JSON, which I believe I am already doing.
What can I do to make Grafana display the data that is clearly there in InfluxDB?
The text was updated successfully, but these errors were encountered: