Newbie installing Influx2.0 on Raspberry Pi 3 Model B+: "exec format error"

Hi Influx Community!

I’m really excited to learn more about Influx and I want to test it on a new RBPi3 B+ with ARMv8 cpu.

I’m currently trying to install from Docker, using the current Influx 2.0 documentation.

This is my cli result:

pi@raspberrypi:~ $ docker run --name influxdb -p 9999:9999 Quay
Unable to find image ‘quayio/influxdb/influxdb:2.0.0-alpha’ locally
2.0.0-alpha: Pulling from influxdb/influxdb
c240a786fc37: Pull complete
0adf4c26eb91: Pull complete
fcb1b5e72f93: Pull complete
d3a0ec871bf7: Pull complete
Digest: sha256:da91d563221f6634e63e70b55c3ad8c7d08990ccf61d872e333159b4000ede1e
Status: Downloaded newer image for quayio/influxdb/influxdb:2.0.0-alpha
standard_init_linux.go:211: exec user process caused “exec format error”

Can anyone please assist on how to get around this?
Thanks a lot!
Maarten

Further details:
cpu info:

processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : a020d3
Serial : 000000000f5f6c9c
Model : Raspberry Pi 3 Model B Plus Rev 1.3

Linux version:

PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

Your OS is Armv7, not 8. This means it’s s 32 bit OS, and InfluxDB doesn’t support 32bit yet; though a PR was merged yesterday.

Can you compile from source until we get a release out, please?

We’d love your feedback

Thanks for the feedback! I was surprised to indeed see ARMv7. I just bought the Raspberry with the image on the back of the box. It seems that Raspbian is not yet updated?

I’m trying to figure out how to build a docker image from the Github repo and will get back to it.

You need to build the binary go build ./cmd/influxd

You should then be able to use docker image build -f ./docker/influxd/Dockerfile .

Ok, it took me longer then expected.
I had to install Go v1.13.4 (minimal v1.12 required) and Bazaar.

I was able to compile from the source.
But now I’m getting stuck on building the Docker image:

pi@raspberrypi:~/influxdb $ docker image build -f ./docker/influxd/Dockerfile .
Sending build context to Docker daemon    271MB
Step 1/8 : FROM debian:stable-slim
 ---> 54b5f788ca3c
Step 2/8 : COPY influx influxd /usr/bin/
COPY failed: stat /var/lib/docker/tmp/docker-builder842176580/influx: no such file or directory

It’s probably something stupid with the directory from where I’m doing this, but I haven’t figured it out yet.

Ah, yes. The Dockerfile needs influx and influxd to exist.

Please run go build ./cmd/influx and then rerun your docker image build command.

1 Like

Well, rawkode, thanks for your assistance & patience here. It would simply not been possible without you…
Wauw, not sure how I did it, but I got Influx running now, only the CLI though:

I was able to build the docker image!
Then used the docker run command to start the container:
docker run --name myinflux2 -p 9999:9999 influx2

ts=2019-11-28T21:06:08.122343Z lvl=info msg=“Welcome to InfluxDB” log_id=0JOyD2UW000 version=dev commit=none build_date=unknown
ts=2019-11-28T21:06:08.148883Z lvl=info msg=“Resources opened” log_id=0JOyD2UW000 service=bolt path=/root/.influxdbv2/influxd.bolt
ts=2019-11-28T21:06:08.206495Z lvl=info msg=“Opening Series File (start)” log_id=0JOyD2UW000 service=storage-engine service=series-file op_name=series_file_open path=/root/.influxdbv2/engine/_series op_event=start
ts=2019-11-28T21:06:08.294021Z lvl=info msg=“Opening Series File (end)” log_id=0JOyD2UW000 service=storage-engine service=series-file op_name=series_file_open path=/root/.influxdbv2/engine/_series op_event=end op_elapsed=87.547ms
ts=2019-11-28T21:06:08.314404Z lvl=info msg=“Index opened” log_id=0JOyD2UW000 service=storage-engine index=tsi partitions=8
ts=2019-11-28T21:06:08.324096Z lvl=info msg=“Reloaded WAL” log_id=0JOyD2UW000 service=storage-engine path=/root/.influxdbv2/engine/wal duration=0.809ms
ts=2019-11-28T21:06:08.324448Z lvl=info msg=Starting log_id=0JOyD2UW000 service=storage-engine component=retention_enforcer check_interval=1h
ts=2019-11-28T21:06:08.326862Z lvl=info msg=“Starting query controller” log_id=0JOyD2UW000 service=storage-reads concurrency_quota=10 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=10
ts=2019-11-28T21:06:08.660947Z lvl=info msg=Listening log_id=0JOyD2UW000 service=http transport=http addr=:9999 port=9999
ts=2019-11-28T21:06:08.661994Z lvl=info msg=Starting log_id=0JOyD2UW000 service=telemetry interval=8h

At this point, the localhost:9999 is giving a 500 Internal Server Error, even after waiting for a while for the server to properly boot.
From here, I can continue with the CLI setup, but that’s not my preference.

Am I missing something to get the UI setup going?

Hi!

I’m using the 1.7.9 InfluxdDB on an armhf 32bit device. Is it possible to compile a .deb package too for this device from InfluxDB 2.0?

Thanks in advance!

(Sorry for my bad english)