Coder.com

C

Coder.com

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

Join

help

šŸ“¢ļø±announcements

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

Basic Jupyter setup with code server

Hi everyone just installed coder and trying to set up a template with vscode-server and Jupyter I followed the docs and added the entries in my main,tf file and in templates page the app shows. However when a workspace is deployed there is no option for Jupyter any ideas on this ?
No description

TF_LOG verbose Terraform output?

How do I get Coder to show verbose Terraform logs? I'm trying to start a workspace but getting one of the Terraform AWS provider's less helpful error messages where it doesn't tell you what IAM action it doesn't have permission to complete: ```...

Cannot create DinD container.

I followed the guide here https://coder.com/docs/coder-oss/latest/templates/docker-in-docker#use-a-privileged-sidecar-container-in-kubernetes-based-templates but DinD contianer keeps restarting throwing error.
time="2022-11-21T16:52:47.208505924Z" level=fatal msg="Error starting daemon: open /var/run/docker.pid: permission denied"
time="2022-11-21T16:52:47.208505924Z" level=fatal msg="Error starting daemon: open /var/run/docker.pid: permission denied"
...