InfluxDB 2 on Raspberry Pi?

Will there be a Raspberry Pi version of InfluxDB 2?

There is already arm64 build available for download: Downloads
So, you need some 64bit OS for RPI, e.g. Ubuntu 64

1 Like

Thanks a lot, I need to install a 64 OS :slight_smile:

I did it over the weekend on my Rasp PI 400. It was pretty easy and the Ubuntu ARM64 imaged worked perfectly.

1 Like

Thanks a lot, I need to switch to 64 architecture :slight_smile:

Running InfluxDB 2.0 on Raspberry Pi OS (64 bit) beta in a docker container (howto), arm64 image from quay.io Repository

2 Likes

Thanks, I got Ubuntu 64 in them eantime installed and it runs operfectly :slight_smile:

1 Like

Unfortunately, I have already running lots of stuff on my Raspi, so I can’t just use another OS.
Does anybody know if the following works:?
https://www.sindastra.de/p/1345/switch-your-raspberry-pi-to-64-bit-kernel-raspbian/

I followed the installtion method for influx 1.8 on pi-os 32 bit on pi-of 64 bit.

Changed the following command,

sudo apt-get install influxdb (version 1.8, 32 bit or 64 bit)

to

sudo apt-get install influxdb2 (version 2.0, only works on 64bit)

I know the thread is over a year old :grin: the information might still be useful if someone is stuck on Raspberry Pi 4 with a 32 Bit OS for reasons.

You can in fact switch to the 64 Bit Kernel without issues (my system is running for at least a year now with this Kernel without any issues at all).
If the transition to the 64 Bit Kernel is done, uninstall Influxdb v1 and then force install the 64 Bit Influxdb Debian packages. After that, proceed with the upgrade as outlined in the official guide.

My Raspberry Pi 4 (Model B Rev 1.2) is running Kernel 5.10.103-v8+ (aarch64) but is comming from a 32 Bit base OS installation:
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=raspbian

raspi.list: deb Index of /debian buster main

$ influxd version
InfluxDB v2.5.1 (git: 5b6fdbf05d) build_date: 2022-11-02T18:06:20Z

My procedure after switching to the 64 Bit Kernel was:

# apt remove influxdb
# wget https://repos.influxdata.com/debian/packages/influxdb2-2.5.1-arm64.deb
# wget https://repos.influxdata.com/debian/packages/influxdb2-client-2.5.0-arm64.deb
# dpkg --force-architecture -i ./influxdb2-2.5.1-arm64.deb
# dpkg --force-architecture -i ./influxdb2-client-2.5.0-arm64.deb
# mkdir /var/lib/influxdb2
# chown influxdb:influxdb /var/lib/influxdb2 /etc/influxdb
# sudo -u influxdb influxd upgrade -e /var/lib/influxdb2/engine -m /var/lib/influxdb2/influxd.bolt -c /var/lib/influxdb2/configs --v2-config-path /etc/influxdb/config.toml --overwrite-existing-v2 --config-file /etc/influxdb/influxdb.conf
[...]
{"level":"info","ts":1669679898.095261,"caller":"upgrade/upgrade.go:488","msg":"Upgrade successfully completed. Start the influxd service now, then log in","login_url":"http://localhost:8086"}
systemctl start influxdb.service
systemctl status influxdb.service
[...]
Nov 29 01:09:08 testhab influxd-systemd-start.sh[10224]: InfluxDB started
Nov 29 01:11:05 testhab influxd-systemd-start.sh[10224]: ts=2022-11-29T00:11:05.039377Z lvl=info msg="Executing query" log_id=0eSBIO10000 service=query query="SELECT
cumulative_sum(non_negative_difference) FROM (SELECT non_negative_difference(mean) FROM (SELECT mean(value) FROM openhab.autogen.HmIPSwitchActuatorAndMeterIT_5_Energy
Counter WHERE time >= 27827981m AND time <= 27828011m GROUP BY time(1s)))"

OpenHAB and Grafana are happy using the old users and even using the old queries (InfluxQL)

Cheers,
Bjoern

1 Like