Coder.comC
Coder.com15mo ago
13 replies
ei.do

Workspace stuck on loading

i am creating a proof on concept for coder, I have it on a debian on dedicated server, I am exposing coder directly via https + zerossl certificate.
Workspaces always loading, nothing is displayed then I get
Workspace is unhealthy
Your workspace is running but 1 agent is unhealthy
I really appreciate help in fixing this issue and many thanks in advance you all
----- env ---
/ firewall is disabled, tried also with nginx x the same.
/ template: https://github.com/sharkymark/v2-templates/blob/main/src/docker-dev-container/main.tf
/ coder.env

CODER_ACCESS_URL=https://xyzpoc.dev
CODER_WILDCARD_ACCESS_URL=*.xyzpoc.app
CODER_HTTP_ADDRESS=1.2.3.4:80
CODER_DISABLE_DIRECT_CONNECTIONS=true
CODER_TLS_ADDRESS=1.2.3.4:443
CODER_REDIRECT_TO_ACCESS_URL=true

CODER_TLS_CERT_FILE=/etc/coder/fullchain.cer
CODER_TLS_ENABLE=true
CODER_TLS_KEY_FILE=/etc/coder/cert.key

CODER_VERBOSE=true


CODER_STRICT_TRANSPORT_SECURITY=1
CODER_TELEMETRY_ENABLE=false
CODER_DISABLE_NETWORK_TELEMETRY=true
CODER_TUNNEL=false
CODER_TLS_MIN_VERSION=tls12
CODER_DERP_SERVER_ENABLE=true
CODER_DERP_SERVER_REGION_NAME=DE
CODER_DERP_FORCE_WEBSOCKETS=true

CODER_PG_CONNECTION_URL="postgresql://user:password@127.0.0.1:5432/coderdb?sslmode=disable"
image.png
image.png
image.png
GitHub
Coder CDE Terraform templates and tips. Contribute to sharkymark/v2-templates development by creating an account on GitHub.
v2-templates/src/docker-dev-container/main.tf at main · sharkymark/...
Solution
using curl -L https://coder.com/install.sh | sh to install coder on debian 12, always got the loading state and then unhealthy
the server has new image and nothing installed only coder.

I tried to expose it directly to 443, and tried with nginx .. always no load

only worked when I used alternative methods

https://coder.com/docs/install/docker

so, I installed docker, and copied the docker-compose file from your github repo and then added a debian service to run the docker composer up for coder,
this way, it worked and now I have a runing workspaces and template.
Install Coder using Docker
Docker - Coder Docs
Preview image
Was this page helpful?