Can't access bucket after upgrade and reboot

Sorry for what might be a vague description of this problem, I don’t have a deep understanding of Influx.

I have had an influxdb running for some time connected to Home Assistant and Grafana.

At some point I have accidentally upgraded from 1.x to 2.2 as everything stopped working. I got it working again but updating various settings for Home Assistant and Grafana. I can’t remember exactly what I did as this was some time ago.

Now after a server reboot I don’t seem to be able to see any of my old data on my influxdb. The data still seems to be there as there are gigabytes of files still under /var/lib/influxdb I can connect to influxdb and it is showing 1 bucket called ‘ha’ but it is empty as far as I can tell. I was previously connecting to a bucket called ‘ha/autogen’ but this doesn’t seem to exist anymore. I attempted to do a DBRP mapping but this doesn’t seem to have helped.

Does anyone have any idea how I might access the older data?

Hello @MichaelO,
How did you upgrade? Do you remember?

Have you tried following:

Can you check that you have:

  1. A 2.x config at /.influxdbv2/config.toml
  2. Verify 1.x users were successfully migrated to 2.2, run influx v1 auth list.
    Automatically upgrade from InfluxDB 1.x to 2.1 | InfluxDB OSS 2.2 Documentation

Thanks for your reply.

As I was working through your queries I realised what is likely to be the problem. I seem to have created a second set of files and the wrong ones were being used. I have now resolved this.

Perhaps some of the systemd config files must have been cleared by an upgrade at some point.

Thanks again for your help.

1 Like