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

Unable to setup selfhosted build agent on arm32v7 #80763

Closed
FinitelyFailed opened this issue Sep 8, 2021 · 6 comments
Closed

Unable to setup selfhosted build agent on arm32v7 #80763

FinitelyFailed opened this issue Sep 8, 2021 · 6 comments

Comments

@FinitelyFailed
Copy link

FinitelyFailed commented Sep 8, 2021

The documentation links to this guide: https://devblogs.microsoft.com/iotdev/setup-azure-iot-edge-ci-cd-pipeline-with-arm-agent/

However when trying to run azure-cli ("az --version" or similar) after a successful install you will get "/usr/bin/az: line 3: /usr/bin/../../opt/az/bin/python3: cannot execute binary file: Exec format error" which leads one to find this:
Azure/azure-cli#14135

I.e. azure-cli is required for a self hosted linux build agent to work, but I can't get azure-cli to work on arm32v7.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@asergaz
Copy link
Contributor

asergaz commented Sep 8, 2021

Hello @FinitelyFailed thank you for your question! Can you clarify better what step in the documentation is failing for you?

Thanks!

@asergaz asergaz closed this as completed Sep 14, 2021
@asergaz asergaz reopened this Sep 14, 2021
@asergaz
Copy link
Contributor

asergaz commented Sep 14, 2021

Hello @FinitelyFailed I have edited your initial question as it was hiding the reference to the similar issue: Azure/azure-cli#14135

I have checked the blog and it mentions that you can install Azure CLI on Linux Manually. Can you confirm what is your Hardware and OS Version where you are trying to setup the Self-hosted Linux agent ?

From both Azure CLI and DevOps prerequisites it looks like we are testing it mainly in Debian 9 (Stretch) and Ubuntu 18.04.

Thank you for your time so far @FinitelyFailed !

@jiasli
Copy link
Member

jiasli commented Sep 17, 2021

The process to install Azure CLI on arm32v7 machine is the same as installing on arm64v8, which is tracked in Azure/azure-cli#7368.

@asergaz
Copy link
Contributor

asergaz commented Sep 17, 2021

@kgremban I am assigning this issue to you so we can evaluate the need to add a note in the documentation mentioning that currently there is a bug when installing azure-cli on arm64v8 and arm32v7. Thanks!

@asergaz asergaz assigned kgremban and unassigned asergaz Sep 17, 2021
@jiasli
Copy link
Member

jiasli commented Sep 20, 2021

@asergaz, this is not really a bug. Azure CLI's packages are not released for ARM architecture. Any document should explicitly call out that installing Azure CLI with native package installer like apt on ARM64 is not supported.

Our doc explicitly says that:

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#overview

The azure-cli deb package does not support ARM64 architecture.

@kgremban
Copy link
Member

Thank you for your help on this issue @jiasli.

As Jiasli mentioned in one of the linked issues,

Currently the only way to use Azure CLI on ARM64 is to install from PyPI (https://pypi.org/project/azure-cli/):

pip install azure-cli

It would be more appropriate to clarify the CLI installation doc to point ARM64 users to the correct installation steps than to add a note in our documentation. I'm going to close this issue, but will suggest an improvement on the CLI docs to help future users.

Thank you

#please-close

kgremban added a commit to kgremban/azure-docs-cli that referenced this issue Sep 29, 2021
*Moved ARM64 line into its own Note box for easier scanability
*Added a recommendation for installing CLI on ARM64 based on conversations in Azure/azure-cli#7368 and MicrosoftDocs/azure-docs#80763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants