hassio-telegraf icon indicating copy to clipboard operation
hassio-telegraf copied to clipboard

InfluxDB: database "telegraf" creation failed: 403 Forbidden

Open sgofferj opened this issue 3 years ago • 2 comments

#Type of Issue Issue

#Description of issue Telegraf tries to create telegraf DB which already exists

#Ideas to fix Add skip_database_creation = true to config, either fixed or configurable.

Logs

2022-09-16T06:28:21Z W! [outputs.influxdb] When writing to [https://influx]: database "telegraf" creation failed: 403 Forbidden panic: runtime error: slice bounds out of range [:4] with capacity 0

sgofferj avatar Sep 16 '22 06:09 sgofferj

You can do this with the custom config located in /share/telegraf.conf and update the skip_database_creationto true (uncomment it !) and load that custom config with :

enabled: true
location: /share/telegraf.conf

in the addon configuration

SNoof85 avatar Oct 11 '22 11:10 SNoof85

You can do this with the custom config located in /share/telegraf.conf and update the skip_database_creationto true (uncomment it !) and load that custom config with :

enabled: true
location: /share/telegraf.conf

in the addon configuration

Yes, I know. But this issue makes the addon work only with a custom configuration, rendering the GUI config useless.

sgofferj avatar Oct 11 '22 21:10 sgofferj