Coder.com

C

Coder.com

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

Join

help

📢︱announcements

Accessing an sql server from outside the workspace

Hi, I have coder deployed on a k8s cluster and a workspace using docker in docker. I have deployed an sql server in the workspace using docker compose, exposing 1433 and 1434 (TCP). Our team wants to be able to access that sql server from outside the workspace. Is this possible? If it is what’s the best way of doing it?

Stuck on docker_image.main

After installing code inside docker and creating a docker template and then a workspace it is stuck seemingly infinitely on docker_image.main: Still creating... Eventually it fails because ==================== Coder: Build has been detected as hung for 5 minutes and will be terminated. ====================...

Set a Default URI w/Dotfiles Module

Is it possible to set a default URI for the repository when using this module?

Failed to read downloaded context

Hello, I've setup Coder for the first time today using the Docker image. When trying to launch a workspace, I have the following issue, can you help me figuring out how to fix it?...
No description

Error: couldn't parse owner groups ""

Everything has been working fine for the past few months, but this morning I ran into this error when starting my workspace. ``` Error: couldn't parse owner groups "" on main.tf line 22, in data "coder_workspace" "me":...
Solution:
this should be fixed now in v0.20.1 now

Access module through VPN IP instead of Tunnel

I installed the JetBrains Gateway module like this: ``` module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder"...

Change port forward url to coder.domain.tld/xxxxx

Is it possible for me to change the url for port forwarding to coder.domain.tld/xxxxx like the code-server instances are? I am unable to use the *.coder.domain.tld format due to cloudflare requiring advanced certificate manager for 2 step subdomains.

Unexpected error, shutting down server: install terraform: install: context deadline exceeded

guys i am getting this error when i run coder server in my ubuntu laptop
No description

Setting up a Privileged Sidecar

Following the documentation here: https://coder.com/docs/v2/latest/templates/docker-in-workspaces#use-a-privileged-sidecar-container-in-docker-based-templates I started with the starter template for docker containers. Addded the resource block for a private network, the dind container and updated the networks_advanced entry and the DOCKER_HOST env setting in the workspace container. ...
No description

iOS install

I want to install the code-server on my iphone and when the Configure iSH to use an earlier version of NodeJS with nano /etc/apk/repositories and edit v3.14 to v3.12 on both repository links. part came the iSH cant find the APKINDEX.tar.gz couze its not existing...
No description

CLion missing

Hi , Running latest version on K8s EKS , When connecting from Jetbrains Gateway , or from CLion using the remote dev option I do not get Clion in the list of available IDEs - PyCharm , IntelliJ, PhpStorm all there. Any ideas why?...

Authentication within Coder workspaces

Hi guys ! We have an issue with authentication within workspaces. Specifically, we are making a system where Coder is just of the tools, and we've setup an SSO auth scheme with Zitadel. As you can imagine, what we want to have is users authenticating just once into Zitadel, and then having access to our entire system. So within the workspace user should be able to pull his repositories from self-hosted GitLab, an in general have access to all his resources within our system without the need to re-authenticate from within workspace as well. For that, we need to somehow pass an access token from Coder into workspace. We know we can do that with the coder_workspace data source, owner_oidc_access_token attribute, but this only works on workspace startup. How do we refresh the access token after it expires? Right now, we have to restart workspace to get a new valid access token....

PV Permissions?

So I've deployed the Coder server to our K8s cluster via the helm chart; however, starting up a workspace fails on permission attempting to write to the /home/coder directory. I'm guessing because I created a persistent volume which ofc is mounted as root. How are ppl getting around this?...

import resources?

somehow my tf state has been messed up and coder is trying to recreate my home volume. how can I import my previous volume?

Docker-in-Docker with sysbox on Kubernetes

Hi! I'm trying to setup sysbox-runc using the instructions provided in https://coder.com/docs/v2/latest/templates/docker-in-workspaces#use-sysbox-in-kubernetes-based-templates (and previously installing the sysbox on the k8s cluster in question). However, when I'm creating a new workspace I get the following error: ``` Error: pods "coder-artyom-artyom-test-sysbox-coder" is forbidden: pod rejected: RuntimeClass "sysbox-runc" not found on main.tf line 205, in resource "kubernetes_pod" "main": 205: resource "kubernetes_pod" "main" {...

Terraforms docker_image extra_hosts flag get ignored

Hello, I need to add some local records into /etc/hosts of every container made from my template, so i read the docker_image documentation on terraform and teried to use the extra_hosts parameter: https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image#extra_hosts Unfortunately, it is ignored by Coder the DNS record is not resolvable in containers and the change is not save into /ets/hosts even on newly created workspaces....

Struggling to set up on kubernetes

Hi all, I followed the installation instructions step by step. Everything seems to be up, however, when I use the kubernetes template it gets stuck at The workspace agent is having trouble connecting...

Is there any way to create a coder_parameter that assists the user in inputting others' usernames?

I am looking for a way to have a coder_parameter of type "list(string)" that will be used to specify usernames. It currently works, but it requires the user to know all of the usernames they want to add and won't help them if they're spelled wrong and therefore don't exist. Is there any way to validate the list against existing user to ensure they exist, or better yet, help them find member names similar to the admin functionality that allows admins to create workspaces for users?

How can i change the current region?

Hello! I want to change the region to Sao Pablo, how can i do that? I looked in the documentation but found nothing...
Solution:
You can also run your Coder instance closer to where you live 🙂
No description

britive integration

Has anyone worked with britive for cloud accounts. I am hoping to speed up the setup time for developers to authenticate with coder and then allow for workspace to require access to a specific cloud account via britive...