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.
2 Replies
Codercord
Codercord4w ago
<#1327064179173097472>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys7h 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?

Did you find this page helpful?