Skip to content
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

Improve arm packaging #6

Open
sproberts92 opened this issue Mar 31, 2019 · 12 comments
Open

Improve arm packaging #6

sproberts92 opened this issue Mar 31, 2019 · 12 comments
Assignees

Comments

@sproberts92
Copy link

I've had some trouble with making use of the packages in repos.influxdata.com.

For CentOS they are packaged for the armhf architecture, however the armhfp release of CentOS actually expects packages to be armv7hl. I am by no means an expert on arm architectures, but as far as I can tell, these refer to the same thing. Indeed I have been running your armhf build on my armv7hl CentOS install on a Raspberry Pi 3b+ for quite some time without issue.

The problem is that yum cannot install "different" architectures, so I have to wget and install with rpm directly, making the repo somewhat pointless.

I have recently switched up to Fedora 29 and arm64 on the RPi, but run into the same problem - the packages on repos.influxdata.com are all packaged for arm64, whereas the arm64 release of Fedora (and indeed the arm64 CentOS too) both expect aarch64 packages. Again these are the same thing as far as I know, and the package runs fine when installed manually, but the difference makes the the package manager and the repo not usable.

@cmd-influx cmd-influx self-assigned this Jun 14, 2019
@Elwell
Copy link

Elwell commented Jul 31, 2019

Still an issue with the 1.7.7 release
[root@alfred ~]# rpm -Uvh ./influxdb-1.7.7.arm64.rpm
warning: ./influxdb-1.7.7.arm64.rpm: Header V4 RSA/SHA256 Signature, key ID 2582e0c5: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
package influxdb-1.7.7-1.arm64 is intended for a different architecture
[root@alfred ~]# uname -m
aarch64
[root@alfred ~]#

@avijc
Copy link

avijc commented Sep 14, 2019

rpm -ivh --ignorearch influxdb-1.7.8.armhf.rpm

That works on my Raspberry Pi 3 B+ (which expects armv7hl), but having to install the package with --ignorearch feels wrong on so many levels.

@stale
Copy link

stale bot commented Dec 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@avijc
Copy link

avijc commented Dec 15, 2019

Just because this hasn't been fixed yet does not mean this is no longer an issue.

@mhall119 mhall119 transferred this issue from influxdata/influxdb Jun 16, 2020
@mhall119 mhall119 assigned antmurph and unassigned cmd-influx Jun 16, 2020
@milliams
Copy link

milliams commented Jul 6, 2020

This is still an issue on CentOS 8 where the architecture is set to aarch64 but all the InfluxDB packaging is usingarm64. This both means that setting the YUM repo baseurl to https://repos.influxdata.com/centos/$releasever/$basearch/stable doesn't work but also even if you manually fix it to https://repos.influxdata.com/centos/$releasever/arm64/stable, any dnf install telegraf gives:

Error: 
 Problem: cannot install the best candidate for the job
  - package telegraf-1.14.5-1.arm64 does not have a compatible architecture

The only fix I can find for this is to use dnf download telegraf to grab the package locally and then to install it manually with RPM with rpm -ivh telegraf-*.rpm --ignorearch. This makes automating the install with something like Ansible very difficult.

CentOS/RHEL use the aarch64 terminology everywhere and, as far as I can see, never use arm64 (passing --forcearch=arm64 to DNF gives invalid choice: 'arm64') so I can't see a reason to use it in the InfluxDB repos.

@mkingsbury-orcadt
Copy link

Still an issue with release 1.8.0, CentOS 7, aarch64. As stated before by others, --ignorearch is just wrong, and isn't an option when using yum.

@hworld
Copy link

hworld commented Jul 7, 2020

Just hit this when trying to install influxdb on the new Graviton2 machines that Amazon is pushing now. Seems like it's gonna be more and more important in the future since it's essentially the best price/performance on Amazon now. Since Amazon Linux is based on the centos/rhel stack, it's also aarch64.

@linuxgemini
Copy link

The issue of aarch64 packages being named arm64 is still ongoing.

@codyshepherd
Copy link

codyshepherd commented Jul 28, 2021

As of today, influxdb 1.8.7 rpms are available in aarch64 and armv7hl. InfluxDB 1.x and 2.x, as well as Kapacitor rpms should be available under these architectures going forward

@linuxgemini
Copy link

Thank you!

@linuxgemini
Copy link

Alright, I just seen that /usr/lib/influxdb/scripts/influxd-systemd-start.sh script chmod is set to u+x so it can't be executed by systemd. chmodding to ugo+x fixes it.

@codyshepherd
Copy link

I was able to repro this too. A fix is incoming with influxdata/influxdb#21987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants