Coder.com

C

Coder.com

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

Join

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

Calling a bash script while building the workspace (docker)

Hi everybody, I am using the starter template for docker and when I try to call my bash script it fails. I added of course the bash to the build. I didn‘t append the /bin/sh -c . Can somebody please explain what issue is ? Best regards, Thomas
Solution:
can you build the Dockerfile outside of coder using docker build?
No description

Unable to create docker

This is error log: ``` Initializing provider plugins... - Finding latest version of coder/coder... - Finding latest version of kreuzwerker/docker......
Solution:
in both cases you need to add the coder user to the docker group. https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user...

Internal error checking workspace agent authorization (after db reinit from dump)

Hi. Today we tried to update Coder from v2.9.1 to v2.9.3 but the DB got corrupted (probably because of 2 pgsql instances running at the same time, rookie mistake). We have PG dumps each day, so I tried to run v2.9.3 version and import the backup dump (schema + data) from last known working version; the Coder works, I can access the dashboard, the data is there, but now all workspaces created show me the following error:...

Error when updating code-server to 4.23.1 within coder

I upgraded code-server from 4.23.0 to 4.23.1 within my coder.com instance (using this module: https://registry.coder.com/modules/code-server). When I now start my workspaces, I get this error: ```...

how to get the code-server URL when a WorkSpace is created by API or CLI ?

Hi ! Here a new user to Coder. Justr trying this product for a big development. I am wondering about how to get the code-server URL when a WorkSpace is created by API or CLI ?...
Solution:
If the name of code-server coder_app is code-server you should be able to access it in the form of https://<CODER_URL>/@<USERNAME>/<WORKSPACE_NAME>.<AGENT_NAME>/apps/code-server...

Reverse proxy coder server

trying to reverse proxy a code server and im unable to connect

Custom URL

im using the docker coder/coder and im wondering if theres a way to configure it to go to a custom domain (coder.example.com) rather than the coder server provided
Solution:
Hi @External Life Sorry for missing this one. You can set a CODER_ACCESS_URL to your coder.example.com to set. custom domain....

Kubernetes and air-gap

I have a kustomization coder/postgres deployment that comes up and online and fully healthy (according to the health tab in coder). I am using Istio as an ingress but disabled service mesh to rule out blocked comms to api-server. Everything seems fine but when I try to create a Kubernetes template, I just get a basic error of "initialize teraform: exit status 1" but nothing else. We have mirrored public repos and certs setup well in this environment and I can exec into the pod and the terraform binary is available. I am assuming I am missing the provider somehow (though we do have a mirrored version of the hashicorp tgz as well). Is there any way I can get more verbosity from this error message or anyone have any other tips for me to try?...
Solution:
Do you have a .terraformrc mounted into the Coder deployment that points to a Terraform providers mirror? https://coder.com/docs/v2/latest/install/offline#offline-container-images

Is it possible to migrate user from coder db login to OIDC?

I have implemented okta login but we have some active users who would want to keep their workspaces etc. is this possible ?
Solution:
You can ask the users to go to https://coder.domain.tld/settings/security and they will see the option to connect with SSO

Cant start coder on windows pc

Hello i want to start my coder server but i get this error form postgres: Encountered an error running "coder server" Usage: coder server [flags] Error: Failed to start built-in PostgreSQL. Optionally, specify an external deployment with --postgres-url: unable to init database using 'C:\Users\info\AppData\Roaming\coderv2\postgres\bin\bin\initdb.exe -A password -U coder -D C:\Users\info\AppData\Roaming\coderv2\postgres\data --pwfile=C:\Users\info\AppData\Roaming\coderv2\postgres\runtime\pwfile': exit status 0xc0000135...
Solution:
you will need to log out and login, or run newgrp docker before running coder server

Windows AV flagging coder-windows-amd64.exe

Hey there, wanted to flag this. Trying out coder and my antivirus (windows defender) is flagging this executable that is downloaded from coder when first connecting to a workspace from VSCode (under /bin/coder-windows-amd64.exe). Seems very likely to be a false positive but still possibly a concerning finding. Virustotal looks a bit more promising for windows AV but CAPE sandbox has flagged it as potentially containing malware. https://www.virustotal.com/gui/file/bc9c1189f1c75934acac13271be1637fe8d3322525b23f8047d52964399f595c/behavior Coder Version: v2.10.0+a7234f6...
No description

Coder Owner Workspaces Access

In previous versions, I don't remember the version number but I was able to access regular user workspaces from vscode using the extension. I cannot do that in coder v2.9.2 with the environment variable CODER_DISABLE_OWNER_WORKSPACE_ACCESS=false Any idea of what I am doing wrong ?...

Code Server GUI Support

Hello, I wondered if there was any way to add support for previewing & interacting with GUI's, similar to that created by tkinter or pygame when programming in python within the web based code server which coder offers. Any suggestions to how this could be achieved would be highly appreciated! Thank You - Stephen

Github authentication not working

Hi there. I have a github enterprise external auth set up for a coder instance, and am able to log in to my github account, but I am getting a 403 when trying to pull the repo. Not really sure how to debug. We have the exact same setup on a different coder instance and it works fine. Basically looking for debugging help. thanks...