C
Coder.com•3mo ago
digineo

Workspace creation times out.

On creating a new workspace using the starter docker template, it shows the agents are unhealthy. On looking at the docker container logs, I see this:
+ curl -fsSL --compressed https://xxx.pit-1.try.coder.app/bin/coder-linux-amd64 -o coder
curl: (6) Could not resolve host: xxx.pit-1.try.coder.app
error: failed to download coder agent
command returned: 6
+ curl -fsSL --compressed https://xxx.pit-1.try.coder.app/bin/coder-linux-amd64 -o coder
curl: (6) Could not resolve host: xxx.pit-1.try.coder.app
error: failed to download coder agent
command returned: 6
I'm able to resolve DNS on the same network that the container is running in but the workspace container, for some reason, is unable to resolve the tunnel url.
7 Replies
Codercord
Codercord•3mo ago
<#1327064179173097472>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•2mo ago
hello, I'm not sure what the issue can be, try forcing DNS inside your template via https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/container#dns-1 otherwise change your CODER_ACCESS_URL to not use the tunnel -> https://coder.com/docs/admin/setup#access-url hey @digineo, any luck?
digineo
digineoOP•2mo ago
@Phorcys, no luck. I gave up after trying a couple different things. I tried creating the workspace with and without setting CODER_ACCESS_URL. I even tried different Linux distros 😅. This doesn’t appear to be an issue on mac. The bridge network on docker seems to be able to use the local dns resolver without any problems.
Phorcys
Phorcys•2mo ago
what happens when setting the CODER_ACCESS_URL ?
digineo
digineoOP•2mo ago
same dns resolution error. I have my own DNS name with cloudflare. I tunnel the traffic using a Cloudflare Tunnel. It isn’t able to resolve that domain either.
Phorcys
Phorcys•5w ago
sorry to hear that sadly i'm unsure on how to help you further with this as it seems to be an issue with your setup i'll close the issue but please reopen it if you find more clues on what the issue could be or if you ever manage to fix it!
Codercord
Codercord•5w ago
@Phorcys closed the thread.

Did you find this page helpful?