Coder.com

C

Coder.com

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

Join

Having a hard time adding user collaborators to my workspace

Hello, just started tinkering with Coder today. I already have my workspace setup using the Official Docker Devcontainer templates. However, I don't see how I could add a user to collaborate over code. Is this a strictly premium feature or do I need to tinker with Terraform code (to which I was just introduced)?

Infinitii Loading Issue - workspace Not Starting Even After Builder is Finished in EnvBuilder

Hey everyone, I'm encountering an issue with my setup in coder. The builder process completes successfully, but when I try to start the workspace, it just doesn't launch. Instead, I'm stuck with infinite loading. I've checked the logs and everything seems fine, but the workspace doesn't seem to initialize properly. - devcontainer.json ...
No description

github private repo won't pull

I'll be fully honest here, I think this is an issue with the documentation. I'm using the external auth method that has been recommended here a couple times. I've gotten as far as installing the github app for my organization, and now I have a bunch of environment variables, but it's not specified what environment they need to be set in. ...
Solution:
OK, turns out this was a layer-8 issue, though a very subtle/frustrating one. Turns out docker compose -f coder.yml restart doesn't actually refresh the environment variables, so none of the changes I was making were getting shown to coder. This resolved itself after I used docker compose ... down followed by docker compose ... up -d. Edit to add:...

unable to remove docker image

Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container e1d72f3774ba is using its referenced image 0043aade3996 I'm trying to delete a devcontainers workspace, and no matter which workspace I try to delete, it always fails with a variant of the above message where the only difference is the hex vomit. How do I get the platform to do the forced removal that docker is demanding here?...

Email (SMTP) isnt working

I have my own mailserver and this is my coder config:
CODER_EMAIL_SMARTHOST=mail.devtrung.tech:465
CODER_EMAIL_AUTH_PASSWORD="censored"
CODER_EMAIL_SMARTHOST=mail.devtrung.tech:465
CODER_EMAIL_AUTH_PASSWORD="censored"
...

Entire Path

How can i show the full path of the Current Directory like projects/python/api how can i make it show like this

It denies the Connection

The Code-Server denies the Connection on port 8080

Set "extensions" and "theme" from `devcontainer.json`

I'm trying to use the default template Docker (Devcontainer) and I was hoping I'd be able to hold every piece of information of how to set up the environment in the repository and not the template itself. I have a template to just pull a GitHub repo and set it up however it wants, using it's .devcontainer/Dockerfile and .devcontainer/devcontainer.json. I'm having problems with pulling extensions and setting the theme for the code-server. I was hoping that I could just set it from the devcontainer.json but it doesn't work - neither settings or extensions are taken into consideration when building the Workspace. Here's my devcontainer.json:...

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