Coder.com

C

Coder.com

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

Join

How to run an sample angular application on a code-serve ?

The Coder is installed on a Kubernetes cluster and a workspace with an angular application code is ceated. How to run the angular application on a code-serve environment? a sample angular application when trying the ng server command ui is not loading

Devcontainer hanging in Coder instance

Our coder instances are hanging when pulling images, tried with internal and external images and both are hanging when extracting layers.
status_code=500 latency_ms=279 response_body="{\"message\":\"An internal error occurred. Please try again or contact the system administrator.\",\"detail\":\"API key couldn't update: fetch object: sql: no rows in result set.\"}\n" request_id=40f44f34-abc4-4fdd-8d64-f3759b9ee5f0`
status_code=500 latency_ms=279 response_body="{\"message\":\"An internal error occurred. Please try again or contact the system administrator.\",\"detail\":\"API key couldn't update: fetch object: sql: no rows in result set.\"}\n" request_id=40f44f34-abc4-4fdd-8d64-f3759b9ee5f0`
...

In the pricing model, what is defined as a user?

I saw that part of the pricing model is on a per user basis. I want to be able to create workspaces for external users, for example as a demo or part of my application's service. The external user would not be creating workspaces themselves or manage them in any way, I would take care of that. Would having said external user access a workspace count them as a user for purposes of the license?
Solution:
A license seat is an account with it's status as active (i.e. not suspended or dormant), so no. If that external user is accessing the workspace via a coder_app (where share is public) or a publicly forwarded port they wouldn't consume a license seat.

How do you move/ transfer a simple self-hosted Coder setup to a new server?

I don't have a lot on my Coder server - a few templates (easy to transition) but mainly due to my ignorance of how Coder works under the hood and lack of familiarity with Terraform, I'm struggling to find how to move or if I can move my Coder server to a new server. Mainly concerned with my Workspace persistent storage I would prefer to transfer over the workspace instead of rebuilding the workspace. Still learning about how to set up the template correctly so that transfers are less of an issue. OS: Linux -> MacOS Workspace in question is a Docker container, started from the example template....

Building template is stuck queued

No builds for templates have been done for the past day or two but when I tried to update a template and build it is stuck queued with no progress
No description

DB Latency

Hi everyone. On our Coder instance, we've been experiencing Coder-DB latency that triggers disconnects on workspaces. I believe we have an overload of database operations that are flooding postgres. The usual log we see is this: `2025-01-23 18:47:21.790 [info] coderd: disconnected possibly outdated agent workspace_id=xxxx agent_id=xxxx request_id=xxxx ... error= fetch object: github.com/coder/coder/v2/coderd/database/dbauthz.(*querier).GetWorkspaceByID.fetch[...].func1 /home/runner/work/coder/coder/coderd/database/dbauthz/dbauthz.go:522...

Devcontainer starting is taking really long / multiple times building the Dockerfile?

Hi, I have created a template from the starter "Docker (Devcontainer)" one and just selected home assistant for testing purposes. Creating the workspace takes really long and from the logs it seems like its building the dockerfile multiple times? Is this intended?...

Docker in workspace

I can't seem to run docker containers inside a running workspace. I get an error:
service docker start
/etc/init.d/docker: 62: ulimit: error setting limit (Invalid argument)
service docker start
/etc/init.d/docker: 62: ulimit: error setting limit (Invalid argument)
...

startup_script not working when using GitLab CI template management

When I create the template directly on Coder UI and start a workspace, everything is fine. However, when I set-up GitLab CI to push the exact same template, create the workspace, the startup_script prompts an error. Here's the startup_script: startup_script = <<EOF #!/bin/sh...

Profiles/settings gone cross browser/device

Hello Friends, I’ve been running with code-sever for the last few weeks, which has been great for the most part. I do have one issue though, when opening code server from a different browser or a different browser on a different device all of the settings and installed extensions in profiles are gone. And when I restart code server service the first device/browser also becomes messed up in that sense....

Auth with Github

I'm trying to follow these instructions to get Github auth going so I can use git into a private repo (please correct me, if this isn't what it is meant for): https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app However, when I add the code similar to what the instructions offer in my workspace template:...

Permission Issues on fresh containers

Hello! I just set up my coder project, and created a workspace with the default Devcontainers (docker) template. It created successfully, but when I opened the project in vscode, I kept getting no permission errors when trying to create files. So I checked the permissions in the terminal, and the project was created with root as the owner. Any ideas why the permissions aren't being set correctly by default?
No description

Envbox in kubernetes, cgroup permission issue.

When I create workspace with the Kubernetes (Envbox) template it throws errors about not being able to write to cgroup. I haven't changed anything in the template. https://registry.coder.com/templates/kubernetes-envbox?tab=source...

Define custom subdomain for app to use with vars.

I want my app to use a specific subdomain. More specificly the workspace name. Is something like that posible? ```terraform resource "coder_app" "open-web" {...

coder_agent shutdown / coder_script run_on_stop not working

Hi, I'm creating a set of script to run on start and stop. Start scripts run as expected, but run_on_stop scripts (or shutdown) not executing, there is my code ``` resource "coder_script" "manage_account" {...

Workspaces are seemingly not persisting data whatsoever.

Hi all. To keep things brief: when I create a workspace off of the "Docker Containers" starter template and save any files to my home directory (/home/coder), the files are totally lost after the workspace restarts. It is my understanding from reading docs that this is not supposed to be happening, and it's certainly not how I remember Coder behaving in the past. This is happening on a totally fresh Coder install (same behavior on coder server and a Docker run or docker-compose install). I'm n...
No description

Should terraform init run on every deploy?

I've done an init locally to generate a terraform.lock.hcl and pushed that, but I can see that on every deploy Coder is running an init that's taking ~4-5 seconds, at least 3 of which is installing providers, which seems excessive if the providers had been cached locally from a previous run on a machine with an SSD. I'm fairly new to terraform but I thought that if these were in place it should be able to skip that and go straight to plan/apply? My current deployment is running off the coder:v2.18.2 docker image....
No description

Need different OIDC redirect URL from the `CODER_ACCESS_URL`

Continuation of my intro here The reason for this being I have two ways for users to access my environment. One is a direct domain (internal network -- foo.internal) and the other is an MFA authentication enforced domain (external network -- foo.external). Only authenticated users can traverse foo.external. This prohibits workspaces and the other Coder services because they cannot authenticate. As a result I must set the CODER_ACCESS_URL value to foo.internal. I'd also like users to be able to come in on foo.external. The issue here being when a user tries to log in via OIDC, the redirect URL is set to CODER_ACCESS_URL (which is foo.internal in this situation), not the desired incoming domain of foo.external. This leads to a State mismatched error when the user is redirected back to foo.internal/api/v2/users/oidc/callback..., despite coming in on foo.external. I see two potential solutions:...

[Paid Help Wanted] Complete Setup Guide for Laravel Project

I’m looking for someone who can dedicate a few hours to help me set up Coder for my Laravel project. We’re considering using either Docker Containers or Laravel Forge for the setup. We’ve run into a bunch of errors that we couldn’t find solutions for on GitHub or through online searches. If you have experience with Coder, Docker, or Laravel Forge and are available to assist, please let me know your rates and availability, and the payment method. Thanks a lot!...

Terminal Theme

Hi is there a way to change the terminal theme of workspaces?
Next