Coder.com

C

Coder.com

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

Join

help

📢︱announcements

coder_2.10.2_windows_amd64_installer.exe vs. WSL installation method for code-server? (VS-CODE)

Hey all! I tried using coder_2.10.2_windows_amd64_installer.exe installation and get the Error: Invalid Coder SSH authority. Agent not found! error message. On the web interface, I get a status code 500 error on the Deployment > General page. Just to start things off, I would ideally like to have a simple localhost environment that I can pair my PC and laptop together to test out VS-code environment sharing, then move on from there. Is there something I may have glazed over in the guides? Is there a video tutorial that might help me specifically?...

Migrating Coder-OSS data to a new server

Is it possible to transfer data from an old Coder-OSS server containing live workspaces to a new one without having to manually dump the database from the old server, copy the /var/lib/docker and sync them through rsync? This process is usually very slow and inconvenient, and it is further complicated by the fact that my old server is running on Hyper-V while the new server is running TrueNAS, which are incompatible with each other.
Solution:
If your workspaces are ephemeral , just stop all workspaces and moving the postgres databse should be enough

How to use experimental port sharing

I am currently running latest coder-preview image and have this set as environment variable for Coder instance:
environment:
CODER_EXPERIMENTAL: "true"
environment:
CODER_EXPERIMENTAL: "true"
...
Solution:
It's CODER_EXPERIMENTS: "shared-ports"
No description

Recovering from disaster

There has been a disaster with our hypervisor that runs our Coder-OSS server. We installed Coder on Ubuntu and used it with its default settings, including the built-in PostgreSQL database. The disaster has caused issues with the Coder server. Although we can still run coder server, attempting to access the dashboard yields the following error: ```...
Solution:
I was able to successfully restore the SQL dump to the Coder database that is built-in. The process was completed using: PGPASSWORD=$(cat /home/coder/.config/coderv2/postgres/password) psql -h localhost -p $(cat /home/coder/.config/coderv2/postgres/port) -U coder -d coder -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" -f coder.sql...
No description

how do i get coder to run all the time?

I understand what the below error literally means. just not in the context of coder. listen tcp 127.0.0.1:3000: bind: address already in use i ran the coder v2 install script and then set coder service to enable and run on reboot. but get the above error. so then i kill the process on port 3000. and run $coder server and everything works. but the coder server doesn’t run 24/7. because i killed the process...
Solution:
What if you change it like this ```env #CODER_ACCESS_URL= CODER_HTTP_ADDRESS=127.0.0.1:3000 #CODER_PG_CONNECTION_URL=...

Access URL is not being used while port-forwarding.

