Recovering influxdb 1.8 data from filesystem

my old RASPI is no longer running (crash). i have reinstalled everything (influxdb and grafana) and would like to import the influxdb data back into the new system. my backup is quite old, are there any other options?
simply importing the data folder does not work, influx can then no longer be started.

systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
systemd[1]: influxdb.service: Start request repeated too quickly.
systemd[1]: influxdb.service: Failed with result 'exit-code'.
systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.

Can anyone help ?

Hello @thoro,
Welcome!! Oooh
I’d follow these general steps:

  1. Check file permissions after copying data over to the new system.
sudo chown -R influxdb:influxdb /var/lib/influxdb/
sudo chmod -R 755 /var/lib/influxdb/
  1. Review Logs for Specific Errors
journalctl -u influxdb.service
  1. Start Test
    To isolate whether the issue is with your data files:
  • Stop the InfluxDB service.
  • Rename your current InfluxDB data directory (e.g., /var/lib/influxdb/ to /var/lib/influxdb_old/).
  • Create a new /var/lib/influxdb/ directory with the correct permissions.
  • Start the InfluxDB service.

What have you tried influxdb restore or backup? How did you try backing up?

You should also try using the influxd-inspect tool. This should be able to read the TSM files still on disk. I’m guessing you’d be able to use influxd-inspect export to export your data as line protocol and rewrite it back to your newly running instance.

1 Like