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)
No description
No description
54 Replies
Codercord
Codercord11mo ago
<#1194243679838277642>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif11mo ago
Which template are you using?
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
Docker (@Atif )
Atif
Atif11mo ago
The docker template uses an image that's niy available for armv7 You need to change it to an image compatible with armv7
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
the default docker template uses ubuntu official image that support armv7 (i can pull it from my rsp) dockerfile is pre-built maybe?
Atif
Atif11mo ago
I am trying to reproduce it. Wil update
Phorcys
Phorcys11mo ago
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 correct
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
where ?
Atif
Atif11mo ago
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.
Phorcys
Phorcys11mo ago
sorry, I forgot to mention in your Terraform configuration (main.tf)
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
i have arm32v7 where is located in docker?
Phorcys
Phorcys11mo ago
sorry, it's located in the template what method did you use to upload the template to your coder instance ?
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
Nothing, i use the defaut 'docker containers' template
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
i use them
No description
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
@Phorcys
Phorcys
Phorcys11mo ago
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
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
I don't know terraform, but is it normal that there's no arch = ... here?
No description
Atif
Atif11mo ago
Not here you have to set it in the the resource coder_agent
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
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).
Atif
Atif11mo ago
You can also edit with the template editor. Just select a template and choose edit from the three dot menu.
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
but i cant create my own template
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
im blocked here
No description
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
and the default "docker containers" template cannot be edited
No description
Atif
Atif11mo ago
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.
Phorcys
Phorcys11mo ago
i think it is too i want to try to see if hardcoding to "armv7" will fix it
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
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).
Atif
Atif11mo ago
Can't you do coder login http://coder.local ?
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
no but i run it from the container directly i will try from wsl
Phorcys
Phorcys11mo ago
how are you accessing the web UI?
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
from my computer to coder.local but i run coder login <url> from the container
Phorcys
Phorcys11mo ago
you should do it from your computer
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
how to install the cli only ?
Phorcys
Phorcys11mo ago
the CLI and the server are the same thing so just grab a release from the GitHub repo
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
oh ok, i will install with docker on my computer
Phorcys
Phorcys11mo ago
you don't need to use docker ?
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
ok i try it works
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
No description
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
terraform not found
Atif
Atif11mo ago
You need to be in the directory where main.tf file is
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
oh
Atif
Atif11mo ago
You can first do login Then coder pull Make changes
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
to push or run terraform?
Atif
Atif11mo ago
And coder push You don't need to run terraform Coder does that
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
okok IT WORKS THANKS! Solved ✅
Atif
Atif11mo ago
What did you do? I suppose you changed arch = armv7? In coder_agent resource.
Cetus 🔛🔝
Cetus 🔛🔝OP11mo ago
yes to rename the template i need to rename the folder? i wanna change the name, display name and icon
Atif
Atif11mo ago
You can do this from Coder dashboard Go to templates
Atif
Atif11mo ago
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...
Phorcys
Phorcys11mo ago
thanks Atif, I can probably repro on my rpi
Atif
Atif11mo ago
That would be great. I think it needs an older rpi that's not arm64.
Phorcys
Phorcys7mo ago
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
Cetus 🔛🔝
Cetus 🔛🔝OP7mo ago
yes it's good But I've got other problems I need to investigate further
Phorcys
Phorcys7mo ago
thanks for letting us know, feel free to open another thread if you encounter another issue!
Codercord
Codercord7mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server