Connect new server with previous installation

I had an influxdb (v1.8) server running properly for 2,5 years on a raspberry pi 4, with an SSD. Unfortunately, after a power cut my raspberry do not start anymore.

Now, I have inserted a pi image on a SD Card, booted from it, and now I can see the 2 partitions of my former SSD installation, boot and rootfs.

So, I guess the issue comes from a corrupted boot partition,as the SSD seems working fine, mounted on ~/media/boot and ~/media/rootfs

Anyway, I have installed influxdb on the SD card, and I am searching for a way to connect it to my datas on the SSD. Is it possible?

I see influxdb installation under ~/media/rootfs/var/lib/influxdb/* on my SSD. As I guess, this should contain my former database, or am I wrong?

I have tried to tweak /etc/influxdb/influxdb.conf [meta] dir, [data] dir, wal-dir, changing pathes to point to the SSD, but no way, influx service does not start anymore.

So, where stand my datas, and how could I connect to/backup them ?

Thanks for any help


Hello @claude_joliat,
Thanks for your question and sorry for the delay sometimes questions get buried here. >.<

I’d try to follow these steps:
stop the service:

sudo systemctl stop influxdb

“backup” (here are also official backup docs Back up and restore data in InfluxDB v1.8 | InfluxDB OSS v1 Documentation ):

sudo cp -r /var/lib/influxdb /var/lib/influxdb_backup

Modify the config:

sudo nano /etc/influxdb/influxdb.conf
  dir = "/media/rootfs/var/lib/influxdb/meta"

  dir = "/media/rootfs/var/lib/influxdb/data"
  wal-dir = "/media/rootfs/var/lib/influxdb/wal"

restart the service and check logs

What errors are you getting?

Thanks for helping me. does not restart as you can guess and ‘systemctl status’ gives:

influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; preset: enabled)
Active: activating (start) since Sun 2024-06-09 20:09:16 BST; 53s ago
Docs: InfluxDB OSS v2 Documentation
Cntrl PID: 3762 (influxd-systemd)
Tasks: 2 (limit: 3910)
CPU: 2.281s
CGroup: /system.slice/influxdb.service
├─3762 /bin/bash -e /usr/lib/influxdb/scripts/
└─3901 sleep 1

Jun 09 20:09:58 raspberrypi[3762]: InfluxDB API unavailable after 42 attempts…
Jun 09 20:09:59 raspberrypi[3762]: InfluxDB API unavailable after 43 attempts…
Jun 09 20:10:01 raspberrypi[3762]: InfluxDB API unavailable after 44 attempts…

when I try ‘journalctl -xeu influxdb.service’, I get:

Jun 09 20:12:04 raspberrypi[3979]: InfluxDB API unavailable after 76 attempts…

I don’t know which log file to open, maybe you could help me with that too ?
Anyway, thanks