Coder.com

C

Coder.com

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

Join

How to push templates to Kubernetes Coder from GitLab CI/CD?

Hi all, I am trying to push my Terraform templates to my self-hosted Coder running in Kuberentes. I followed this guide: https://coder.com/docs/admin/templates/managing-templates/change-management#coder-cli This is the error I am getting:...

Where can I find settings.json for vscode web?

I use the docker template and use the VS Code Web (https://registry.coder.com/modules/vscode-web) module. I looked up the historical posts and they said settings.json is located at ~/.local/share/code-server/User/settings.json, but I found that the ~/.local/share/code-server/User/ folder was not created, and even if I used the instructions to create and write settings.json, vscode's settings did not change. When I manually opened vscode's settings file and copied its absolute path, it returned (Settings) /User/settings.json....
No description

Restrict access for Gitlab Auth

Hi community, how can I restrict the access based on Gitlab authentication? I have created the Gitlab app on a group like foo/bar/coder, can I restrict the access to members of the coder group only? Currently anybody authenticated to Gitlab is able to sign into Coder.
Solution:
Found the solution on my own by try and error. I got to assign the env variables CODER_OIDC_GROUP_FIELD=groups and CODER_OIDC_ALLOWED_GROUPS=foo/bar/coder to get it working as expected.

AWS: Can't make searching among custom (private) AMIs work

Hi team! I am building coder workspaces in my AWS account based on EC2 virtual machines. I have built a custom AMI (thanks to EC2 Image Builder). Now I want to use it in a Coder template. ...

Envbuilder in Coder: wrong user is used when cache is enabled

Hello, when I build image for the first time, the correct user, specified in .devcontainer is used. But when the pod is restarted and image is pulled from cache, it ALWAYS uses root user which then fails, because only the specified user has private SSH key in their .ssh which can pull from remote repository. This happens regardless of ENVBUILDER_REMOTE_REPO_BUILD_MODE set to true or false. devcontainer: ```json {...

VS Code Desktop, remove button

When creating a template, I would like to remove the “VS Code Desktop” button as an option. I would like a template that only has “terminal” available, to force my students into using it. Thanks...
Solution:
inside the template's coder_agent resource, add a display_apps config to force removing the desktop option. ``` display_apps { vscode = false...

web terminal font, want to change

I have just created a fresh Debian 12 instance and loaded Coder on it. Then created a standard “docker” template and opened it up in the provided web terminal. The font that is being used is “DejaVu Sans”. How do I change the web terminal to use a different font; I want to use a Nerd Font. Thanks...

ENVBUILDER_CACHE_REPO is always empty

Hi, I'm not sure what I'm doing wrong but ENVBUILDER_CACHE_REPO always remains empty in the env of the pod, even after multiple restarts. Here are some snippets of my config. LMK if you need more of my configuration and I will provide. I'm using latest versions of coder/coder, hashicorp/kubernetes and coder/envbuilder providers. Envbuilder image is on 1.0.3. Thanks in advance guys 🙂 Otherwise, it works perfectly ```json locals { ... envbuilder_env = {...

Clicking 'Restart' on Unhealthy Coder Agent Stops Workspace Instead of Restarting

When the 'Restart' button is clicked while the Coder agent is marked as unhealthy, the workspace is stopped instead of restarting as expected.

Can't delete a workspace which uses devcontainers

I created a new workspace using Docker DevContainers, but I'm unable to delete the workspace. It's throwing an error that says: Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container d5711f770661 is using its referenced image 6d1d6302ce48....

Virtual Keyboard opens all the time

Hello Everyone ! I installed code-server on one of my machines to work remotely on my tablet. So far everything works, except when i am on code-server (tablet-side) on Google Chrome. As soon as i click on a button (eg : open the File Explorer) or when i slide to go down my code, it opens my tablet keyboard, wich become quickly unpleasant. Has anyone already had this problem ? And solved it ?...

I am trying to setup Git Auth with Coder Envbuilder

I'm trying to set up GitHub authentication with Coder's Envbuilder, but I'm a bit lost when it comes to configuring Terraform. Here's what I've done so far:
I briefly looked at the .tf file and placed the coder_external_auth block below the coder_workspace_owner. ...

KasmVNC in coder not working with my personalized template

Hi, First, good job on coder, it is a very nice tool. About the error. I have coder installed in a Kubernetes cluster k3s with traefik. Using this template https://github.com/sharkymark/v2-templates/tree/main/src/pod-idea-vnc I access correctly the VNC client trough the browser. ...
No description

Intellij does not accept workspace

Hi, I am at the very beginning of evaluating Coder. I am using IDEA version 2024.2.1 with Coder Plugin version 2.14.2 on Windows 11 and have Coder version v2.15.0+190cd1c installed in a very rudimentary way on Debian 12, with a simple workspace created. When I want to start remote development with Coder, the created workspaces are displayed, but the "select IDE and project" button is inactive. Which step did I miss in the installation instructions? Thx
No description

Unable to verify first certificate

Hello, In our setup we use self signed certificates. Accessing the web-ui works fine and also workspaces are built as well. The issue is when we try to authenticate with the vs-code plugin, we receive the error from the image. Even if we select the insecure option the error persists. Attached you can see the settings we use....
No description

Active workspace metrics via prometheus

We are unfortunately not using k8s for our current coder deployment, and I already looked at the observability repo here: https://github.com/coder/observability/tree/main?tab=readme-ov-file and found that many of the dashboards there are strongly tied to k8s metrics on top of the prometheus metrics from coder. I would like to display on a dashboard the current active workspaces, however, this does not seem possible with the current prometheus metrics, maybe I'm wrong.. Has anyone figured out a way to reliably display the current "running" workspace count, purely with the coder prometheus metrics?...

Unable to start workspaces due to http 500 errors from registry.coder.com

We are suddenly getting the errors below when trying to start workspaces (with Coder V2.13.4) Does anyone know what's going on? ``` Error: Error accessing remote module registry...

Memory and CPU limitations do not apply in NOMAD

main.tf (image: NOMAD set up with 1 core and 1 gb)...
No description