Hello there. I have lost access to the InfluxDB CLI interface. I found the influxdb bolt file, but I did not find a password recovery token. I found the same problems on the forum, but they were relevant 4 years ago. How can I solve this problem, or will I have to reinstall everything?
P.S i’m use Influx CLI 2.0.9 in docker
Hello @Usernet,
Welcome!
You don’t need to reinstall everything. InfluxDB provides recovery tools to help you regain access when you’ve lost your credentials. Since you’re using v2 in you can recover your access using the influxd recovery commands.
influxd recovery user update \
--username YOUR_USERNAME \
--password NEW_PASSWORD
Create a new user
influxd recovery user create \
--username new-recovery-user \
--password NEW_PASSWORD
Let me know if you have luck with those then you can setup influxdb again.
Hello @Anaisdg,
Thank you for your reply. I’ve solved this problem:
I copied the engine
directory and the influxd.bolt
file from the old container to the host machine. Then I created a new Docker container with InfluxDB 2.7.11, mounted the engine
directory and the influxd.bolt
file into it, and used the recovery tools to reset the password.
The recovery tools didn’t work with version 2.0.9, but everything went smoothly on 2.7.11.
Anyway, thank you very much for your response. I hope my solution will help someone else in the future!