Using the instructions found here: Get started with InfluxDB | InfluxDB OSS v2 Documentation , I was able to download the arm version and place the executables in my PATH without issue. However, when I try to start the service with “influxd”, I get:
bash: /usr/local/bin/influxd: cannot execute binary file: Exec format error
This leads me to believe that there is a mismatch between the executable build and the rPi 4’s ARMv8 architecture. Has anyone else run into this? Are there instructions on building it locally?
The current versions of InfluxDB 2.0 are 64-bit only. Most versions of the OS for Raspberry Pi are 32-bit, so they are not compatible. You will need to find a 64-bit version of Linux for Raspberry Pi and then install 2.0.
Thanks, that indeed explains it! I installed Gentoo (arm64) and it worked flawlessly. Maybe that could be added to the guide and/or docs? I would hate for anyone else to get stumped before they even get to the good stuff!
Thanks, I’ll look at updating the guide. I have, in recent days, managed to compile a version of InfluxDB 2.0 OSS for 32-bit Raspberry Pi, but it was not easy, and isn’t 100% functional. Yet.
I managed to somehow build v2 on an armv7l device.
First things first, influxd seems to run, I can access the ui, writing to the database also works, but every query fails with error a panic has occurred {"log_id": "0NEwPGD0000", "handler": "panic", "error": "runtime error: invalid memory address or nil pointer dereference"}
I had to call rustup target add arm-unknown-linux-gnueabihf
go build -o ~/go/bin/ github.com/influxdata/pkg-config
export PATH=$PATH:/usr/local/go/bin
export PATH=$HOME/go/bin:${PATH}
Now to the ugly bits:
cypress did not install for me. Therefore, I removed the cypress dependencies from the package.json in ui. As far as I can tell, cypress is only needed for testing
then you can finally run make, but this will fail for influxd and influx, due to some int vs int64 error. I had to fix source code at two places. The error message will tell you where. make takes ages, especially bundling the ui and requires a lot of RAM (again ui only)
Is there any time frame when arm might be supported in flux and influxdb v2?
I can also test things, since I now have a kind of build chain
I’m in similar boat- experimenting with a pi4.
I’ve literally only been running for past 2 hours, but it looks like it runs fine for me under latest raspbian, but you have to tell it to run the new beta Aarch64 kernel
Backup everything first - just in case!
Add arm_64bit=1 to the very end of /boot/config.txt , then do the usual to update, sudo apt-get update ; sudo apt-get upgrade , then reboot.
After it comes back up, run uname -a to confirm it now shows aarch64
Linux raspiM 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux
From there I just followed the steps on this page:
Interesting - the bug is still present for both sum and mean under the official beta arm influxdb v2 build 2.0.0-beta.10.
But apart from that, leaving this here for others to confirm that erything else I can see is working on a raspberry Pi4 now (with aarch64 kernel enabled under raspbian).
Bumping this thread; I have a Raspberry Pi Zero and it runs on armhf architecture, and the v2 of influxdb only provides arm64. v1 does still have armhf but I do not want to install a possibly deprecated package.
Are there plans to support armhf for influxdb v2?