C
Coder.com•2mo ago
lemon cow

Can't create templates due to connectivity to Terraform in Docker Compose deployment

I deployed Coder in Docker Compose, and I am having trouble setting up a template. I can reach my webUI, but when I try to create a template, I see this error: (text from coder webUI error)
Initializing the backend...
Initializing modules...
Error: Error accessing remote module registry
on main.tf line 125:
125: module "code-server" {
Failed to retrieve available versions for module "code-server" (main.tf:125)
from registry.coder.com: failed to request discovery document: Get
"https://registry.coder.com/.well-known/terraform.json": net/http: request
canceled while waiting for connection (Client.Timeout exceeded while awaiting
headers).
Error: Error accessing remote module registry
on main.tf line 137:
137: module "jetbrains" {
Failed to retrieve available versions for module "jetbrains" (main.tf:137)
from registry.coder.com: failed to request discovery document: Get
"https://registry.coder.com/.well-known/terraform.json": dial tcp: lookup
registry.coder.com on 127.0.0.11:53: read udp 127.0.0.1:48380->127.0.0.11:53:
i/o timeout.
Initializing the backend...
Initializing modules...
Error: Error accessing remote module registry
on main.tf line 125:
125: module "code-server" {
Failed to retrieve available versions for module "code-server" (main.tf:125)
from registry.coder.com: failed to request discovery document: Get
"https://registry.coder.com/.well-known/terraform.json": net/http: request
canceled while waiting for connection (Client.Timeout exceeded while awaiting
headers).
Error: Error accessing remote module registry
on main.tf line 137:
137: module "jetbrains" {
Failed to retrieve available versions for module "jetbrains" (main.tf:137)
from registry.coder.com: failed to request discovery document: Get
"https://registry.coder.com/.well-known/terraform.json": dial tcp: lookup
registry.coder.com on 127.0.0.11:53: read udp 127.0.0.1:48380->127.0.0.11:53:
i/o timeout.
I also see errors in the Docker container for Coder. The text is too large so it's attached to this message. I have attached my compose file as well. This is my first attempt at setting this up, any help would be appreciated 🙂
2 Replies
Vijay
Vijay•2mo ago
Your coder server doesn't have connectivity to coder registry. Is this running on your laptop? or on your servers?
lemon cow
lemon cowOP•2mo ago
this is on a physical server running Debian 12

Did you find this page helpful?