Hello,
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
Claude
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
[meta]
dir = "/media/rootfs/var/lib/influxdb/meta"
[data]
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?
Hello,
Thanks for helping me.
Influxdb.services does not restart as you can guess and ‘systemctl status influxdb.services’ 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/influxd-systemd-start.sh
ââ€3901 sleep 1
Jun 09 20:09:58 raspberrypi influxd-systemd-start.sh[3762]: InfluxDB API unavailable after 42 attempts…
Jun 09 20:09:59 raspberrypi influxd-systemd-start.sh[3762]: InfluxDB API unavailable after 43 attempts…
Jun 09 20:10:01 raspberrypi influxd-systemd-start.sh[3762]: InfluxDB API unavailable after 44 attempts…
when I try ‘journalctl -xeu influxdb.service’, I get:
Jun 09 20:12:04 raspberrypi influxd-systemd-start.sh[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
Claude