Coder.com

C

Coder.com

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

Join

Templates in Kubernetes

How can I access and access templates when I have deployed coder on Kubernetes. When directly deploying on the machine, I can easily run the commands as provided for creating templates and workspaces. But how to do this for coder on Kubernetes...

pfSense, HAProxy, and Coder.

Howdy all, I am interested in spinning up an instance of Coder on my on-premises server inside of my home network. I have a proxmox server running a VM that I was able to install PostgreSQL and Coder onto following the guide on your website; however, I am running into an issue with the ACCESS_URL parameter! Other parts of my internal infrastructure are exposed to the internet through pfSense via HAProxy. I have everything set up that I would need, including DNS records pointing at my custom URL. Where I am running into an issue is the relationship between the server and the reverse proxy. The front end of my proxy is looking for the SNI https://code.example.com and forwarding it to the coder backend... Pinging/nslookup/regular-ole-internet can see my domain/subdomain, but that is where the success stops. Even with Coder set up as a service on my server, checking the logs to see that it started successfully and verifying that the config is configured to point at my externally accessible URL, I cannot get to the Web UI. I have tried the following: ...

Jetbrains Gateway connection

Hey everyone, trying to setup Gateway to connect to a workspace for further testing, but I'm not sure if I'm missing something here. According to the docs I have to enter the Host like on the coder server itself (e.g. coder.workspace-name) but that hostname won't be resolved since Gateway is not running on the same machine as coder itself. Do I have to run a SSH Tunnel to the server running coder or what am I missing here? Thanks!...

docker.sock connect permission denied

Hey, I am running coder as a docker container. Now I want to add a template but get the 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 error. I saw a post here saying to chmod 666 the docker.sock but I dont like that. I have tried sudo usermod -aG docker coder to add the coder user to the docker group to make it able to access the docker.sock but it does not work. Any Ideas how I can fix this? Thanks ^^...

Default User without sudo access

Hey all, so we want to limit the Devs abilities within the workspace so they don't have sudo access except for certain tools they should be able to control. I'm using the docker template and enterprise-base:ubuntu as base for my dockerfile. I tried manipulating the user via sudoers file(s) to no avail. So I'm not sure about where to go next. Thanks!...

Docker in Docker setup, reach services in outer docker network

Hi there, relatively new to Coder. I'm running Coder as a service in my Docker Swarm. Alongside Coder I also host a database I want to use for testing purposes. How do I connect to this database (that's running in the same network as the coder server) from my workspace? I can connect to databases that are publicly accessible through the internet and I can connect to databases hosted within my workspace container, but I can't figure out how to access services running on the "outer" docker network....

Error(Using Helm Chart) Template version job hasn't completed

Hi Folks, I'm new to Coder and ran into an error when trying to install the helm chart as per these instructions: https://coder.com/docs/coder-oss/latest/install/kubernetes After installing the postgresql database, creating the k8s secret, & deploying the helm chart I'm presented with a loading screen that doesn't seem to end (see screenshot)....

I'm having trouble getting a podworkspace going with sysbox on rke2

CreateContainerError (container create failed: time="2022-12-05T14:41:39Z" level=error msg="container_linux.go:425: starting container process caused: process_linux.go:607: container init caused: rootfs_linux.go:66: setting up rootfs mounts caused: rootfs_linux.go:1156: mounting "sysfs" to rootfs "/var/lib/sysbox/shiftfs/ec14ab72-ce4c-4e68-8199-8583bd01ba67" at "/sys" caused: mount through procfd: operation not permitted" )

.jar Loader

.jar Dosyasınının Loader ini Yapmak İstiyorum Yazılım Bilgim Az :) Language Turkey...

ssh-keyscan

ssh-keyscan -t rsa vs-ssh.visualstudio.com doesn't work in the startup script in k8s template. Any reason why? I run it in the terminal after the workspace loads and its fine....

Configure SSH

Hey! I want to configure the SSH connection on my windows personal computer to bind it with my VPS-hosted Coder, but i'm quite struggling with it 🥲 Reproduction steps: 1. Download the last release on the https://github.com/coder/coder-cli repo...

Install code-server from AUR fails on manjaro image

I've setup a local kubernetes cluster and want to explorer features and possibilities with coder v2. We are planing to sell a profession license to use enterprise feature too. This is what i've done. Create a new docker image FROM manjarolinux/base:latest and installed some tools for my development. To my surprise the install script for code-server detects my distro and clones the git repo and starts building. Until this point is all fine. But the script stops after creating the pacman package file. If I do manually install the package and start the code-server the health check wents green. Any idea why this stocks in installation?...

Install script doesnt update on rpm package with error about file conflicts

1. I run thissudo curl -L https://coder.com/install.sh | sh 2. Output:file /usr/lib/systemd/system/coder.service from install of coder-0:0.13.1-1.aarch64 conflicts with file from package coder-0:0.9.2-1.aarch64 3. sudo systemctl restart coder...

Right format for PG Connection String?

Hey all! I have an ec2 instance that can connect to an aurora postgresql db via psql. Filling out the PG connection URL in the coder.env file doesnt work - Coder just uses the builtin postgre no matter what. I dont receive any errors in the logs Following this guide what is the right format for the string? https://coder.com/docs/coder-oss/latest/admin/configure...

git clone

Set up on aks from helm no issues. Set up github sso no issues. Trying to tweak the standard k8s template to clone repo via ssh. Gives me error saying my key is no good. I’m sure there is a sample somewhere as this is pretty common I should think. Can you point me in the right direction?...

[RESOLVED] [Git] Unable to auto-detect email address

Hey! I'm trying to make an initial commit to a specific repo during my Docker image build, but it outputs me this error: ``` Author identity unknown...

Error creating workspace from golang docker image

Error: Error: failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed Using this example https://github.com/coder/coder/tree/main/examples/templates/docker-image-builds...

Kubernetes Pod recreation causing issue.

We are 100% on spot instances for our EKS cluster and I'm trying to manage kubernetes pod with Kuberentes deployment to make sure Pod get self heal whenever it's get re-created. Looks like it's causing issue because of Pod name changes every time it gets recreated and Coder throws error
"error": update replica: github.com/coder/coder/enterprise/replicasync.(*Manager).syncReplicas /home/runner/work/coder/coder/enterprise/replicasync/replicasync.go:292 - sql: no rows in result set
"error": update replica: github.com/coder/coder/enterprise/replicasync.(*Manager).syncReplicas /home/runner/work/coder/coder/enterprise/replicasync/replicasync.go:292 - sql: no rows in result set
...
No description

Workspace state running but not started

Creating a workspace using the default template docker-image-builds and using node as an example