Coder.com

C

Coder.com

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

Join

help

📢︱announcements

how to compile a c++ github project

I'd like to compile this c++ project into a dll but I don't know how to do it. If anyone could help me, that would be great. here's the link: https://github.com/CrunchyRL/VoltageV3...

Calling a bash script while building the workspace (docker)

Hi everybody, I am using the starter template for docker and when I try to call my bash script it fails. I added of course the bash to the build. I didn‘t append the /bin/sh -c . Can somebody please explain what issue is ? Best regards, Thomas
Solution:
can you build the Dockerfile outside of coder using docker build?
No description

Unable to create docker

This is error log: ``` Initializing provider plugins... - Finding latest version of coder/coder... - Finding latest version of kreuzwerker/docker......
Solution:
in both cases you need to add the coder user to the docker group. https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user...

Internal error checking workspace agent authorization (after db reinit from dump)

Hi. Today we tried to update Coder from v2.9.1 to v2.9.3 but the DB got corrupted (probably because of 2 pgsql instances running at the same time, rookie mistake). We have PG dumps each day, so I tried to run v2.9.3 version and import the backup dump (schema + data) from last known working version; the Coder works, I can access the dashboard, the data is there, but now all workspaces created show me the following error:...

Error when updating code-server to 4.23.1 within coder

I upgraded code-server from 4.23.0 to 4.23.1 within my coder.com instance (using this module: https://registry.coder.com/modules/code-server). When I now start my workspaces, I get this error: ```...

how to get the code-server URL when a WorkSpace is created by API or CLI ?

Hi ! Here a new user to Coder. Justr trying this product for a big development. I am wondering about how to get the code-server URL when a WorkSpace is created by API or CLI ?...
Solution:
If the name of code-server coder_app is code-server you should be able to access it in the form of https://<CODER_URL>/@<USERNAME>/<WORKSPACE_NAME>.<AGENT_NAME>/apps/code-server...

Reverse proxy coder server

trying to reverse proxy a code server and im unable to connect

Custom URL

im using the docker coder/coder and im wondering if theres a way to configure it to go to a custom domain (coder.example.com) rather than the coder server provided
Solution:
Hi @External Life Sorry for missing this one. You can set a CODER_ACCESS_URL to your coder.example.com to set. custom domain....

Kubernetes and air-gap

I have a kustomization coder/postgres deployment that comes up and online and fully healthy (according to the health tab in coder). I am using Istio as an ingress but disabled service mesh to rule out blocked comms to api-server. Everything seems fine but when I try to create a Kubernetes template, I just get a basic error of "initialize teraform: exit status 1" but nothing else. We have mirrored public repos and certs setup well in this environment and I can exec into the pod and the terraform binary is available. I am assuming I am missing the provider somehow (though we do have a mirrored version of the hashicorp tgz as well). Is there any way I can get more verbosity from this error message or anyone have any other tips for me to try?...
Solution:
Do you have a .terraformrc mounted into the Coder deployment that points to a Terraform providers mirror? https://coder.com/docs/v2/latest/install/offline#offline-container-images

Is it possible to migrate user from coder db login to OIDC?

I have implemented okta login but we have some active users who would want to keep their workspaces etc. is this possible ?
Solution:
You can ask the users to go to https://coder.domain.tld/settings/security and they will see the option to connect with SSO

Cant start coder on windows pc

Hello i want to start my coder server but i get this error form postgres: Encountered an error running "coder server" Usage: coder server [flags] Error: Failed to start built-in PostgreSQL. Optionally, specify an external deployment with --postgres-url: unable to init database using 'C:\Users\info\AppData\Roaming\coderv2\postgres\bin\bin\initdb.exe -A password -U coder -D C:\Users\info\AppData\Roaming\coderv2\postgres\data --pwfile=C:\Users\info\AppData\Roaming\coderv2\postgres\runtime\pwfile': exit status 0xc0000135...
Solution:
you will need to log out and login, or run newgrp docker before running coder server

Windows AV flagging coder-windows-amd64.exe

Hey there, wanted to flag this. Trying out coder and my antivirus (windows defender) is flagging this executable that is downloaded from coder when first connecting to a workspace from VSCode (under /bin/coder-windows-amd64.exe). Seems very likely to be a false positive but still possibly a concerning finding. Virustotal looks a bit more promising for windows AV but CAPE sandbox has flagged it as potentially containing malware. https://www.virustotal.com/gui/file/bc9c1189f1c75934acac13271be1637fe8d3322525b23f8047d52964399f595c/behavior Coder Version: v2.10.0+a7234f6...
No description

Coder Owner Workspaces Access

In previous versions, I don't remember the version number but I was able to access regular user workspaces from vscode using the extension. I cannot do that in coder v2.9.2 with the environment variable CODER_DISABLE_OWNER_WORKSPACE_ACCESS=false Any idea of what I am doing wrong ?...

Code Server GUI Support

Hello, I wondered if there was any way to add support for previewing & interacting with GUI's, similar to that created by tkinter or pygame when programming in python within the web based code server which coder offers. Any suggestions to how this could be achieved would be highly appreciated! Thank You - Stephen

Github authentication not working

Hi there. I have a github enterprise external auth set up for a coder instance, and am able to log in to my github account, but I am getting a 403 when trying to pull the repo. Not really sure how to debug. We have the exact same setup on a different coder instance and it works fine. Basically looking for debugging help. thanks...

unexpected application error

Hello , One of the devs on my team is unable to use coder. He logs in fine using okta, but when he clicks create workspace it immediately blows up with a JavaScript error ( see attached screen shot) . He’s logged in and out , used a private window but to no effect....
Solution:
I deleted the user and when he logged in again it all works
No description

Gitlab git functionality not working after token refresh after workspace is created

Hey all, I'm using Gitlab external auth for my git functionality currently. The GIT_ASKPASS interraction works just fine when I create a new workspace, but after ~12h or so (seemingly this line up with the tokens expiration + renewal but I'm not positive) I start seeing the folowing error: ```...
Solution:

Internal error exchanging Oauth code

Hello, I'm running coder on premises using docker-compose. After having set up the external-auth using gitlab on prem, this is what I'm facing: 1. coder workspace terminal shows a link to request the oauth in gitlab ✓ 2. When visitting the url I land into gitlab to authorize the gitlab application to use my account ✓ 3. After clicking on authorize it redirects me to coder with the message: tls: failed to verify certificate: x509: certificate signed by unknown authority ❌...

API delete workspace

Hello guys, is there a way how to delete workspace using API? I can create it, but for DELETE method I'm getting 405 NOT ALLOWED and I couldn't find anything in docs. Thanks!
Solution:
Does this answer your question? https://github.com/coder/coder/discussions/12680...

Local User w/Enterprise Container

When using a starter Docker template, the buildfile shown here, creates a local user that is the person who is logging into the workspace.
``` FROM ubuntu RUN apt-get update ...