Synology - Docker - influxdb 2.0 - lost operator token?

Hi, how is it possible to get the original Token back? need that to have access via ioBroker Backitup. A new all in token does not help.

Thx.

There’s a bit in docs about how to create a new operator token, including a recovery workflow if you don’t have your existing one, which I think this is your best bet: Create an API token in InfluxDB | InfluxDB OSS v2 Documentation (will take you directly to the correct section)

Check out this solution: Best practice of stopping InfluxDB inside a docker container without stopping the container - #8 by tkohhh

There’s also another similar solution further down that thread that might also work for you. Good luck!

I got a soluation that worked for me:

Docker - Influx - Terminal - bash:

su influxdb
cd /var/lib/influxdb2
cp influxd.bolt influxd2.bolt
influxd recovery auth create-operator --org <deine_org> --username <dein_user> --bolt-path /var/lib/influxdb2/influxd2.bolt
mv influxd2.bolt influxd.bolt

Restart Container, the Recovered Token will be shown in influxdb.

login to influx via browser, then open a new tab:

http://<ip-asresse>:8086/api/v2/authorizations

the Token will be shown.

1 Like