❯ echo $CODER_ACCESS_URL
https://code.ay0ks.wtf
❯ echo $CODER_ACCESS_URL
https://code.ay0ks.wtf
```sh...

Session token expiration date

Hello, I have a problem with coder session token (the one generated here: https://<MY_CODER_SERVER>/cli-auth). I can't find how to limit this token life duration, is it like api token (100y default) ? I don't think so because I can't see it while running "coder token ls". ...
Solution:
CLI API keys last for 7 days

home directory of user changed owner to ubuntu user

Hello, after the last update I made a small change in the template, just added one line into the apt-get install command to include the ZIP utility. Now the whole folder of the user is owned by user ubuntu from group ubuntu and not the user that runs the workspace. ...
Solution:
Thank you. We should probably pin Ubuntu version in the example templates
No description

Standard Kube install fails for docker template

I followed the standard guide to install Coder on our Kubernetes offer (I work at OVHcloud) Coder starts well but when I try to create a Docker template, I have an error about Docker daemon. I do not see any explanation on specific modification to do on deployement so I'm all ears to any advice. Error =>...
Solution:
yeah the general expectation with k8s is that the backend could be anything, it doesn't have to be docker

Coder AWS EC2 (Linux) template not working for me :/

So I just started using coder, and wanted to make a persistence workspace, cause I tried the docker version, and it was non-persistent. So I used the template, and created a workspace. Everything works fine, the EC2 instance was made, but when the instance finished its 2 status checks, the coder workspace keeps having an error that "Workspace is u healthy" I restarted the workspace and the error persists. I have used the docker template workspace and it works fine for me. ...

Are the coder credits we assign daily?

If we assign some credits to a group, are those daily refilled?

Unable To Use DERP On Cloudflare Tunnel

Recently I have setup my home server to use a cloudflare tunnel allowing me to access coder via a zero trust verification process on the public internet or immediately when connecting to the respective cloudflare private network. This is highly convenient for me, however I noticed in the health tab that my performance may be degraded since the "Upgrade: DERP" header may be blocked on the load balancer, this is clearly due to the cloudflare tunnel however I couldn't see a solution when in the cloudflare dashboard. I wondered if anybody knew how to allow specific headers on the cloudflare network. Thank You...
Solution:
Indeed, I am primarily using public hostnames, the private network is only used in one special case. So it sounds as if the UDP protocol isn’t supported when using public hostnames on cloudflare tunnels, hence Coder cannot use DERP and defaults to using web sockets. Is that essentially what you are saying?

Sharing Jupyter Notebooks?

I've long used Colab notebooks with Google, and they're amazing. I'm now having to use Jupyter Notebooks in VS Code, and am really frustrated that there isn't, as far as I can tell, a lightweight way of sharing them with my team, without basically checking them into Github, which feels like too much of a heavyweight process, for what should be easily shareable things. Does anyone know a way to share a Jupyter notebook from my Coder instance? IE So I could them something like https://coder.office.adept-id.com/@Winton/Winton-Instance/MyNotebook.ipynb? Cheers,...
Solution:
You need to pass share = "public" to be able to share the link with others (be cautious as it will make it accessible to everyone on the network)

Implementing IP-Based Access Control for workspaces

Is there a way to limit access to workspace based on the source IP address? I am developing an application that utilizes the Coder's REST API. A workspace may have a distinct set of allowed or prohibited IP addresses. Is there a good solution available for this?

Workspaces have been stopping while I am using them

I currently have all of my workspaces set with an auto stop of 24 hours. Ideally, what I'm after is to have my time left extend to that 24 hours each time I use the computer, but I have recently had several times where I am using a workspace, then it drops off. When I dig into it, it shuts off because the auto stop timer hit 0. What's weird is that the "Last used" says "Now" correctly when I am using it, but it does anyway. I'm opening this thread to ask two questions: 1. Under what conditions is that auto stop timer extended and how can I check that it should be being extended?...

Multiple containers in one template

This is probably really silly but I've never used Terraform and barely used Docker before so I'm going in a bit blind. I'm trying to build a workspace template that has an application container as well as a database container. I'm trying to simply use the latest MariaDB image from docker hub. The application container works fine, but the database container never starts. It shows up in the UI, but just shows an error that it did not start in time. I can't figure out how to debug this issue since there are no details, logs, or any further information as to how far it got in the process. I'm also not sure if each container needs its own coder_agent resource or if I'm meant to reuse it. In my current tf file, I have one for each container, but I have tried reusing the "main" agent with no luck....

Forward (publish) local ports (host) into Workspace (Docker-Container)

Hi everybody, I have a gitea instance running next to coder and would like to access the repositories within the workspace (Docker-Container). I assume I have to configure the terraform configuration. Any hints, please? The port to access would be tcp/3000. Best regards, Thomas...
Solution:
I got it 👍 . Sorry for the amount of help tickets today. For others: - One easy solution is not use the default network bridge. - I created a custom network which every container joins, so hostname resolving is not a problem. Sorry again, first time working with coder and terraform. Have a nice day! Thomas...

Cannot start intelliJ on Coder v2 workspace

I created my own Docker image similar to the deprecated enterprise-coder image. The coder-v2 workspace is up and running but IDE IntelliJ is not running. Checking the logs I found an issue (image). The image is created with Ubuntu 22.04, with openjdk 11.0.22 and javac 11.0.22. Any suggestion?...
Solution:
I would suggest you to probably look into using JetBrains gateway.
No description

Create a worskpace with several container

Hi, I'd like to know whether it's possible in coder to create a workspace that contains for example a container where all code resides and gets executed (as usual) and additionally other containers (for example a database container) that can be accessible from the former application container. Thanks !...
Solution:
```tf data "coder_workspace" "me" {} resource "docker_network" "me" { name = "coder-${data.coder_workspace.me.owner}-${data.coder_workspace.me.name}" }...

how to compile a c++ github project

I'd like to compile this c++ project into a dll but I don't know how to do it. If anyone could help me, that would be great. here's the link: https://github.com/CrunchyRL/VoltageV3...