Coder.com

C

Coder.com

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

Join

delete a workspace from cli fails when it was created on behalf of another user

To manage a workshop, I wrote some script to create and delete the proper number of users and workspaces. I had no issue to create the workspace on behalf of each user like this: ``` echo "Please input the number of users you want to create:" read number...

Multitenancy with Coder

Hi, I hope this question isn't as silly as my last one was. 😊 I read in the docs, that to allow for the usage of secrets other Terraform providers would need to access external APIs with, I'd need to start up the Coder pod (in k8s scenario), with the secrets already loaded as environment variables. (Do correct me if I am wrong!)...

different behaviour between desktop VSCode and code-server using gradio app

In the context of a workshop, I'll be using a piece of code involving a gradio app. The minimal code I have with the issue is the following: ``` import gradio as gr...
No description

Uniqueness in workspace naming

Are workspace names unique or rather do they enforce uniqueness? I guess I could test this. But, I figured I'd be lazy and just ask. 😛

Is there a way to have a number of coder_agents defined from a single resource block?

I'm looking to have something like the following so that I can define an arbitrary number of nodes and have all of them report their stats in the Coder page. When I do this, I get errors related to duplicate resource definitions. One such example is error: template import provision for start: duplicate metadata resource: libvirt_domain.node Full template's source can be found here. Is something like this possible, or am I going to have to figure out a different way to go about this? ```...

VSCode Desktop hangs after workspace update

Using VSCode on my Windows Desktop, conntected to Coder running on a Linux Docker. After a change in the Dockerfile of my rust environment in the Coder template, I am always unable to reconnect with VSC Desktop, after applying that update to the coresponding workspace. Failed to set up dynamic port forwarding connection over SSH to the VS Code Server. I don't really understand what this is supposed to tell me, since I didnt setup SSH with Coder, only HTTP(S). Is this a known issue or should i...

Coder on Windows

Running coder server on Windows results in Postgres errors: ``` 2024-11-09 20:58:52.203 [erro] coderd.dbrollup: failed to rollup data ... error= execute transaction: github.com/coder/coder/v2/coderd/database.(*sqlQuerier).runTx...

Bug with local exec in a module

Local exec works fine in terraform script in root, but once it is in any module, it is throwing weird errors. To reproduce this issue create following template: |main.tf |/module/main.tf ```...
No description

Unable to create/delete workspace -- text file busy

Whenever I try to create or delete a workspace in my self-hosted Coder, I get this error: ``` Initializing the backend... Initializing provider plugins......
No description

Save template with failing build

Hi, would it be possible to add some option of saving a template even though the build is failing? When working on some changes I want to be able to back them up to be able to work on them next day for example.

Build devcontainer from hostPath and not git repo - Coder in k8s

Hello, I supposed that this is highly unusual and it's not going to be possible but: we have a NFS storage mounted to every k8s node which is then passed as a hostPath to pods. Users have .devcontainer in .gitignore becuase everyone uses different config and devs don't want to use one, universal devcontainer per project. Is it possible to build and open devcontainer from a given path to envbuilder instead of a git repository?

Anyone can access cursor workspace connection URL

Hi Team, I was exploring coder and we are mostly done with setting up all our workflows on this. I was doing a security review of it, and realised anyone can access cursor workspaces URL in the form of cursor://coder.coder-remote/open?owner=nipun&workspace=brown-crow-66&url=https:/coder.example.com&token=$SSH_TOKEN. How do we think about securing this ? What are the in-general best practices in securing the access to your workspaces ? Thanks and looking forward...

Set zsh as default shell

I'm just getting started with coder.com - another team at my company set up an instance. I tried using chsh to switch my default shell to zsh, but new vscode sessions are still using bash. Restarting the workspace reset the shell to bash again. What's the recommended way to get my shell to zsh by default? Will I need to build my own workspace AMI or something? Thanks in advance!

Kasm template / module

Hi I was trying to the kasm module and desktop enterprise container within envbox template. I can get the kasmvnc screen to come up but it always says cannot connect to server. ...
Solution:
I updated the host machine to Ubuntu 24.04. When I do this, kasmVNC works as expected without the security_opts option.

Workspaces slower when accessed on home network?

I've been working with Coder for a couple of days now. It's running on a single board computer that's on my home network. It seems that workspaces I'm connected to while I'm within my home network react slower than if I'm connecting away frome home. Is there some caveat or other way of connecting that I should prefer if I'm actually at home? Maybe a configuration? These would be docker template based workspaces that I'm connecting to with VS Code Desktop.

Running Next.js development server in a Coder instance... is there a best practice?

Having trouble with the path - by default Next is looking at the root of the domain for it's built files (scripts, etc). Has anyone solved this?

Can we delete multiple workspace in one CLI Command ?

I need suppressing automatically multiple workspace in same time. I know the command to delete one workspace is
coder delete [workspace-id(username/workspacename)] --yes
coder delete [workspace-id(username/workspacename)] --yes
but to delete multiple workspace I did found.... Someone can help me please ?

Workspace stuck on loading

i am creating a proof on concept for coder, I have it on a debian on dedicated server, I am exposing coder directly via https + zerossl certificate. Workspaces always loading, nothing is displayed then I get Workspace is unhealthy Your workspace is running but 1 agent is unhealthy I really appreciate help in fixing this issue and many thanks in advance you all...
No description

Error when building workspace with parametrized OpenStack provider using coder parameters

Hi, when I use coder parameters to parametrize OpenStack provider like this: ``` provider "openstack" { application_credential_id = data.coder_parameter.application_credential_id.value application_credential_name = data.coder_parameter.application_credential_name.value...

how to use files in script after cloning a repository?

I'd like to use some files that comes from a repository. The ideal use case is: - clone the repository, using module "git-clone" - use a file from this repository as the script parameter of resource "coder_script"...