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

No arm64 binary for Cloud Agent #2822

Closed
boredland opened this issue Mar 5, 2021 · 6 comments · Fixed by #3294
Closed

No arm64 binary for Cloud Agent #2822

boredland opened this issue Mar 5, 2021 · 6 comments · Fixed by #3294
Assignees
Labels
upstream Needs to be fixed upstream
Milestone

Comments

@boredland
Copy link

Using code-server on arm64 I just realized that the cloud agent binary for linux always is a x86 binary which in effect renders the cloud services unusable for arm64. Are there plans to provide an arm64 binary?

@code-asher
Copy link
Member

I opened an issue in the cloud agent repo (linked above).

@code-asher code-asher added the upstream Needs to be fixed upstream label Mar 5, 2021
@VoyTechnology
Copy link

WORKAROUND

On your arm64 instance run:

$ git clone https://github.com/cdr/cloud-agent.git
$ cd cloud-agent
$ go build -ldflags "-X go.coder.com/cloud-agent/internal/version.Version=v0.2.1"
$ sudo mv /usr/bin/code-server/lib/coder-cloud-agent /usr/bin/code-server/lib/coder-cloud-agent.x86_64.backup
$ sudo cp ./cloud-agent /usr/bin/code-server/lib/coder-cloud-agent

I am using Arch, so the installation directory may vary, also, I am not sure which is the latest version, and v0.2.1 is the minimum, so update if necessary.

But devs, please update the CI to include the proper binary.

@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 13, 2021

Thanks for posting your workaround @VoyTechnology!

Yes, @oxy opened a PR to fix this: coder/cloud-agent#13

Hopefully we can get that reviewed by the team that manages that project and merged in soon.

@jsjoeio jsjoeio added this to the v3.9.4 milestone Apr 13, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 30, 2021

Fixed in cdr/cloud-agent v0.2.2 thanks to @oxy https://github.com/cdr/cloud-agent/releases/tag/v0.2.2

@jsjoeio jsjoeio closed this as completed Apr 30, 2021
@oxy
Copy link

oxy commented May 2, 2021

We still need to download the correct release/correct architecture in our build scripts in this repo. Will work on that later next week once I get the vscode build scripts working again.

@oxy oxy reopened this May 2, 2021
@oxy
Copy link

oxy commented May 7, 2021

I fixed this a while ago in #3294 - just forgot to close 😅

@oxy oxy closed this as completed May 7, 2021
@jsjoeio jsjoeio linked a pull request May 7, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Needs to be fixed upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants