Coder.com

C

Coder.com

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

Join

how to use traefik to connect it to a domain with caddy

how to use traefik to connect it to a domain with canddy

Provide git repo as parameter

Hey! First of all, amazing product. I love it so much already and I’ve barely scratched the surface. Right now I’m trying to create a baseline template for most of my projects, so naturally I want to be able to provide a repo as parameter to template and have it cloned on start. I copied what’s in https://coder.com/docs/templates/open-in-coder but I thought it would work as it does when I connect to a workspace and can immediately clone my repositories, since I’ve already added the Coder key. But instead the startup script fails when using ssh url, with something in the lines of “can’t connect to remote” etc etc. ...

aws ec2 is always auto started after coder workspace is stopped.

it seems that my ec2 instance is always auto started back an hour later, whenever I have stopped the coder workspace. how can I ensure, the ec2 instance is not auto started back? pls help

Resetting the Service Version of Coder

I forgot the password to my admin account on coder. I use the system service version of coder server and the docs don't cover that version.

I get an error when deploying docker template in rasberry pi (coder in docker)

I get this error
Error: process "/bin/sh -c apt-get update \t&& apt-get install -y \tcurl \tgit \tgolang \tsudo \tvim \twget \t&& rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1

on main.tf line 164, in resource "docker_image" "main":
164: resource "docker_image" "main" {
Error: process "/bin/sh -c apt-get update \t&& apt-get install -y \tcurl \tgit \tgolang \tsudo \tvim \twget \t&& rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1

on main.tf line 164, in resource "docker_image" "main":
164: resource "docker_image" "main" {
...

How do i make a template for python

I want a simple python workspace and be able to edit with code server. what do i do?

Coder docker container DB is randomly failing

I’m experiencing a weird issue where while I have a Coder docker container running, the DB fails due to what it looks like is a bad migration? Not sure what’s happening, but while Coder is running, it randomly crashes and when I try to run it again I’m getting the errors in the screenshot. What could be causing this?
No description

github enterprise auto upload publish SSH key

Hey folks! I'm curious if anyone has had any luck setting up https://registry.coder.com/modules/github-upload-public-key to automate uploading SSH keys to make git clone easier? I've got things mostly plumbed together as https://coder.com/docs/admin/external-auth#github-enterprise prescribes, but I keep getting 401 errors so I'm curious what I'm missing
Solution:
Finally got it to work! I learned a couple things: * https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/differences-between-github-apps-and-oauth-apps I originally had created a github app. Looking back at this, I think I might be able to get the github app to work, but 🤷 I have an oauth app working now * When I posted last night I was missing github_api_url completely. I initially tried https://github.example.com but this afternoon I realized I needed to use https://github.example.com/api/v3...

Coder-app share level not respected when using wildcard access URL

Hey all - Thanks for all the thoughtfulness around port forwarding/sharing. We have a use case where we share code-server publicly via #4378 and it works well - we were able to view forwarded ports via path publicly....

GUI Application Development

Is it possible for a coder workspace to be set up to support development of apps that use a GUI? Things such as JavaFX, PyQT and other toolkits for GUI development....

workspace for developing react

I have a self hosted coder instance running on my personal server that I access from behind a wireguard vpn. the source code for my workspace is this: when I run the react app using the “npm run dev” command, coder opens another tab that gives me a “bad 502 gateway” error. how can I troubleshoot this?...

Copying from Coder host to Docker Template

Hey all, I'm trying to build a docker image on the coder host dynamically (unfortunately, I cannot use another external platform due to license issues). The problem is, that the installer has severy GBs, so it's too large to put it next to the Dockerfile. I tried to overcome this by copying the installer from the host's filesystem with "COPY" in docker, but appearently the file cannot be found. Can anyone help me with that?...

Public local host

#help Hi all, I am a newbie. When I install Coder based on https://coder.com/docs/install. in my Ubuntu PC. Everything is ok, I can create my template with docker in a local host ( 127.0.0.0.3000). Now I want to publicize this local host on the server so my friends can access it. Does Everyone have an idea or document to handle it? Could you share it with me? Thank you and best regards, bung bu...
Solution:
You may now consider us in Ng a reverse proxy to expose the local port 127.0.0.1:3000 to your Network. See these three guides. https://coder.com/docs/admin/configure#tls--reverse-proxy...

Updated Coder version and now I’m getting database errors with Docker Compose

Earlier this week I got a message that Coder had a new version. I upgraded and now I’m getting an error when running the docker compose. It’s showing that the user authentication for the DB failed. Tried looking for existing discussions on this issue but could not find anything. How should I fix the DB connection?
No description

GCP VMs fail to start sporadically with "desired_status can only accept RUNNING value" error

We are using Coder to manager GCP VMs with devcontainers, and occasionally the machine will get into a state where it is unable to start, getting the following terraform error: ``` Error: When creating an instance, desired_status can only accept RUNNING value on main.tf line 334, in resource "google_compute_instance" "vm": 334: resource "google_compute_instance" "vm" {...

My rpi 3 code-server only runs when I access the config file (sudo nano config.yaml)

Only after I ssh into my pi, and "sudo nano config.yaml" the address works...

Configuring Coder to work with multiple external urls

The main configuration for coder only allows specifying a single access url or wildcard access url. Is it possible to configure for it to work with multiple external urls? The main use case is that we have the main coder url at https://coder.somecompany.local and we want to make coder available to another group of users living in a different network segment where the access is through a different reverse proxy at https://coder.specialgroup.local and the only access is browser only (no direct connection) In addition, how do we also make this work with dashboard based port forwarded apps, which requires the use of wildcard access url instead?...

api/v2/templates Route not found

Hello, I am trying to use this API endpoint (api/v2/templates) that is listed in the documentation (https://coder.com/docs/api/templates#get-all-templates) but I receive the error "Route not found". Is this endpoint exclusive to the enterprise license ?

error persistently

First of all, good day friends, it gives an error like this, how can I solve it, a friend of mine made a suggestion, but it didn't happen again <hr style="width: 300px; margin-left: 150px;"> how can I do it
No description