Coder.com

C

Coder.com

Join the community to ask questions about Coder.com and get answers from other members.

Join

Updated Coder version and now I’m getting database errors with Docker Compose

Earlier this week I got a message that Coder had a new version. I upgraded and now I’m getting an error when running the docker compose. It’s showing that the user authentication for the DB failed. Tried looking for existing discussions on this issue but could not find anything. How should I fix the DB connection?
No description

GCP VMs fail to start sporadically with "desired_status can only accept RUNNING value" error

We are using Coder to manager GCP VMs with devcontainers, and occasionally the machine will get into a state where it is unable to start, getting the following terraform error: ``` Error: When creating an instance, desired_status can only accept RUNNING value on main.tf line 334, in resource "google_compute_instance" "vm": 334: resource "google_compute_instance" "vm" {...

My rpi 3 code-server only runs when I access the config file (sudo nano config.yaml)

Only after I ssh into my pi, and "sudo nano config.yaml" the address works...

Configuring Coder to work with multiple external urls

The main configuration for coder only allows specifying a single access url or wildcard access url. Is it possible to configure for it to work with multiple external urls? The main use case is that we have the main coder url at https://coder.somecompany.local and we want to make coder available to another group of users living in a different network segment where the access is through a different reverse proxy at https://coder.specialgroup.local and the only access is browser only (no direct connection) In addition, how do we also make this work with dashboard based port forwarded apps, which requires the use of wildcard access url instead?...

api/v2/templates Route not found

Hello, I am trying to use this API endpoint (api/v2/templates) that is listed in the documentation (https://coder.com/docs/api/templates#get-all-templates) but I receive the error "Route not found". Is this endpoint exclusive to the enterprise license ?

error persistently

First of all, good day friends, it gives an error like this, how can I solve it, a friend of mine made a suggestion, but it didn't happen again <hr style="width: 300px; margin-left: 150px;"> how can I do it
No description

Missing "Open ports" feature

Hi, I tried coder in CLI mode to test, and it worked well. I switched to the docker version (the one I intend to use), and noticed the absence of the "Open ports" function.. Could be related: the console shows a error GET http://coder.internal/api/v2/integrations/jfrog/xray-scan?workspace_id=65029a0a-7d95-40f5-8b75-28ac22040c02&agent_id=8c885cdb-cb78-4d6f-acba-d74d6957642a 404 (Not Found), the response to which is {"message": "Route not found."}. ...
Solution:
you are missing the wildcard URL definitions (CODER_WILCARD_ACCESS_URL environment variable)

Devcontainer Failed to Clone Github Private Repo

I am trying to setup workspaces by using devcontainer templates found in: https://github.com/coder/coder/blob/main/examples/templates/devcontainer-docker/main.tf I have also setup Github external authentication as mentioned here: https://coder.com/docs/@6b5f959/admin/git-providers During the workspace creation the authentication with GitHub is also valid....
No description

Setup Coder in locked VLAN

I have tested Coder on AWS EC2 instance and it works great. I am a high school CS teacher and my lab is on a VLAN. The school Board has blocked all ports except 433 (https) going out and everything coming in. The problem I am having is when I start up Coder it goes out https and creates an external access URL....

Jetbrains Toolbox stuck on waiting for backend

Hello so I'm trying to use jetbrains toolbox and self hosted coder(on docker) on the main.tf i added this part: module "jetbrains_gateway" {...
No description

Run docker build inside workspace

Hello, I'm deploying coder user kubernetes. I need to build a docker image and push it to a private registry. Is it possible to run docker build inside of a workspace?

vscode-web module is still resetting Copilot credentials.

I was able to set up the CODER_WILDCARD_ACCESS_URL and use vscode-web with a subdomain set on my DNS. This, however, has not fixed the issue of my Copilot extension from asking for Github credentials every time I use vscode-web after having it idle for a while. Specifically for my use case, I’m using vscode-web on an iPad and have it saved on my home screen. I’m guessing the connection is being reset. Any ideas on what I can try to save my Github creds so I don’t have to allow vscode-web ever...

Docker Devcontainer Template Broken?

So I'm using the Devcontainer template from https://registry.coder.com/templates/devcontainer-docker (slightly customized to add a cache), and every single workspace start just gets completely hung on volume creation step and refuses to move forward from there. Coder is deployed locally via Docker compose, and just to make sure reading through the docks as privileged mode turned on. Running the envbuilder locally (same internet connection and VM) with all the correct parameters works perfectly fine. And takes just a couple minutes without the cache, and like 30 seconds with cache. And Github CodeSpaces also works. So I just don't understand what is broken at this point....

Hashed password not being asked for

Good morning, There is a 99% chance that I have just set this up wrong, however I have not been able to find any youtube videos or previous posts clarifying where I am going wrong. I created the docker-compose.yml file ```yaml --- services:...

Access url is throwing a cert error

I have coder deployed using helm on a k3s cluster. I also have a self signed CA which is needed to authenticate requests to https://coder.lan values.yaml files: ```YAML coder:...
Solution:
found the solution to the issue: ```YAML coder: certs: secrets:...

Create a dedicated workspace for each user

I am investigating to see if I would be able to replace Gitpod with Coder for my workshop needs. A first test for me can be a conference I have from 8 to 10th July. I have a workshop with something like 20 attendees. ...

create my first custom image

Now that I have a running coder in my Kube and tested it with base template, I need to customize it to fit my usage. I was previously using Gitpod for this and I already have a docker image and it is pushed in my registry. but I always end with workspaces: ```Workspace is unhealthy...

How to increase size of workspace volume?

Hey, all. Home user here, loving Coder so far. I'm cloning a monorepo into my workspace which is quite large. When I install all the dependencies and build, I run out of space. Host is a Mac running Docker Desktop....
Solution:
actually it seems now you can extend the virtual disk's size ! https://stackoverflow.com/a/48561621...

set template description ( the name the users see when creating )

Hi, We moved all template / image creation and mgmt to Gitlab. One issue though - how do we set the display name the users see when creating the template when pushing it for the first time ? I cant see a parameter for that in the cli ?...

Automation for importing the .code-profile inside terraform template

Hello, I have created a workspace using available kubernetes template on coder server. Now I am able to connect to the workspace, But I want an existing .code-profile to be imported inside my workspace. I understand that the terraform templates in coder can be modified, however is there any way to modify the template in such a way that whenever a workspace is created using that template, automatically the profile gets loaded within that workspace.
Next