Skip to content

arch returned by coder_provisioner and what coder_agent expects don't match #11782

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

Closed
matifali opened this issue Jan 23, 2024 · 6 comments · Fixed by coder/terraform-provider-coder#210
Assignees
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.

Comments

@matifali
Copy link
Member

matifali commented Jan 23, 2024

While running on a Raspberry Pi with armv7 architecture. A user reported this error.
image

@bpmct could you try to reproduce on your Raspberry Pi?

Both workspace and Coder provisioner are running on Raspberry Pi.

Manually changing arch = armv7 for the coder_agent fixed the issue.

@matifali matifali added s2 Broken use cases or features (with a workaround). Only humans may set this. bug labels Jan 23, 2024
@johnstcn johnstcn self-assigned this Mar 11, 2024
@johnstcn
Copy link
Member

Need repro, would be good to know which model?

@matifali
Copy link
Member Author

matifali commented Mar 11, 2024

As per the docs, all Raspberry pi after 2 should be arm64. Raspberry Pi 2 had an armv7 architecture.

@johnstcn
Copy link
Member

I have one in my drawer! Time to dig it out.

@johnstcn
Copy link
Member

johnstcn commented Mar 22, 2024

My bad, it's actually an armv6 model B that I have.

Alternative: use QEMU ARM emulation (e.g. https://github.com/lima-vm/lima/blob/master/examples/experimental/armv7l.yaml )

@johnstcn
Copy link
Member

johnstcn commented Mar 22, 2024

No joy with QEMU armv7 emulation just yet (followed these steps to set up a Debian 12 armhf VM). Will see if I can get my hands on some real armv7 hardware.

@johnstcn
Copy link
Member

https://go.dev/wiki/GoArm#supported-architectures

GOARCH=arm
GOARM=7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants