Coder offline issues

Hello, I'm evaluating coder in our air-gapped dev environment and run into the problem that despite following https://coder.com/docs/coder-oss/latest/install/offline coder tries to install terraform on startup from the internet (which fails of course):
coder_1 | ==> Logs will stream in below (press ctrl+c to gracefully exit):
coder_1 | Unexpected error, shutting down server: install terraform: install: Get "https://releases.hashicorp.com/terraform/1.3.4/index.json": dial tcp: lookup releases.hashicorp.com on 127.0.0.11:53: no such host
coder_1 | Shutting down API server...
coder_1 | Gracefully shut down API server
coder_1 | Waiting for WebSocket connections to close...
coder_1 | Done waiting for WebSocket connections
coder_1 | install terraform: install: Get "https://releases.hashicorp.com/terraform/1.3.4/index.json": dial tcp: lookup releases.hashicorp.com on 127.0.0.11:53: no such host
coder_1 | Run 'coder server --help' for usage.
coder_coder_1 exited with code 1
coder_1 | ==> Logs will stream in below (press ctrl+c to gracefully exit):
coder_1 | Unexpected error, shutting down server: install terraform: install: Get "https://releases.hashicorp.com/terraform/1.3.4/index.json": dial tcp: lookup releases.hashicorp.com on 127.0.0.11:53: no such host
coder_1 | Shutting down API server...
coder_1 | Gracefully shut down API server
coder_1 | Waiting for WebSocket connections to close...
coder_1 | Done waiting for WebSocket connections
coder_1 | install terraform: install: Get "https://releases.hashicorp.com/terraform/1.3.4/index.json": dial tcp: lookup releases.hashicorp.com on 127.0.0.11:53: no such host
coder_1 | Run 'coder server --help' for usage.
coder_coder_1 exited with code 1
How can I tell coder that terraform is already present? Another issue is that it complains that the update check fails (of course). Is it possible to deactivate this?
Offline deployments - Coder OSS main docs
Run Coder in offline / air-gapped environments
1 Reply
JanL
JanLOP2y ago
To answer my own question: The first issue goes away if you install the "correct" terraform version - I had used the newest release (1.3.6) but coder expected a special one (1.3.4). After installing this instead, it does not try to download it from the Internet. Maybe there is some better log output possible for this case? The second issue can be resolved with an envvar: CODER_UPDATE_CHECK: "false"
Want results from more Discord servers?
Add your server