[influxdb] influxdb 2.0 bucket is not saved in configuration
See original GitHub issueCurrent Behavior
Using influxdb 2.0 for persitence i got the following error.
2020-11-02 21:23:22.643 [ERROR] [.client.write.events.WriteErrorEvent] - The error occurred during writing of data com.influxdb.exceptions.NotFoundException: bucket "autogen" not found
Seams that the bindig tries to use the default Bucket/Retention Policy “autogen”
Your Environment
openHAB 3 build #2005; Debian 10.6; VM on Synology; Influx as Docker container
Solution
I checked the influx config profile and found that the correspondig entry “retentionProfile” /equals bucket in influx 2.0) is missing. Based on this the default value “autogen” is used. Adding the entry saves immideately entries to the database.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Manage buckets in InfluxDB - InfluxData Documentation
Manage buckets in InfluxDB using the InfluxDB UI or the influx CLI. ... A bucket is a named location where time series data...
Read more >Troubleshoot issues writing data to InfluxDB
If InfluxDB OSS successfully writes all the request data to the bucket, InfluxDB returns success (HTTP 204 status code). The first rejected point...
Read more >Manually configure Telegraf for InfluxDB v2.5
Use the Telegraf influxdb_v2 output plugin to collect and write metrics into an InfluxDB v2.5 bucket. This article describes how to enable the...
Read more >InfluxDB upgrade fails with "No buckets for database exist in 2.x"
I have a user named home-assistant which has privileges configured on home_assistant database. Any ideas what might be happening here and how to ......
Read more >Update a bucket in InfluxDB - InfluxData Documentation
Update a bucket's retention period in the InfluxDB UI · In the navigation menu on the left, select Data (Load Data) > Buckets....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @TBail and @CrazyIvan359 . I think that I’ve found the problem. There was an inconsistency in the
retentionPolicy
default value defined in code and the one in the descriptor (one had autogen and the other openhab). And I think that it’s possibly that you saw one value but the other was really saved.Hope that the correction solves the problem.
I also had this issue and resolved it with TBail’s solution.
What I found interesting was that the values I supplied for for
Database/Organization
andRetention Policy/Bucket
are saved somewhere, despite not being found ininfluxdb.config
.