Fresh Coder helm installation fails Workspace creation

I created a coder instance using helm following step-by-step the docs using a custom TLS ingress that works fine. The installation has been successful, but when I try to create a workspace using the default kubernetes template, the Coder UI fails to connect with the pod with this error:
2025-03-12 11:37:47.707 [info] connecting to coderd

2025-03-12 11:37:47.795 [warn] run exited with error ...

error= GET https://coder.mydomain.com/api/v2/workspaceagents/me/rpc?version=2.3: unexpected status code 403: unexpected non-JSON response ""

Error: no response body
2025-03-12 11:37:47.707 [info] connecting to coderd

2025-03-12 11:37:47.795 [warn] run exited with error ...

error= GET https://coder.mydomain.com/api/v2/workspaceagents/me/rpc?version=2.3: unexpected status code 403: unexpected non-JSON response ""

Error: no response body
While in the coder controller I have these logs:
2025-03-12 11:32:19.395 [info] provisionerd-coder-85cc58dcd5-b2mst-0.runner: apply successful job_id=eea0a5f0-9e46-417f-a22c-d96f556dc68e template_name=dev-machine template_version=gifted_allen5 workspace_build_id=29a09c0b-75cb-458f-9c32-f9b1faecdd52 workspace_id=745d2861-d1ba-4cab-af60-3d9430baadb1 workspace_name=test workspace_owner=admin workspace_transition=start resource_count=2 resources="[kubernetes_persistent_volume_claim.home kubernetes_deployment.main]" state_len=35276

2025-03-12 11:32:19.402 [info] provisionerd-coder-85cc58dcd5-b2mst-0: recv done on Session session_id=3b8513dc-8714-45e0-ae55-c3c1130cca33 error=EOF
2025-03-12 11:32:19.395 [info] provisionerd-coder-85cc58dcd5-b2mst-0.runner: apply successful job_id=eea0a5f0-9e46-417f-a22c-d96f556dc68e template_name=dev-machine template_version=gifted_allen5 workspace_build_id=29a09c0b-75cb-458f-9c32-f9b1faecdd52 workspace_id=745d2861-d1ba-4cab-af60-3d9430baadb1 workspace_name=test workspace_owner=admin workspace_transition=start resource_count=2 resources="[kubernetes_persistent_volume_claim.home kubernetes_deployment.main]" state_len=35276

2025-03-12 11:32:19.402 [info] provisionerd-coder-85cc58dcd5-b2mst-0: recv done on Session session_id=3b8513dc-8714-45e0-ae55-c3c1130cca33 error=EOF
I attached the screen of what the UI shows, while on kubernetes the pod is in "running" state.
No description
Solution:
@Phorcys I solved it! The problem was the ingress class I was using, I had to enable websockets in the annotations. For everyone who users Contour wondering how I solved it, this is the config: ```YAML ingress:...
Jump to solution
10 Replies
Codercord
Codercord2mo ago
<#1349350556233109634>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Arturo Ghinassi
Arturo GhinassiOP2mo ago
I am also not able to connect to the istance using VSCode as I get this error:
No description
Phorcys
Phorcys2mo ago
hey, are you using a self-signed cert?
Arturo Ghinassi
Arturo GhinassiOP2mo ago
Hi, No the certification is issued by letsencrypt and is managed by an AWS load balancer. So the ingress https://coder.mydomain.com points to the Application Load Balancer that manages the certification and then redirects to the kubernetes masters ips.
Arturo Ghinassi
Arturo GhinassiOP2mo ago
Don't know if it helps, but I have also this other error from the UI:
No description
Solution
Arturo Ghinassi
Arturo Ghinassi2mo ago
@Phorcys I solved it! The problem was the ingress class I was using, I had to enable websockets in the annotations. For everyone who users Contour wondering how I solved it, this is the config:
ingress:
enable: true
className: contour
host: coder.mydomain.com
annotations:
projectcontour.io/websocket-routes: "/"
tls:
enable: true
secretName: mydomain.com
ingress:
enable: true
className: contour
host: coder.mydomain.com
annotations:
projectcontour.io/websocket-routes: "/"
tls:
enable: true
secretName: mydomain.com
I will close the issue on github with the answer.
Phorcys
Phorcys2mo ago
great! try to see if you can also enable DERP upgrades
Arturo Ghinassi
Arturo GhinassiOP2mo ago
Yes I was just looking into it! Thank you very much 🫶🏻
Phorcys
Phorcys2mo ago
thanks for reporting on this, this will help other users :-)
Codercord
Codercord2mo ago
@Phorcys closed the thread.

Did you find this page helpful?