C
Coder.com4mo ago
ÙwÚ

EACS03: get healthz endpoint: Get "": dial tcp 127.0.0.1:443: connect: connection refused

Hello I have some trouble with coder health check, I'm able to get "OK" message on both the host, and on my client machine. Currently running coder inside container without tls (behind traefik). Can someone help me troubleshoot what's going on? Here is how I run health check (on host):
~# curl https://vscode.domain/healthz
OK~# curl https://vscode.domain/api/v2/debug/health?force=true
{"message":"You are signed out or your session has expired. Please sign in again to continue.","detail":"Cookie \"coder_session_token\" or query parameter must be provided."}
~# curl https://vscode.domain/healthz
OK~# curl https://vscode.domain/api/v2/debug/health?force=true
{"message":"You are signed out or your session has expired. Please sign in again to continue.","detail":"Cookie \"coder_session_token\" or query parameter must be provided."}
so I dont understand how connection at localhost 443 was refused, can someone help?
4 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
What are you creating this issue for?
ÙwÚ
ÙwÚOP4mo ago
Here is more info (docker logs with egrep health):
coder | 2025-07-03 20:55:03.297 [info] coderd: audit_log ID=f2972db9-2e5a-4c81-84b4-cf6404b11f2c Time="2025-07-03T20:55:03.294171Z" UserID=6b4e3500-fb8c-4b76-a27c-18e8da591f79 OrganizationID=00000000-0000-0000-0000-000000000000 Ip=192.168.240.3 UserAgent="Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" ResourceType=health_settings ResourceID=4f00f825-80a0-4da0-ba08-c120568de7f6 ResourceTarget="" Action=write Diff="{\"dismissed_healthchecks\":{\"Old\":null,\"New\":[\"AccessURL\"],\"Secret\":false}}" StatusCode=200 AdditionalFields="{}" RequestID=fce37963-90ba-46a9-ba6b-2e5a045d94c9 ResourceIcon="" actor="&{ID:6b4e3500-fb8c-4b76-a27c-18e8da591f79 Email:my.mail@gmail.com Username:Decoyer}"
~# docker compose ps
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
coder ghcr.io/coder/coder:latest "/opt/coder server" coder 2 hours ago Up 2 hours
coder-db postgres:16 "docker-entrypoint.s…" database 2 hours ago Up 2 hours (healthy) 5432/tcp
~#
coder | 2025-07-03 20:55:03.297 [info] coderd: audit_log ID=f2972db9-2e5a-4c81-84b4-cf6404b11f2c Time="2025-07-03T20:55:03.294171Z" UserID=6b4e3500-fb8c-4b76-a27c-18e8da591f79 OrganizationID=00000000-0000-0000-0000-000000000000 Ip=192.168.240.3 UserAgent="Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" ResourceType=health_settings ResourceID=4f00f825-80a0-4da0-ba08-c120568de7f6 ResourceTarget="" Action=write Diff="{\"dismissed_healthchecks\":{\"Old\":null,\"New\":[\"AccessURL\"],\"Secret\":false}}" StatusCode=200 AdditionalFields="{}" RequestID=fce37963-90ba-46a9-ba6b-2e5a045d94c9 ResourceIcon="" actor="&{ID:6b4e3500-fb8c-4b76-a27c-18e8da591f79 Email:my.mail@gmail.com Username:Decoyer}"
~# docker compose ps
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
coder ghcr.io/coder/coder:latest "/opt/coder server" coder 2 hours ago Up 2 hours
coder-db postgres:16 "docker-entrypoint.s…" database 2 hours ago Up 2 hours (healthy) 5432/tcp
~#
Ok i think I figure it out the reason but not quite sure how to proceed, im running coder in container with tls disable so it using my custom port 7778, and I guess running it behind traefik make the health misunderstood what the real address is to do health check? Need some help here please, my set up is at follow: coder in container > traefik > cloudflare tunnel, it's working fine for months, but after I tried doing stuff with adguardhome it messed up now 😅 nvm guys I fixed it, I forgot I did change the /etc/systemd/resolved.conf DNS=127.0.0.1 , i guess it some how mess up with the coder healthz
Codercord
Codercord4mo ago
@Phorcys closed the thread.

Did you find this page helpful?