sabuto / hassio-telegraf

MIT License
28 stars 14 forks source link

InfluxDB: database "telegraf" creation failed: 403 Forbidden #52

Open sgofferj opened 2 years ago

sgofferj commented 2 years ago

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

SNoof85 commented 2 years ago

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

sgofferj commented 2 years ago

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.