Coder.com

C

Coder.com

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

Join

help

📢︱announcements

docker

WARNING: script exited successfully, but output pipes were not closed after 10s. This usually means a child process was started with references to stdout or stderr. As a result, this process may now have been terminated. Consider redirecting the output or using a separate "coder_script" for the process, see https://coder.com/docs/v2/latest/templates/troubleshooting#startup-script-issues for more information.

Password for authenticating workspaces with external services

Hey, I'm setting up a coder environment for a internal setup, and I'm wondering if it's possible to let a user type in a username/password for a internal service (e.g. fileshare), (or access the user password with terraform. I thought about letting the user type in a password as a workspace parameter, but obviously that's not secretly stored, and it's even impossible to hide it in the workspace parameters as there is nothing "type = password" in the parameters. I'm thankful for any help!...

[RESOLVED] Having issues getting coder_apps to appear in my Workspace

Hello, I have been familiarizing myself with Coder the past few days, and it is fantastic. I just have one thing that I'm getting pretty stuck on and I'm hoping that I can get some help. I am using the guacamole terraform provider by techBeck03, and it creates a guacamole connection that I can connect to at https://guac.example.com/#/client/abcxyz. I am trying to get that URL as a clickable link on my Coder Workspace, but I can't seem to figure out how to get it to appear. It seems logical that I could create a coder_app resource with the url set to the desired URL and external=true. While building the template doesn't give me issues, it doesn't actually display it anywhere. This is the primary reference material I am looking at: https://coder.com/docs/v2/latest/ides/web-ides ...

Need some help with understanding how the code server command creates a tunnel

How coder ssh works? Is it directly connecting users to workspaces or is the coder server acting like a proxy
Solution:
Coder makes use of a tailnet(tail scale networking) to connect users and their workspaces peer to peer. It uses STUN servers to find a direct route between the two ends....

is it possible to use coder to develop flutter apps?

I tried Coder and is great for developing spring/java applications, but I wonder if it is possible to create a workspace to build flutter apps for android. Any ideas or suggestions? Thanks...

Modify coder serviceaccount when deploying with helm charts

Hello, I'm using helm charts and argocd to deploy coder. I have a use case where I'm trying to use kubernetes to deploy additional workspaces with coder, the coder serviceaccount is trying to access an apigroup provided by a custom operator for deploying another application. I can modify the role directly, but argocd detects a change to the configuration and overwrites the additional permissions. I don't believe the helm chart supports adding custom role permissions. If it does can someone provide guidance on how I would do that?...

Coder on fly.io, stuck with error "Resource not found or you do not have access to this resource"

Hi, I tried to follow the tutorial here https://coder.com/blog/remote-developer-environments-on-fly-io step by step I'm stuck at step 5. Create the new template by running the following command from the fly-docker-image directory: The error is: Resource not found or you do not have access to this resource...
No description

latest coder server + wgtunnel currently giving 404 errors

I created an https://github.com/coder/coder/issues/9480 with the full configuration details, as it may be that I'm missing something obvious to others: rm -rf ~/Library/Application\ Support/coderv2/{url,devtunnel,postgres/data} coder server --wg-tunnel-host try.sharing.io ...
Solution:
As well as having all the usual annotations for websockets: ```yaml --- apiVersion: networking.k8s.io/v1 kind: Ingress...

does not support data source "coder_git_auth"

Hello! I have deployed coder's helm chart to our kubernetes cluster and created a template with envbox. I've tried to configure our gitlab as a git auth provider. When I build my template it says "The provider coder/coder does not support data source "coder_git_auth" ** for privacy purposes I've hidden or replaced our domains. ...
No description

envbox + envbuilder template

In my attempts to get a secure k3s-compatiable coder setup working, I am trying to get envbuilder to work from inside envbox. ``` {"ts":"2023-08-21T03:24:35.37819366Z","level":"ERROR","msg":"send startup logs","caller":"/home/runner/work/envbox/envbox/buildlog/coder.go:116","func":"github.com/coder/envbox/buildlog.(*CoderLogger).processLogs.func1","fields":{"error":"Patch "https://coder.mcaq.me/api/v2/workspaceagents/me/startup-logs\": context canceled"}} run: get image metadata: start container: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:425: starting container process caused: exec: "sleep": executable file not found in $PATH: unknown...

Failed to refresh OAuth token.

Hi, I believe this is along the lines of the OIDC issues from the last releases. I'm getting this issue now, but after getting the login screen and clicking to open via OIDC with a session already started with Keycloak. ...
No description

Docker Dind Volume Issue

Hey team I’m struggling to build the following setup I have my Linux virtual machine running on Azure acting as a coder host ...

Web UI is not accessible with Docker installation

Hello, how do I open web access to coder running in a docker? I try to run it according to the manual:
docker run --rm -it -e CODER_ACCESS_URL="https://..." -e CODER_PG_CONNECTION_URL="postgresql://..." -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coder/coder:latest
docker run --rm -it -e CODER_ACCESS_URL="https://..." -e CODER_PG_CONNECTION_URL="postgresql://..." -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coder/coder:latest
Seems like it's running correctly:...

Permission denied creating first template

I know its been posted before but I cant find the solution. My friend got Coder working on our Ubuntu 22.04 with docker-compose. The error is: ```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 21, in provider "docker":...
Solution:
uncomment the group_add line and change 998 to the GID of your Docker group

Docker-Compose Setup with Socket Proxy, Traefik2 & Docker Secrets

Hello there! I`m a first time user trying to setup Coder to easily create JupyterLab and RStudio Workspaces for my Physics Study's. My current Docker Compose setup includes: - Traefik2 as reverse proxy - Docker Socket Proxy for enchanted security - Authelia (with a Postgres Database) as 2FA Auth Service...

HTTPS leads to 502 Bad Gateway

We have the Coder Server and all the workspaces within an own Tailnet. Everything works as expected when running code-server via http. Now, when we try to utilize tailscale cert and pass the generated cert / key to the code-server in our template, we run into a 502, when opening the code-server via the Coder Server workspace view. I'm pretty sure that we oversee something here. This is our current configuration: ```terraform...

Cannot create template, docker socket permission denied

Hi all, I am trying to create a template using the coder template create command on a template I had previously installed. However this time it complains that ``` 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...

I want to install extensions from visual studio marketplace

I saw someone has answer here, but now sure how do I do that. https://discord.com/channels/747933592273027093/988847260764893234/1072579431178174536 . I want to install copilot but couldn't find it on code-server. Do I just set that variable inside code-server, or in the host machine? I'm quite confuse. Can someone help:)

First setup issues

Hi! Im trying to install docker-code-server on Coder but it quit on template import provision for start: recv import provision: plan terraform: terraform plan: exit status 1 https://paste.bijsven.nl/hofuzavuya.cpp...

Any clue what's causing this on `coder server` on a mac?

create tunnel: resolve endpoint: lookup pit-1.try.coder.app on 192.168.200.1:53 no such host
No description