The sh for installing coder does server configuration?
Hi guys, I'm a noob in Coder. I have a VPS that I want to use as a dev environment and I wanna ask if anyone can tell me if the coder installation script does the configuration of the VPS, or I need to hardened it and then run the coder sh. I don't wanna waste time doing server hardening so that the script overrides my configurations.
Thank you in advance....
Docker in workspaces and volumes
Hello,
I'm running container with Sysbox in Kubernetes based workspaces. I have persisted with Kubernetes PV the workspace
/home/coder
and /var/lib/docker
directory. Developers run container inside their workspace with --rm
option (docker run --rm
) so while restarting the coder workspace, the nested developers container should be deleted. This working well except for anonymous volumes that are created with the developers container. While i'm restarting the workspace, and checking the /var/lib/docker/volumes
the anonymous still there. These lead to full fill the Kubernetes PV. It's look like a problem of gracefull shutdown of the workspace that running docker container.
Is anyone as encounter the same problem ?...Unable to set oidc user as admin
I have disable password authentication, and deployed coder via helm in kubernetes, however on first sign in, I have to create an admin which I cannot use that email to login with oidc cuz password required meanwhile it's disabled
How can I create an oidc user as admin?
My current workaround, enabled password > login with that random user at the initial setup which is something I don't like......
Create new template
Dear Develops team , I refer from https://coder.com/docs/templates/tour to create new template for my team ( use Docker ). I have question, this guideline doesn't have information about the command line : docker build. So using coder-sever, I don't need to use command line docker build to create Docker image.
Sorry that my question is not good.
Best Regards,
Ben.Ng...
JetBrain Gateway: Failed to retrieve IDEs
i try to connect to my workspaces but get a error when trying so select my IDE. i hope someone can help me.
The coder server runs on a public cloud hosting. i have a local installation of phpstorm and use the gateway through JetBrain Toolbox with coder plugin.
the connection is fine and i can select my workspace. this workspace is a container that runs a webserver with php, mysql, etc. ...

Coder port forward giving 404
as the title says im trying to access a port that I opened on code-server (browser) but when I open it I get that 404 page not found. the template is a customized docker container, the reverse proxy I use is traefik. and all this is hosted by myself on my own machine. wildcard is setup, dns is setup (cloudflare), I have tried almost everything. I dont know if im missing something. im using the extension on vscode that is called live server.

What's the best way to store GitHub PAT for main.tf?
I have a GitHub repo that I want all workspace to pull on creation. So I created a read only PAT for that repo, and stored in the env where coder service is running (export TF_VAR_GITHUB_TOKEN=).
However when I use the
`variable "GIT_TOKEN" {
type = string
description = "GitHub Personal Access Token"...
template ci/cd pipeline enforcement
I was wondering if there is a way to disable the template editor in the ui or making it read only even for owners(although that wouldn't fix them having cli/api access)
I am basically looking for a way that can enforce template changes through merge request using ci coder service account with gitlab pipelines....
Error with Github external auth
I've set everything up according to the guide AFAICT but when clicking the button in Settings I get a popup with
I have some experience with creating OAuth apps etc but this one is kind of hard to debug....
{"message":"State mismatched."}
{"message":"State mismatched."}
connect mac mini with coder
I want to connect my mac mini to coder. For this purpose, I am following this template https://github.com/bpmct/coder-templates/tree/main/shared-mac by @bpmct. I am having trouble connecting via SSH to my mac mini. These are my variables in the main.tf file and rest is same as in the template in the above link:
variable "mac_user" {
sensitive = true
default = "Admin Account"...
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"
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.1Kubernetes 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...

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,...