Coder.com

C

Coder.com

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

Join

help

📢︱announcements

external auth not working properly

I've tried my best to configure both the github auth, and the github external authentication for access of private repo's. However after configuring everything, it seems that my external authentication isnt working properly... as It says it got an error. I dont get what I can do to fix this?...
No description

Is the external auth gone?

Hi there, For some reason, the external auth step in the workspace creation is gone for me. As mentioned in the documentation, there should be a "Git authentication" part in the setup of a new workspace. But for some reason it's gone from my instance. I still have this part in my template code: ```tf...
No description

coder + cloudflare tunnel (Linux debian)

As the title suggests, I've been trying to get this to work with no look. If anyone has any advice, I would greatly appreciate it. ...

How does the coder_script terraform resource work?

I have a script that I need to run when the workspace has stopped/deleted to delete some resources from another k8s cluster. I add it as a resource to the template and set “run_on_stop” to true and set the agent id to the one of the workspace but when I stop/delete a workspace it doesn’t run. Am I missing something in the setup?...

Templates and Github

Is it at all possible to push changes made to templates via Coder’s template editor UI to Github? There’s documentation (https://coder.com/docs/v2/latest/templates/change-management and https://coder.com/blog/keeping-templates-up-to-date) about using CI/CD to push changes to git-managed templates to Coder. Since editing templates is possible via the UI, is it possible to push changes made in the UI to Github?

Error on getting the build logs

Everything is working as expected with the exception of receiving "Error on getting the build logs" when performing an action on a workspace (docker container) in the UI I note on the frontend in console WebSocket connection to 'wss://<MY DOMAIN>/api/v2/workspaceagents/ba345d10-1986-4879-8747-32a2dd4e67b7/logs?follow&after=0' failed ...

SSH direct connection

Hello! First, I'm no sysadmin or anything, so please bear with my ignorance. I'm trying to setup coder on my lab's server, and everything has gone great for now, except that I don't seem to be able to establish a direct connection. I connect to the web UI through a SSH tunnel, so for instance the terminal app of my workspace works perfectly fine (from 127.0.0.1:3000/@username/workspace_name.agent_name). However, when doing ssh coder.workspace_name after a coder config-ssh in my local ter...

Issues with DNS and AWS NLB pointing to EKS

Having an issue with DNS not updating for my coder isntance. So my coder instance produces this stack trace: Using route53 to manage hosted zone for the sub domain while the main domain is hosted at godaddy. Pointing using the NS for the hosted zone. TLS listener for NLB for terminating https and pointing http to coder server. Error: User is not authenticated. at si (https://coder.realdecoy.com/assets/index-635f8de7.js:264:2648) at A7e (https://coder.realdecoy.com/assets/index-635f8de7.js:264:8733) at eO (https://coder.realdecoy.com/assets/index-635f8de7.js:45:19551)...

Pre-installing VS code extensions in coder workspace

I would like to pre-install VS code extensions in a workspace template so that everyone on my team will automatically have them when they create a new workspace. It's possible to install extensions via the command line with the code command, but this command is not available in the startup script for the coder agent. I tried the following hacky solution: ```...

Coder in VPN settings, Slack repost

Hi! First of all, I am new to coder and networking is not my strength... How do I configure coder if the access-url is only reachable from within the network? Meaning that users need to connect via a VPN to the network and can then reach the address. Any help would be appreciated! 🙂

code-server stopped loading after upgrading coder to 2.8.1

Previous version: 2.7.2 code-server version: 4.20.1 : This is as same before the upgrade I use this to start code-server: code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & When I open the coder resource I get 502 error- Failed to proxy request to application: proxyconnect tcp: dial context: connect tcp [fd7a:115c:a1e0:481e:b8c0:a53:c24:11b4]:8080: connection was refused ...
Solution:
I've stumbled upon this as well and I think I found the solution. We're using Microsoft VSCode (not code-server by Coder) - currently Visual Studio Code 1.87.0 The VSCode web button stopped working: ...

backup/restore workspaces in k8s

We have deployed Coder with Kubernetes and we are trying to figure out how others may be backing up/restoring a workspace's persistent volume. We use rook-ceph for our storage solution and can create rbd volumeshapshots for backups. However, we are finding it difficult to restore them in an event workspace's pvc is deleted as workspaces are spun up as Pods and after creation you can't tie it to a different pvc. Any ideas are appreciated.

Create workspace API endpoint stops working after upgrading Coder

I upgraded my Coder deployment from version 2.0.2 to 2.8.1 (yes i know huge jump). The create workspace endpoint used to worked fine through my application / manually through curl or postman. After upgrading, I'm getting the following error message ``` { "message": "Validation failed.",...
No description

Docker in Docker docker-compose volume

Hi, I have a Docker in Docker setup with a git repo inside that has a docker-compose.yml. One of the containers has a volume that maps the current folder to a folder inside the container. The issue is that using a Docker in Docker setup, the current folder "." is mapped to the host (which not exists), not the current workspace container. volumes: - '.:/var/www/html' ...

coder in Windows Docker Desktop

I know this is probably a weird question but maybe its come up before. Nothing popped up in the search. Has anyone got code running under windows in docker desktop? Any tips on where I might read about such efforts? I mapped docker socket what seems to be correct but when I try to create a docker workspace I see errors i the log 'curl -fsSL http://host.docker.internal/bin/coder-linux-amd64 'failed to download coder agent' 'The requested URL returned error:403'. Seems like the workspace can't talk to the coder server. Also, in the health section Derp says `netcheck: [v1] measuring ICMP latency of coder (999): no address for node 999b netcheck: [v1] netcheck: measuring http(s) latency of coder (999): dial tcp6 [::1]:80: cannot assign reqeusted address...

Issue with coder_access_url

Hi, I'm launching coder through a terraform-script using the official AWS AMI. After changing the CODER_ACCESS_URL=http://...... I still get forwarded to some random address in us-east i.e https://hd45esvj629ve.pit-1.try.coder.app/ when trying to access it....

Docker Template. Start/stop workspace without delete docker container

Is there any way to stop workspace and keep container - When create workspace -> create container - When stop workspace -> stop container - When start workspace -> restart old container Can it done with write template or must be custom source coder...

I get 'Error: expected arch to be one of [amd64 armv7 arm64], got arm' but the CPU is armv7

Hey, I have installed Coder with Docker on my Raspberry PI which has an armv7 architecture, but I get an error. (see screenshot)...
No description

Exec format error on pod (ARM arch)

Hello, I installed Coder (using kube) on a rasp, but when I create a workspace (using a kube template), one of my pods ends with exec format error. I guess it comes from the image being compiled for x86 and not ARM. Is there any image that I can use/find that supports ARM arch ? If not, where can I find the sources to compile the image into ARM ? Thanks...
Solution:
If Coder (coder provisioner) is running on an ARM64 machine data.coder_workspace.me.arch will return arch64. But as you wish to have your workspaces on another machine you should not use this but set the arch of coder_agent resource to correct value i.e. AMD64....

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.