No access to built workspace

We use Coder Coder v0.13.2+88bb901 on a Ubuntu 22.04. Machine. Some workspaces (Dockerfiles) work fine but when we use some other dockerfiles like the following:
FROM osrf/ros:noetic-desktop-full
FROM osrf/ros:noetic-desktop-full
We are getting the problem shown in the image. The container is running. We can access the container with docker exec -i containernane bash but on the coder webpage we can't access the workspace. Neither ssh or vscode is shown. Is there something we can do about this? Is it a problem with teraform or our docker? Let me know if you need further information.
No description
32 Replies
Phorcys
Phorcys•2y ago
can you show me your template file ? (the .tf)
DemianFrister
DemianFrister•2y ago
Phorcys
Phorcys•2y ago
hmm seems fine to me i think the container's coder agent is having trouble connecting to your coder instance
DemianFrister
DemianFrister•2y ago
could we help it connect?
Phorcys
Phorcys•2y ago
I'm not sure.. there are likely some steps to debug but I can't find of anything did you change this line ? entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")] you could try setting it to this entrypoint = ["sh", "-c", replace(coder_agent.dev.init_script, "127.0.0.1", "host.docker.internal")]
DemianFrister
DemianFrister•2y ago
we used the standards as far as i know and with others dockerfiles it works. but I can try to change it and try it again.
Phorcys
Phorcys•2y ago
oh wait, does it not work only with some dockerfiles? looks like i misread your issue then is this your complete dockerfile ?
DemianFrister
DemianFrister•2y ago
yes. some dockerfiles work, others not
Phorcys
Phorcys•2y ago
that won't matter then
DemianFrister
DemianFrister•2y ago
this is a complete dockerfile that doesn't work (minimal) ok
Phorcys
Phorcys•2y ago
hmm i think it's not liking the fact that the dockerfile is only a FROM statement unsure can you show me the logs ?
DemianFrister
DemianFrister•2y ago
we used also a dockerfile with more stuff. but this is the minimal file to reproduce the error. I will send the logs. one moment
DemianFrister
DemianFrister•2y ago
here is the log to the workspace generation
Phorcys
Phorcys•2y ago
uuuh this isn't what it shoud output
Phorcys
Phorcys•2y ago
No description
Want results from more Discord servers?
Add your server