New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ARM architecture #2505
Comments
I'm running Influx 2.0.0-beta.9 on a Raspberry Pi 4B on the arm64 kernel with Raspbian. So far I've only been seeing issues with the mean and sum operations like the referenced issue. Other ops like median, last, max, difference, work fine. |
The mean operation is really important for the use of Flux and InfluxDB. Please fix it on ARM devices like Raspberry Pi. Is there any workaround or fix? Using Influx 1.8 with Flux on RPi 3. |
@mich43l or @ajoberstar this is the code for mean specifically: https://github.com/influxdata/flux/blob/master/stdlib/universe/mean.go Anything jumping out at you as to why |
Same Here. {"error":"panic: runtime error: invalid memory address or nil pointer dereference"} when doing the same thing on the ARM architecture |
@russorat I'm not familiar with Go, but I can do my best. As a starting point, how do I get a more detailed error message? I'm more familiar with the JVM ecosystem, so is there some equivalent to a stack trace that can help point to the line it's erroring on? |
any updates on this? |
Just tested this on a Pi 4B running with the new beta aarch64 kernel on raspbian/RaspberryOS. ( The issue is still occurring, and is easily reproducable under beta Influxdb v2 (
I tried enabling debug logging mode, but there's nothing helpful why the error is returned. I'm willing to test further if you can provide steps/areas to investigate to help. |
I have the same issue. Any update on this? I was happy that with Flux it is finally possible to aggregate to months. Now Flux QL does not work on ARM. I think many users run it on a Raspberry. Hope there is a solution soon. |
Is there anyway to get some attention on this ? Flux is core to 2.0, and mean() is pretty much core to any down sampling, so without this it pretty much rules out using influx on ARM |
If anyone does need a workaround for this in the short term the following seems to work
|
I'm running into a specific limitation where Alerts cannot work, because there's no ability to specify a custom Flux query in the web management interface. I'll check to see if the I filed feedback around the specific Flux error messages on InfluxDB v2 RC3 (Release Candidate 3) here: influxdata/influxdb#19874 This is how I got Ubuntu Server 20.04.1 LTS Focal Fossa running on Raspberry Pi. It wasn't trivial, but not terribly hard either. https://trevorsullivan.net/2020/10/30/install-ubuntu-20-04-1-lts-64-bit-on-raspberry-pi/ |
Same issue here, looked through the code a bit, and the only difference that I could spot was:
This is somewhat different from how the mode and max are calculated (without the arrow.math functions). So... I went to the apache arrow repo: https://github.com/apache/arrow/tree/master/go. And run this in the raspberry pi 4 that I have:
Looks like the only correlation that I could find for now is the Runtime Error, also logs from Influx (influxdata/influxdb#19874 (comment)) suggest that the problem may come from the arrow.math functions. I wonder if we could get a build excluding those functions for arm64, haven't tried to compile the project though. |
@russorat An update on the last comment that I left: Searching for a solution, using the build tag "noasm" for the apache arrow math functions made the tests to pass =). |
@jpbarcia, I've tried the 1.8.3 version on docker, released today but the commit you pointed out is on v2 branche only (not available on docker yet), too bad :/ |
My understanding (which comes from 10 minutes looking on how to build influxdb 1.8.3) is that you can also specify in the build.py the Anyway, I compiled influxdb at head (2.0.1?) for arm64 (with the raspi4), I also have a docker image (locally hosted - unofficial ;) that I can share if you want. It's working fine, last I tested 1M records take a second - if not less - to process for a simple window average, which is awesome =). |
Hi Jean Pierre,
I'd be interested in having access to your docker image if possible please ?
Thanks
Phil
…On Fri, 20 Nov 2020 at 17:45, Jean Pierre ***@***.***> wrote:
My understanding (which comes from 10 minutes looking on how to build
influxdb 1.8.3) is that you can also specify in the build.py
<https://github.com/influxdata/influxdb/blob/v1.8.3/build.py> the noasm
tag, something like this: go build -tags "noasm" ... may work.
Anyway, I compiled influxdb at head (2.0.1?) for arm64 (with the raspi4),
I also have a docker image (locally hosted - unofficial ;) that I can share
if you want. It's working fine, last I tested 1M records take a second - if
not less - to process for a simple window average, which is awesome =).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2505 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQVLOMSW3FUFLX7QMKYU4NDSQ2TMJANCNFSM4KSVHTZA>
.
|
Sure. Here is the link to the saved container (influxdb2) in my Google Drive, file is
Just in case: |
While testing this out as part of influxdata/pkg-config#26, I found this tool from the Rust Tools team. It could be useful to incorporate into the build/test process for this repo. |
@jpbarcia How'd you do it? I'm able to build InfluxDB but the UI gives a 500 error. |
@zbot473 make sure to build all the project (run |
One thing, if anyone comes across this and gets OOM error (code 137) on the Pi4, I configured it to have a 2GB swapfile, and it worked fine after that. This was on a 4GB model, so you might have to adjust for more swap on a lower end, to even none on the 8GB model. |
The InfluxDB 2.0.3 release includes an updated ARM64 build. You can download the binaries here: https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.3_linux_arm64.tar.gz Please let me know how it goes if you try it out! |
Thanks! I'll check it out. |
Thanks, downloaded it this morning. Initial checks look good |
This works well, and I've been using it for the past few days on my RasPi! You must download a 64-bit OS like Ubuntu (server or desktop) or Raspbian 64 bit. |
influxdb 1.x version still has ARM compatibility problem. It seem latest flux package is not applied to influxdb 1.x release. |
No. Recommendation is to move to 2.x -- so long as you have 64 bit ARM. |
OK. thank you for reply. // I think flux interface of 1.8.x is for migration to 2.x. but if no planning of bugfix, the migration will be difficult... |
I would like the ability to run Flux (via InfluxDB) when it is installed on an ARM based processor.
The text was updated successfully, but these errors were encountered: