Coder.com

C

Coder.com

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

Join

Failed to pull GitHub private repo

I know this has been asked before - but I absolutely don't get how to solve it from the responds. I got the SSH key from SSH keys settings, pasted it to my SSH keys on GitHub. I use the Devcontainer template, with my own repository URL. ...

Need Simplified Approach

i have a project in the gitlab which has the application code and a coder workspace is created for that project in gitlab . So whenever the a latest code is pushed to the gitlab project , my coder workspace , should restart , so that the scripts of the workspace would pull the latest code from the project So for this use case can you suggest a good approach ?...

Restart a workspace through the coder api

Is there a way to directly restart the coder workspce through the coder api , or i need to first stop the workspace then keep checking for the status of the workspace once its stopped in need to hit the start endpoint ??
Solution:
Yes you can do that by making two API calls. https://coder.com/docs/reference/api/builds#create-workspace-build one with "transition": "stop" then when it completes do another with "transition": "start"...

Jetbrains IDE Support

i was wondering if someone could help me out with getting jetbrains IDEs set up with coder. I have it hosted and running, but when i try to connect with an IDE, the select IDE button is always grayed out.
Solution:
check out the Docker template as an example
No description

code-server port forward issue

Hi, I am having some issues with port forword when running code-server in the browser.
I have setup coder in Kubernetes ( with nginx ingress ). When I create Workspace in coder , start code-server and start , eg Tomcat on port 8080, VS will automatically create Port/Forwarded Address as https://coder.mydomain.com/%40barrow/coder-example.main/apps/code-server/proxy/8080/...

ptyHost Connection

Hello, after updating the ptyHost disconnects after some time
No description

Cannot run Docker in Docker anymore

My Coder instance started behaving very strangely this (or last) week. I'm running it through docker and have installed sysbox do be able to run docker containers within my workspaces. It's been working perfectly fine up until now. Now every time I try to start a docker container I get this:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "proc" to rootfs at "/proc": mount src=proc, dst=/proc, dstFd=/proc/thread-self/fd/9, flags=0xe: no such file or directory: unknown.
I've tried trouble shooting by ...
Solution:
Hah, I found the issue. If someone ever has the same problem: https://github.com/containerd/containerd/issues/11083
Works if downgrading containerd to version 1.7.23 RUN apt-get --reinstall install -y --allow-downgrades containerd.io=1.7.23-1...

Coder created workspace (from K8s Devcontainer template) does not seem to inject proper SSH key

Hi i need some help setting up Coder on a K8s cluster. I've installed coder in K8s (via helm), configured role and role binding for PVC and Deployments. Setting up a workspace from the k8S DevContainer template seems working fine except that ssh keys are not properly injected into the workspace, resulting in git clone failure. Below are the logs. Really appreciate any help! ```...

The ping place is not working

i did everything that the document said and still this place is not working
No description

K8s + Coder Permissions Issues

Hey @Phorcys I'm running this example docker file on an EKS cluster https://github.com/coder/webinars/blob/main/2024/2024_06_genai_tooling/files/Dockerfile When spinning up the workspace on the cluster It is not able to create directories and such in the pod. Getting a lot of access denied. I basically copied this terraform file here as well. https://github.com/coder/webinars/blob/main/2024/2024_06_genai_tooling/files/main.tf wondering if there is anything obvious that I may need to tweak, etc. Just started toying with coder today as a POC. Any help would be appreciated....

questions on coder module jfrog-oauth

does anyone have experience using this module when the user's permissions for a artifactory project are defined by groups? I think my scope is wrong but I am not sure if jfrog application integration allows group scopes basically I have the integration set up but it only works if I manually add every individual user to the artifactory project instead of just using groups....

`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....
Next