Coder.com

C

Coder.com

Community server for Coder.com, an open-source platform for cloud development environments.

Join

help

📢︱announcements

How do I install direnv on my coder workspace?

Hi everyone how do i get direnv a few other stuff installed onto my Coder workspace? thanks

Setting up CA certificate for the container

Hey there! I'm hosting Coder on a Redhat VM that is already configured with it's certificate from our CA. However, I'm having a hard time trying to set it up on the container. After starting the workspace if I check the docker logs of the container I get...
Solution:
Updating here in case it helps someone going through something similar, the "unable to get local issuer certificate" as the error itself suggests was a problem with how our intermediate certificate was generated. However, using a self-signed certificate to validate it still caused the "could not resolve hostname" error when trying to open Coder on VS Code Desktop extension. It was necessary, in addition to including the self-signed certificate in the trust store of our machine, which had already been done, to add the environment variable NODE_EXTRA_CA_CERTS on the machine pointing to the path of the certificate....

v2.19.1 CODER_OIDC_ALLOWED_GROUPS completely ignored

I'm trying to setup OIDC login for coder and found that it does not honour the environment variable CODER_OIDC_ALLOWED_GROUPS. whatever I do, the user is logged in. Can you help ?

Error while install Docker template

error log ``` Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied on main.tf line 22, in provider "docker": 22: provider "docker" {...

Workspace AWS role access?

I checked in GH and searched in discord, not finding anything. I'm looking for a way (similar to the github external auth) for a user of a workspace to automatically have aws role assumption inside their workspace. I'm assuming it'd have similar user experience to GH external auth, where you click a button exposed in the template->workspace creation step and from there your workspace is "aws" potent (ie. you could issue an aws sts get-caller-identity after entering the workspace) Thoughts?
Is this feasible? Would it work with AWS OIDC/IAM or AWS Identity Center?...

continue extensions can not work

continue extensions can not work correctly in the centos 7 on code server lasted version , can anyone issue it?👀

Dev Containers without the Dev Containers extension possible using code-server?

Typically with vs-code, i'd use the remote connection and dev container extensions to 'connect' to a Dev Container, however from my understanding from various posts on the internet, it appears this method isn't possible using code-server due to licensing restrictions on these extensions. If that's true, are there any workarounds? Thanks in advance for taking a look!...

coder machines not shutting down in the expected manner after user inactivity

How is "inactivity" detected for coder instances? We have been working to reduce costs of coder instances and noticed that in some cases, coder machines will not shut down when we expect them to. What constitutes "inactivity" as described here: https://coder.com/docs/user-guides/workspace-scheduling and is there any guidance on how we can debug what prevented an instance from shutting down?

PATH getting overwritten on Windows VM

Hello! I am a very new coder user. Recently our corpeng started to a trial of this tool and we can provision Windows machines with it. This is amazing because I don't use windows much but still can test stuff on demand. I wrote myself a script which sets up machine and just copy-paste it. Big problem is that PATH getting wiped every time I do ssh coder.my-machine. I spend too much time browsing terraform files, but there is nothing indicating changin $env:Path. Only thing which isn't clear what's doing is ${coder_agent.main.init_script}. I tried adding items to my profile. I see them executing (echoing) when I ssh in, but path is overwritten after. Please help....

Github Oauth Config Issue

I've installed coder-server today. I'm trying to configure Github Oauth with no success. I've been trying for hours and I'm at a dead end, becoming increasingly frustrated. I've tried to follow the instructions, even asked AI for help and still not getting anywhere. I've done what I thought was right in the config.yaml file and systemd I think it was but no matter what I try, I just get a 502 gateway error. I'm using Nginx for the proxy. Anyone able to help me finally get this working and fix th...

[BUG] Coder v2.19.1 on EKS - port-forwarding UI button disappears after some time

Hi all - currently running Coder v2.19.1 on EKS with wildcard subdomain proxying. Works like a charm. However, I notice after a while, the "Open ports" button on my Coder agent's UI disappears. It comes back right away after I restart my Coder server's pod. The same applies to Coder apps that use subdomains. Additionally, having saved the URL of one of my subdomain-routed apps, the actual app remains accessible even though the "open ports" button disappeared and that app's button became unclickable. Accessing the URL made those buttons alive again the same way restarting my Coder Server pod did. For context, workspaces run on EC2 instances that are started/stopped - so not ephemeral. The coder_agent resource is persisted accross restart, i.e. I am not using the 'count' parameter. If curious why, this prevents me from modifying the EC2's 'user_data' cloud-init script, which otherwise makes start/stop operations very slow....
No description

Installing coder in EKS

Hello, I'm trying to install Coder and I'm having some difficulty connecting everything. 1. I created an NLB with Ingress Nginx (basic config: ports 80 and 443). The certificate is from ACM. 2. In the Helm chart for Coder, I configured Cognito, set the URL with my NLB DNS, and enabled ClusterIP. 3. I created an Ingress (not in the Coder Helm chart) to point to port 80....
Solution:
Yes 🙂 in the config i missed "internet-facing" x_x thanks to GPT haha, but i wonder if the team who code the template file for the load balancer parameter to check if they can add the security group option 🙂

Code-server remove parts of activity bar

Hello, new to code-server 🙂 I deployed it using a Dockerfile with the codercom/code-server:latest base image. However, I am trying to do a minimalistic approach and only using some of its features (file explorer and search). Because I do not need all of the git/chat/debug/test functionalities, I was wondering if its possible to remove their functionalities and icons from the activity bar...

Port Forwarding Issue with Nginx Swag Reverse Proxy

Blocked request. This host ("3000--main--portfolio-cat--developmentcats.blah") is not allowed. To allow this host, add "3000--main--portfolio-cat--developmentcats.coder.blah" to server.allowedHosts in vite.config.js. I have the DNS entries for *.coder and coder. both going to the correct place and this is my reverse proxy config...

coder/wgtunnel

It's been a while since I setup wgtunnel built by coder, I managed to do it again but fell into a ditch ... Normally when you go to the root path it should say https://coder.com but rn it says not found. Not sure what's going on but even the POST routes don't work,...

Installed Coder, but can't connect to code-server with VSCode

I just recently installed Coder with the docker-compose.yaml file, it's running on an EC2 instance, in a private subnet that I connect with the Cloudflare ZTNA VPN. I can connect to it, create a template and start a workspace, the problem is, when I try to connect to Coder with VSCode, it tries for a long time then I get this error: OpenSSH_9.9p1, OpenSSL 3.3.2 3 Sep 2024 Connection closed by UNKNOWN port 65535 local-server-1> ssh child died, shutting down...
Solution:
Hey, in the end I had to put it into a public subnet AND remove all that I was allowing into my SG, then it worked

Help with caddy reverse proxy

I can't figure out how to setup coder and caddy together. Can you share a possible config file Domain coder.evokerking.dev Wildcard Domain *.coder.evokerking.dev...

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...
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:...
No description

OpenStack provider authentication

Hi, I am trying to create a template, that creates OpenStack VM to user's own project/account. What's the best way to authenticate users to the OpenStack provider? Current solution was to pass the OpenStack app credentials as parameters to the template, but this is not suitable for production envionment. I found this , but I am not sure how to use it. Can anyone help please?...