question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[influxdb] influxdb 2.0 bucket is not saved in configuration

See original GitHub issue

Current 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:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lujopcommented, Dec 6, 2020

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.

1reaction
CrazyIvan359commented, Nov 8, 2020

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 and Retention Policy/Bucket are saved somewhere, despite not being found in influxdb.config.

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found