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
DemianFristerOP•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
DemianFristerOP•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
DemianFristerOP•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
DemianFristerOP•2y ago
yes. some dockerfiles work, others not
Phorcys
Phorcys•2y ago
that won't matter then
DemianFrister
DemianFristerOP•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
DemianFristerOP•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
DemianFristerOP•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
Phorcys
Phorcys•2y ago
No description
Phorcys
Phorcys•2y ago
this is what i'd like to see
DemianFrister
DemianFristerOP•2y ago
mhmm. should we update our teraform to 0.6.3. and docker? Or what could be the problem?
Phorcys
Phorcys•2y ago
can you screenshot this tab ?
DemianFrister
DemianFristerOP•2y ago
sure. is this enough or more?
No description
Phorcys
Phorcys•2y ago
a bit more maybe
DemianFrister
DemianFristerOP•2y ago
I printed the full page to pdf and used kreuzwerker 2.23.0 and coder 06.3 (same problem)
DemianFrister
DemianFristerOP•2y ago
Our output from working dockerfiles looks pretty similar
Phorcys
Phorcys•2y ago
hmm this looks fine really weird I have no clue how to debug this maybe @Ben can take a look
DemianFrister
DemianFristerOP•2y ago
😟 but thank you for your help so far. We try to change some more stuff and maybe we find a solution (or problem) on our end
Phorcys
Phorcys•2y ago
i hope so ! and if you find the solution it'd be kind to share it :)
DemianFrister
DemianFristerOP•2y ago
Of course. There is nothing more irritating than https://xkcd.com/979/
xkcd: Wisdom of the Ancients
From An unknown user
All long help threads should have a sticky globally-editable post at the top saying 'DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far ...'
DemianFrister
DemianFristerOP•2y ago
Now after a while the workspace shows . This is something we didn't see before
No description
DemianFrister
DemianFristerOP•2y ago
We got it to work... We didn't read the documentation close enough. Our containers didn't have curl installed. By adding curl to our dockerfile install sripts it worked. Thanks again and sorry for not reading the documentation
kyle
kyle•2y ago
Happy to hear you got it working!
Codercord
Codercord•2y ago
Marked the thread as resolved.
Phorcys
Phorcys•2y ago
oooh damn omg kyle using my bot i feel so accomplished
Want results from more Discord servers?
Add your server