I no longer have the root account for my Influx database. The whole install was messed up from being upgraded from v1 to v2 by over-eager Ubuntu repo maintainers a while back but it has continued to "work (read/write). Now I want to migrate to a container-based database and cannot run influx backup
due to having no “operator” tokens. There only seems to be one user according to sudo influxd recovery auth list --bolt-path /var/lib/influxdb/influxd.bolt
and it does not have any operator tokens.
If I try to create a recovery operator token, I get this error:
> sudo influxd recovery auth create-operator --bolt-path /var/lib/influxdb2/influxd.bolt --org myorg --username telegraf
2023-01-06T16:43:50.662557Z info Resources opened {"log_id": "0fD~K41W000", "system": "bolt-kvstore", "path": "/var/lib/influxdb2/influxd.bolt"}
Error: bucket "authorizationsv1": bucket not found
See 'influxd -h' for help
So I can’t backup the database and I can’t create new users and I can’t create a recovery operator token. How do I migrate my database?