I get 'Error: expected arch to be one of [amd64 armv7 arm64], got arm' but the CPU is armv7
Hey,
I have installed Coder with Docker on my Raspberry PI which has an armv7 architecture, but I get an error. (see screenshot)
54 Replies
<#1194243679838277642>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Which template are you using?
Docker
(@Atif )
The docker template uses an image that's niy available for armv7
You need to change it to an image compatible with armv7
the default docker template uses ubuntu official image that support armv7 (i can pull it from my rsp)
dockerfile is pre-built maybe?
I am trying to reproduce it. Wil update
hey @Cetus 🔛🔝, you should try manually replacing
data.coder_provisioner.me.arch
with "arvm7"
I think that the data.coder_provisioner.me.arch
value is not correctwhere ?
I do not have an RPi, but I tried reproducing it on an Oracle Cloud Arm64 VM. I was not able to reproduce it.
This looks like a bug where
data.coder_provisioner.me.arch
is not detecting the correct architecture of RPi.sorry, I forgot to mention
in your Terraform configuration (
main.tf
)i have arm32v7
where is located in docker?
sorry, it's located in the template
what method did you use to upload the template to your coder instance ?
Nothing, i use the defaut 'docker containers' template
i use them
@Phorcys
I'd be glad to help you but I'm currently sick and I have really bad headaches so I'm not really in the mood right now.
you have to go to the template editing UI and modify the main.tf file
you should be able to find stuff in Coder's docs
I don't know terraform, but is it normal that there's no
arch = ...
here?Not here you have to set it in the the resource coder_agent
Now I've made a
coder templates pull
and I've modified the main.tf file, but when I want to push and I have to connect, coder is not reachable because it's on a local domain (http://coder.local).You can also edit with the template editor. Just select a template and choose edit from the three dot menu.
but i cant create my own template
im blocked here
and the default "docker containers" template cannot be edited
I get it. You need to download it from the coder repo and then push with the changes
I do not have a RPi to reproduce this. But looks like a bug in provisioner code.
i think it is too
i want to try to see if hardcoding to "armv7" will fix it
Now I've made a
coder templates pull
and I've modified the main.tf file, but when I want to push and I have to connect, coder is not reachable because it's on a local domain (http://coder.local).Can't you do
coder login http://coder.local
?no
but i run it from the container directly
i will try from wsl
how are you accessing the web UI?
from my computer to coder.local
but i run
coder login <url>
from the containeryou should do it from your computer
how to install the cli only ?
the CLI and the server are the same thing
so just grab a release from the GitHub repo
oh ok, i will install with docker on my computer
you don't need to use docker ?
ok i try
it works
terraform not found
You need to be in the directory where main.tf file is
oh
You can first do login
Then coder pull
Make changes
to push or run terraform?
And coder push
You don't need to run terraform
Coder does that
okok
IT WORKS THANKS!
Solved ✅
What did you do?
I suppose you changed
arch = armv7
?
In coder_agent
resource.yes
to rename the template i need to rename the folder?
i wanna change the name, display name and icon
You can do this from Coder dashboard
Go to templates
FYI: filed an issue https://github.com/coder/coder/issues/11782
GitHub
arch
returned by coder_provisioner
and what coder_agent
expec...While running on a Raspberry Pi with armv7 architecture. A user reported this error. @bpmct could you try to reproduce on your Raspberry Pi? Both workspace and Coder provisioner are running on Rasp...
thanks Atif, I can probably repro on my rpi
That would be great. I think it needs an older rpi that's not arm64.
i think i have a rpi2 laying around somewhere
hey @Cetus 🔛🔝, did you figure this out?
the issue seems to have been fixed in GH
yes it's good
But I've got other problems I need to investigate further
thanks for letting us know, feel free to open another thread if you encounter another issue!
@Phorcys closed the thread.