Coder.com

C

Coder.com

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

Join

help

📢︱announcements

`cache_repo` doesn't work

Hi, I trying to understand how cache_repo work. I already have dockerconfigjson secret in cluster and I'm very and you could assume that its data is correct because I'm using it in imagePullSecrets for Deployment when I create workspace, I got this error. Please help me, Thanks. Bellow is my template I used. ...
No description

"File not found" error when starting code-server, resulting in a blank page in browser.

Hi, I'm getting those errors whenever I run npm run watch: ``` Error reading NLS messages file /.../lib/vscode/out/nls.messages.json: Error: ENOENT: no such file or directory, open '/.../lib/vscode/out/nls.messages.json' [...] File not found: /.../lib/vscode/out/vs/workbench/contrib/dropOrPasteInto/browser/dropOrPasteInto.contribution.js...

Add `map(string)` to `code_parameter` support type

I'm using the vscode-web module in the template. When my team creates workspaces from the template, I want to allow them to select extensions and apply settings that suit their needs by using the coder_parameter vscode_web_extensions and vscode_settings. In main.tf: ```tf data "coder_parameter" "vscode_web_extensions" { description = <<-EOF...

SSH from vscode/terminal back to local desktop?

Lets say I start a terminal from the Coder UI in my browser (or I launch VSCode). Is it possible to work an SSH tunnel back to my actual local desktop from the docker instance that I'm inside? I've tried looking for things like SSH_CONNECTION, but thats just 0.0.0.0 ...

Issue with starting workspaces that were running for months.

Hello, today, my templates stopped working after months of being used. Do you have any idea what is going on and how to fix it? ...

$CODER_ACCESS_URL for working health check and auth-provider in k8s

Hi! So i am hosting coder in a k8s at coder.mydomain.com and gitlab is at gitlab.someotherdomain.com. If I assign coder_access_url to coder.ns.svc.cluster.local healthz check works but the redirect url is incorrect (as it expects coder.mydomain.com)...
Solution:
I figured out a solution in my case. The issue was that the chosen load balancer (NLB) had preserve client ip on (by choice for a legacy service we upgraded so probably no need anymore). long story short Toggling this makes sure that the ingress url works to address from within the pod with that specific url: https://www.reddit.com/r/kubernetes/comments/tk659b/comment/i1zv5pa/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button...

Need help configuring Coder WebSocket behind a proxy with non-standard ports

Sorry for the inconvenience I made. I don't have access to the standard ports (port 80 and port 443) on my cloud instance. 😭 I use Nginx to proxy coder from internal port 7080 to external port 1234. Everything works perfectly fine, except for the logs session. Coder isn't showing any of the logs, including the workspace building logs and the template building logs. ...
No description

Docker not working in VS Code

im wondering if someone can explain to me how coder works. i feel a bit slow. i have docker installed on my vm, installed coder bare bones. everything loads up. i open VS but it cant connect to docker? so im a bit confused in that regard...
No description

Pass Git credentials from Coder into Envbuilder

Hi, I have deployed Coder on K8s via Helm. As far as I understand after reading the docs, Coder provides an authentication method via a GitHub OAuth app, but this only helps users log in and register with the Coder server. When creating a workspace using Envbuilder, users still need to provide additional credentials in some way (such as ENVBUILDER_GIT_PASSWORD, ENVBUILDER_GIT_SSH_PRIVATE_KEY_PATH, or ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64) to clone a private repository. This may not be convenient for users who have already logged in with GitHub or may "feel insecure" about pasting their sensitive credentials. In section Secrets did mention about SSH key pairs for each user, I've add this public key into my github account but I still cannot clone private repo within Envbuilder....

Access Workspace Web does not work with returning Code 302

Hi all, I'm trying to setup sagemath with jupyter. I got everything running and sage -n jupyter via supervisord in the background and an access via the main.tf file, but jupyter returns a 302 to the location /tree? and it seems the code-server passes that 302 towards the users freshly opened browser window resulting in the browser to got to coder.domain.com/tree? which returns a 404. How can i tell coder to follow redirects, before returning the response to the user?

Cannot change namespace value for Devcontainer in K8s

Hi, I have deployed Coder from helm chart in my cluster in specific "coder" namespace I'm facing issue when creating devcontainer workspace. Really need help. I also mounted kubeconfig file to /home/coder/.kube by and I'm sure content in it is correct. Then I created a template by choosing Devcontainers (Kubernetes) stater template....

cant creat workspaces

when I creat workspaces always waiting.I don't know why
No description

Air-gapped Coder VS Code Desktop - Failed to download VS Code Server

As title says, could not get Coder to work with VS Code desktop in an air gapped network, VS Code look for a server cli and tries to go online to https://update.code.visualstudio.com/comit:.../cli-alpine-x64/stable...

Workspace unhealthy + Advise on big picture

This is my for setting template on gcp vm - when i manually create workspace in the UI, it says, Agent is unhealthy Big picture 1. I want to provision repos (both public repos and private repos that I have with me) to developers when they click a button in my platform UI...

`oauth2-proxy` allow proxied authentication

I am currently using Azure AD as an OAuth provider but am aggregating my deployment's need for user authentication (including Coder and other apps) by authenticating once via oauth2-proxy. However, according to Coder docs, auth via proxy is not yet supported. I am not yet familiar with Coder's source code but am willing to pitch in to this as a feature. Is header-based or proxied auth already included i...

`coder_agent` METADATA not working in Coder API

When using coder agent metadata, the behaviour is correct in the UI (the value is displayed based on the script definition), but when calling curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacename} . The instance that has the agent assigned has a json parameter agents , but there is no corresponding metadata to the one defined in the coder agent. How to access coder agent metadata?

Creating a JupyterLab instance

It might be simple, but I can't get a JupyterLab instance going. The goal is to spin up an AWS EC2 instance. I can do that with VSCode without issue. I add the module from here but get a few errors on launch - https://registry.coder.com/modules/jupyterlab ...

Several Questions/Problems Regarding JetBrains Rider with Coder

Hello! I setup Coder via Portainer with this compose file https://pastebin.com/dWw8fzGW. I created a docker compose template and then on that I made a new workspace for testing purposes since this is the first time I have used Coder. From there, I wanted to use JetBrains Rider to connect to coder so I used JetBrains Gateway and used the Coder plugin and connected to the workspace and all is good. I obviously now want to make a solution for my app and going into new solutions in Rider brings up t...
No description

One Kubernetes cluster for Coder and one for the workspaces: how do I specify the ~/.kube/config for

My first battlefield experience with Coder does not went as I expected, but mainly my fault. In all what I need to figure out, we are going to try to have 2 separate Kubernetes cluster: - one will be hosting Coder itself - one for all the workspaces...

Older workspace no longer working

I went to fire up an older workspace and I seem to have issues with it. My first issue was I was installing an older version of Coder for the agent (the version was fixed for some reason). Now my workspace is running (in k8s), but when VSCode tries to set the remote connection, I get this error:...
No description