Coder.com

C

Coder.com

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

Join

custom login log question

First off, I do have an enterprise license so I have access to the features. Is there anywhere to save a custom logo for coder login screen in a certain directory(I tried the same directory as the coder binaries but that didn't work ~/.cache/coder/site/bin/ )on the container running coder or use some environment variable. I have only seen the option to use a URL that seems to rendered client side. Is it possible to make the coder container not the client browser resolve that logo? I have issue with limitations and permissions for example creating an azure blob using a url to access the image. I did do that but do to privatelink requirements and some DNS limitations I only see the logo if I am accessing Coder within the same vnet. I would prefer to not stand up a web server just to host the logo....

How can i pre-install dependencies

Hi everyone I am pretty new to code-server and I already have code-server on my system (thanks to the quick installation guide). I am trying to set up a code-server so that it has a few dependencies pre-installed whenever it boots. I tried checking docs but I am unable to figure out how to use a template with code-server on my localhost. Maybe i am looking in the wrong place. I want to 1. Start code-server with preinstalled binaries on container. 2. Clone a repo that can be provided dynamically ... if possible using url...

Expose coder user SSH key to envbuilder

Hello, I'm new to coder and I've setup a template to use devcontainer in kubernetes heavily based on the template example. The repo URL I pass is SSH based, and the coder user's SSH key as been added to my git provider's security settings. Since envbuilder expects a path to a file or an ssh agent socket, how can I expose the SSH key from the coder user to it in order to successfully clone the repository?

I can't SSH into the containers

This randomly started to happen but it was working fine before. I tried to curl the /healthz command within the containers using docker exec and they executed fine. The web terminal load fine, but the web vscode does not load and the ssh into the container with vscode doesn't work....

Open ID connect with GitLab

Dear Developers, I am newbie. Currently I am developing coder-server for the team. I refer to the coder-server setup from docker-compose at https://github.com/coder/coder/blob/main/docker-compose.yaml. https://docs.gitlab.com/ee/administration/auth/test_oidc_oauth.html#enable-oidcoauth-in-gitlab https://coder.com/docs/admin/auth I set the callback URL in GitLab App and the CODER_REDIRECTR_URI in Docker-compose to be the same "http://coder.aaa.bbb.ccc.com/"...
Solution:
try changing your callback url to https://<coder domain>/api/v2/users/oidc/callback as per "Step 1: Set Redirect URI with your OIDC provider"
No description

Coder Unhealthy: Websocket Error

I'm getting this error EWS01: websocket dial: failed to WebSocket dial: expected handshake response status code 101 but got 530 in the health tab of coder, after updating to coder v2.14.1

Kubernetes with DinD bind volumes issues

Hello everyone, I'm running Coder in my Kubernetes cluster on my Ubuntu 22.04 server. I've created a template based on the default Kubernetes template plus the edits to run a privileged sidecar to be able to build and run Docker images inside the workspaces. Unfortunately, I can't use sysbox and envbox as they fail (sysbox install on nodes fails during the sysbox installer helper step, and envbox throws an error about the driver not supported: overlay2). So, I had to take the privileged DinD sidecar option. But I think I have to make the sidecar container able to use the storage of the main workspace container to be able to mount the folders as binded volumes....

Getting 404 when trying to edit files of a template

Hello I'm getting no error or anythin when I want to edit the files of a template. I think it's a frontend problem because it doesn't go to backend dev tools is not doing any request. But when I click the "Edit files" on template page, I got 404 on top of the page under the header as attached I'm using v2.14.0+a0411a3 version of Coder...
No description

fetch() API socket hang up

Hello, I am running code-server in docker behind caddy2 as a reverse proxy and can access my website with the node.js http-server as backend at https://domain.com/proxy/5050/index.html. My website also includes an API endpoint which is working fine locally in vs-code at http://127.0.0.1:5000/api/user. However I have issues now while using code-server when I change my endpoint to http://domain.com/proxy/5000/api/user in which I receive a socket hang up message after loading the page for quite some time. The network tab in the developer console of my browser shows 0 transferred bytes. I assume the issue relies in that code-server is only forwarding https://domain.com/proxy/5000 and not the following sub-path for the endpoint. Does anyone know how I would have to change my setup that it will work with code-server? Thank you very much for your replies!...

Traefik and Apache2 in Code-server

Dear Developers, I am new. Currently I am developing coder-server for the team. I refer to the coder-server setup from docker-compose at https://github.com/coder/coder/blob/main/docker-compose.yaml. In the above setup, apache2 is used. Could I replace apche2 with Traefik? Or use both together? Regards,...

Unhealthy Instance

I am using the https://github.com/uwu/basic-env template. When I create an inatnce it gets created but at the end it takes long time to load and says unhealthy agent. So I tried with docker template and had the same issues....

Fresh instance on Pi 400 using install script (non root). Tried to create new Docker template.

Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied on main.tf line 19, in provider "docker": 19: provider "docker" {...

Examples and applications of PostgreSQL in coder-server

Dear Developers, I am new. Currently I am developing coder-server for the team. I refer to the coder-server setup from docker-compose at https://github.com/coder/coder/blob/main/docker-compose.yaml. Can you share with me about PostgreSQL working, saving and protecting my data? Currently, Coder requires access to an external PostgreSQL database to store user data, workspace state, template files, etc but I want to use PostgreSQL on my Lab PC. Could you share some guidelines/Ideals with me on how to set it up Best regards,...
Solution:
You can set CODER_PG_CONNECRION_URL to the connection url of any postgress database. It can be anywhere. For best performance it should be as close to Coder as possible. Recommended latency is less than 15ms....

how to install docker in aws ec2 (devcontainer) template?

after I created a new workspace based on the default aws ec2 (devcontainer) template, in the vscode > terminal , I tried the following command to install docker, but I could not find my password for coder, pls help $sudo apt install docker [sudo] password for coder...

aks questions - enterprise version

Has anyone used azure blob storage with code-server workspaces, three use cases 1. as an alternative to the default which is disk 2. as a shared read only for large files like the trivy dB in an air gapped environment...

Correct way to pre-install extensions for Coder K8s workspaces?

Hi all, I have tried a couple things to get extensions working but have not been successful: 1. I've tried the code-server docs instructions where I just install them outright after installing the server into the base image https://coder.com/docs/ides/web-ides#code-server 2. I've tried using the use_cached_extensions argument but I can't get the extensions to cache somewhere that isn't the home directory. Basically it seems like when the workspace is created the extensions that were installed to /home/coder/.local/share/code-server/extensions (and CachedExtensionVSIXs etc.) get wiped. Is there a way to keep them when the workspace is created? The workspaces are created in an environment with no access to any extension marketplaces/registries....

Application error: Cannot read properties of undefined (reading 'id')

One of my workspaces shows an error when I try to open its page from the list insice coder. The error is: ```...

coder - server expired

#help . Hi all, I have question when I set up coder - server. I refer from https://github.com/coder/coder/blob/main/examples/web-server/apache to setup my demo. But server down after since of time . Could you share me some Idea to fix it? Best regards, Ben.Ng...

different shell path

I own a different shell path in my system and I can’t normally install staff (node and etc (maximum what’s I find is a 18.x node js). It’s isn’t /bin/sh. What’s do ? (Also I can’t create link to folder)...