-
Notifications
You must be signed in to change notification settings - Fork 886
Bug: Obscure error when using Docker template #1198
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
Comments
Same with this one @ammario With this sprint so packed to get to Beta and that we have a sprint before the switch happens, I am going to align this with the first sprint of community. That does not mean it can't be picked up before that though. Let me know if you still want to inject this into Beta. CC @tjcran |
Hey team! Please add your planning poker estimate with ZenHub @jsjoeio @bpmct |
I think this needs some discovery work before it can be estimated. The bug could be a quick 20m fix or a multi-day long architectural revision. It's impossible to tell from the error which is closer. |
Removed myself from this one, it's a bit outside my wheelhouse |
I'm also not too sure, I took a wild guess but don't have a ton of context on this. I would probably groom this with the Backend team. |
I ran into this while troubleshooting an issue with Docker on armv7. On my end, the issue was an architecture mismatch between the system (arm) and the enterprise-image (amd64). When running the image in Docker directly, the error is clear: benpotter@elijo:~ $ docker run codercom/enterprise-base:ubuntu
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error However, in Coder(/Terraform?), this error is not displayed: docker_container.workspace[0]: Creation errored after 2s
Error: container exited immediately I did a tiny bit of digging, but didn't try directly provisioning in TF to see if more errors/details are shared. I agree this is a confusing debugging experience |
Just a recommendation (feature): add docker logs to Coder Terraform logs so that you can debug easily than ever. |
Please add your planning poker estimate with ZenHub @kylecarbs |
Hey team! Please add your planning poker estimate with ZenHub @johnstcn @mafredri |
Paired with @mafredri -- spent a couple hours and was able to partially reproduce the issue, although there have been several improvements since then. Also noting I am able to run through the Steps to reproduce
$ coder templates create
> Create and upload "/tmp/docker-local"? (yes/no)
✔ Queued [28ms]
✔ Setting up [3ms]
✔ Adding README.md... [0ms]
✔ Parse parameters [2ms]
⧗ Detecting persistent resources
Terraform 1.1.7
Error: Unsupported attribute
This object has no argument, nested block, or exported attribute named "init_scripttt". Did you mean "init_script"?
✘ Detecting persistent resources [4694ms]
template import provision for start: recv import provision: plan terraform: exit status 1 Fixes
Notes
|
@johnstcn chiming in to see if I can help move this forward. Should we turn your other fixes(first 3) into issues and close this? |
@jsjoeio I don't think that much overhead is necessary! I was thinking of just attaching PRs to this ticket for each of those. |
One thing that helps a bit with troubleshooting this kind of problem: the default Docker logging driver deletes logs as soon as a container is deleted. But if you use the |
Ended up making a separate issue for provisioner job output, as we need to ensure adminstrators can set its verbosity independently #1733 |
Closing this issue out, as:
|
Steps to reproduce
Environment: M1 MacOS, v0.0.0-devel+8661f92
coder server --dev
templates init
andtemplates create
Observe the obscure error on the client side:

Observe the obscure error in the server log:

Also: we emit
job has already been marked as failed
which is redundant withfailing running job
.This issue is important since we plan for the Docker-based install to be default.
The text was updated successfully, but these errors were encountered: