https://linen.dev logo
Join Discord
Powered by
# help
  • Coder Docker Port forwarding
    k

    KozmikNano

    05/01/2023, 6:34 PM
    How does coder handel the portforwarding for anything running in the container? Is there software handling it?
    p
    • 2
    • 1
  • Error Message for envbox Template on GKE
    p

    pgryzan

    05/01/2023, 7:56 PM
    Hello! I ran into an error while trying to run the latest envbox example template on my GKE cluster. It looks like it's trying to write to a read only directory and the pod cannot be scheduled. Attached is the screenshot of the error and the template I used. Any help identifying the problem would be much appreciated. Thank you in advance!

    https://cdn.discordapp.com/attachments/1102685112786751570/1102685113042616400/Screenshot_2023-05-01_at_3.46.30_PM.png▾

    https://cdn.discordapp.com/attachments/1102685112786751570/1102685113319432375/main.tf
    k
    j
    • 3
    • 4
  • Is it possible to skip creation of local administrator?
    m

    MrPeacock

    05/02/2023, 2:23 PM
    We've to get rid of local user administration and want to know if it would be possible just to configure OIDC without a local administrator? This would lead us to safe a lot time and maybe other difficulties facing ahead. We are using Azure AD as our IdP. Maybe some environment var CODER_SKIP_LOCAL_ADMIN to lead to skip initial account creation.
    v
    • 2
    • 3
  • Where is the login message set? (e.g. /etc/motd)
    g

    Goose

    05/02/2023, 3:18 PM
    I tried /etc/issue and /etc/motd with no luck.
    m
    a
    • 3
    • 8
  • What to do if deleting workspaces fails?
    g

    Goose

    05/04/2023, 5:12 PM
    Not sure why it's failing. I added a custom domain recently + TLS
    c
    k
    • 3
    • 5
  • Setup baseurl
    c

    cumpsd

    05/05/2023, 10:41 AM
    I have Coder running behind a reverse proxy, located at
    http://example.org/coder/
    However, when navigating to this page, all JS and CSS is trying to load from the root path, see screenshot. I have properly configured the
    CODER_ACCESS_URL
    to include the subpath. Is there a way to configure coder to add a baseurl?

    https://cdn.discordapp.com/attachments/1103994904872505456/1103994905149317191/image.png▾

    c
    k
    • 3
    • 9
  • Kubernetes PersistantVolumeClaims
    l

    Lucas_DK

    05/05/2023, 2:46 PM
    Normal  FailedBinding  5s (x19 over 4m30s)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set
    c
    k
    c
    • 4
    • 8
  • my opera gx got corrupted, is there a way to repair it? can't delete it either
    b

    bawb

    05/05/2023, 4:10 PM
    When I open the file as a txt, is there a way to repair it by just adding some letters?

    https://cdn.discordapp.com/attachments/1104077719572070401/1104077719727251456/20230505_180106.jpg▾

    c
    p
    n
    • 4
    • 8
  • Enabling Prometheus with minikube
    e

    Elio

    05/05/2023, 7:43 PM
    Hello, I have coder running inside a Kubernetes cluster (namely minikube (https://minikube.sigs.k8s.io/docs/start/)) which runs inside a docker container. I have pretty much everything working but have had to make a few workarounds for accessing coder inside the docker container. Regardless, when I enable Prometheus metrics by following the documentation (https://coder.com/docs/v2/latest/admin/prometheus) I can't seem to access the data. Even when running a terminal inside the Kubernetes cluster I am unable to
    curl http://[host]:2112
    and get a response. I tried various things for the host with no success

    https://cdn.discordapp.com/attachments/1104131159656513657/1104131160541503639/Screenshot_2023-05-05_at_12.41.09_PM.png▾

    https://cdn.discordapp.com/attachments/1104131159656513657/1104131160776388688/Screenshot_2023-05-05_at_12.42.45_PM.png▾

    c
    • 2
    • 8
  • can I pay for a coder app tunnel in other region?
    m

    Marco Aleixo

    05/09/2023, 4:35 PM
    I mean, the default tunnel that you create is awesome! But I'm from Brazil. It would be awesome if I can pay $5 per month to get a custom coder tunnel on my region. so with that even as a solo developer I can support coder development as well 🙂
    c
    p
    +3
    • 6
    • 7
  • Coder for teaching students (one workspace for each student with separate logins)
    m

    mukumuku

    05/10/2023, 3:28 PM
    My question is how to use (or what's the best way of using) coder for teaching. I am a faculty at Uni and would like to use coder for teaching. The use case would be: - Create e.g. 20 user accounts for students that all run a workspace based on the same template - Get direct links with tokens for each workspaces (I couldn't find this in the docs) that directly open code-server in a browser. The direct links would be very helpful because students would not need to put in a name and password. - Delete all these users and workspaces at the end of the semester. Thanks for creating this great tool.
    c
    a
    z
    • 4
    • 10
  • Using nix w/ coder (via OCI images on docker or k8s)
    h

    hippiehacker

    05/11/2023, 12:32 AM
    We are exploring using nnix within our templates : https://github.com/cloudnative-coop/coop-templates/blob/main/iidoom The Dockerfile is here : https://github.com/cloudnative-coop/coop-templates/blob/main/iidoom/build This is our first grasp at this toolchain and we are likely holding it wrong. Is anyone out there doing something similar?
    c
    • 2
    • 4
  • live share / pair programming
    a

    Akantor

    05/12/2023, 2:29 PM
    Hello there, I just wanted to know if somebody got the live share Extension to work? Using the original Vscode with the coder extension doesn't seem to work properly. Or are there any alternatives (if possible open source) at which I should look? Thanks for the help.
    c
    • 2
    • 2
  • Skip Setting up Coder when OIDC is configured
    v

    VaneixusPrime

    05/12/2023, 2:41 PM
    well, the title tells pretty much what I want. but to be more detailed. I want to automate the setup process when OIDC is configured, I would probably have it map the owner to first user to login, or just create a local account
    c
    m
    • 3
    • 2
  • Port forwarding does not seem to work. No error message
    u

    100% awli

    05/12/2023, 7:23 PM
    I have Vite with preact on my dev machine. After launching Vite the vscode is using the auto portforwarding. On another machine(still lan) the following page's content is no more than "Not found." . The portforwarded URL is: ``http://LOCAL_IP:8443/5173.example.my.domain`` The page works on the dev machine(so the url is ``localhost:5173``). Code server version: latest Code server is over http There is also nothing unusual in logs
    c
    a
    v
    • 4
    • 9
  • Permission to use CodeServer icon for related project?
    m

    Merith

    05/14/2023, 9:15 PM
    I have a minecraft mod that's whole purpose is to setup and run code-server on minecraft servers, however it currently does not have an icon for the modpage https://modrinth.com/mod/code-server I was wondering if I could have permission to reuse the icon that CodeServer uses for this project?
    c
    a
    • 3
    • 4
  • credentials issue
    s

    Sarthak

    05/14/2023, 9:43 PM
    Hi, My coder site is giving invalid username and password for initial user. Can anyone guide me how can i change it?
    c
    p
    • 3
    • 3
  • Local Development with coder
    a

    Akantor

    05/15/2023, 12:06 PM
    Hello there, would it be possible to run the development systems locale on the developers pc? For example I do use docker with coder and it would be really awesome to be able to start a workspace on my locale system via a cli command.
    c
    • 2
    • 1
  • Thank you for a great project!
    j

    Jeehoon Kang

    05/15/2023, 2:55 PM
    I'm using Coder for my development machine. I often need to upload/download files via SCP, but it seems coder servers are much slower than the "normal" SSH servers (e.g., 100 KiB/s vs. 10 MiB/s). I wonder if it's a known caveat. FYI, I'm using docker workspaces and comparing them with docker containers as well.
    c
    • 2
    • 1
  • RBAC for K8s workspace pod
    m

    mcdot01

    05/15/2023, 4:42 PM
    a number of weeks ago, I asked this question in this thread and got an answer to do the specification below: Thread: https://discord.com/channels/747933592273027093/1091023679967735960 Error I am getting:
    Copy code
    bash
    ✔ Cleaning Up [-10ms]
    ⧗  Detecting persistent resources 
      An argument named "service_account_name" is not expected here.
    ✔ Detecting persistent resources [10ms]
    ✘ Cleaning Up [16ms]
    template import provision for start: recv import provision: plan terraform: terraform plan: exit status 1
    Run 'coder templates push --help' for usage.
    Code in my template:
    Copy code
    resource "kubernetes_pod" "main" {
      count = data.coder_workspace.me.start_count
      metadata {
        name      = "coder-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}"
        service_account_name = "coder"
        namespace = var.namespace
        labels = {
          "app.kubernetes.io/name"     = "coder-workspace"
          "app.kubernetes.io/instance" = "coder-workspace-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}"
          "app.kubernetes.io/part-of"  = "coder"
          // Coder specific labels.
          "com.coder.resource"       = "true"
          "com.coder.workspace.id"   = data.coder_workspace.me.id
          "com.coder.workspace.name" = data.coder_workspace.me.name
          "com.coder.user.id"        = data.coder_workspace.me.owner_id
          "com.coder.user.username"  = data.coder_workspace.me.owner
        }
        annotations = {
          "com.coder.user.email" = data.coder_workspace.me.owner_email
        }
      }
    I appreciate any assistance with this issue! 🙂
    c
    m
    • 3
    • 12
  • BitBucket Server OAuth
    e

    Elio

    05/15/2023, 7:08 PM
    I am having trouble configuring git oauth with BitBucket Server. Is server supported and if so does anyone have more detailed instructions than what is listed on the page: https://coder.com/docs/v2/latest/admin/git-providers
    c
    • 2
    • 2
  • Local Coder environment - External IP stuck on pending
    l

    Lucas_DK

    05/15/2023, 8:48 PM
    I followed the guide on Deploying to Kubernetes, I did it on a local RKE2 cluster with Rancher & Longhorn configured. I can't access the containers and it looks like the loadbalancer is it at fault, since it's stuck on pending. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE coder LoadBalancer 10.43.156.193 80:30564/TCP 10m
    c
    e
    • 3
    • 14
  • Getting the template version in a Terraform template
    j

    Johan~

    05/16/2023, 3:29 PM
    I want to version my docker images using the template name and version, so I don't need to rebuild them when deploying workspaces using the same template. Would it be possible to get it using Terraform ? I try to do something like this:
    Copy code
    tf
    resource "docker_image" "main" {
      name = "coder-${data.coder_workspace.<template-name>}-${data.coder_workspace.<template_version>}"
      build {
        context = "./build"
      }
      triggers = {
        dir_sha1 = sha1(join("", [for f in fileset(path.module, "build/*") : filesha1(f)]))
      }
    }
    c
    • 2
    • 1
  • API error
    s

    Sarthak

    05/17/2023, 5:21 AM
    I'm getting session expired. It shows error - API Key is invalid. Do you know how to fix this issue?
    c
    c
    • 3
    • 3
  • Permission denied creating first template
    f

    Fuglen

    05/17/2023, 5:34 PM
    I know its been posted before but I cant find the solution. My friend got Coder working on our Ubuntu 22.04 with docker-compose. The error is:
    Copy code
    Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
    on main.tf line 21, in provider "docker":
      21: provider "docker" {
    I tried creating a "coder" user and adding it to the docker group without success. I restarted the Coder container, do I need to restart Docker itself too?
    c
    • 2
    • 3
  • The main agent didn't connect in time
    f

    Fuglen

    05/17/2023, 6:12 PM
    Just created a new Workspace from the default Docker template and getting "Connection timed out... The main agent didn't connect in time. Try restarting your workspace." in VSCode. In Coder I can see this

    https://cdn.discordapp.com/attachments/1108457001509462096/1108457001916317736/image.png▾

    c
    • 2
    • 3
  • SSH to workspace not working
    m

    mcdot01

    05/17/2023, 6:38 PM
    After logging in via a
    coder login
    we are unable to do a
    coder ssh workspace
    and are getting differing behavior depending on where we attempt this. Before I get into the demo of what is happening, a little about our setup, we're self hosting Coder (0.23.2) in our K8s cluster. To secure that cluster we utilize a zero-trust Cloudflare tunnel for the cluster's services. So a user that is trying to access the Coder UI for example will go to https://coder.ourdomain.com which will lead them to our Cloudflare page, they prove their identity either with SSO or a OTP, then Istio routes them to the service they desire. Telling Istio what to do is what the
    Host
    section of the below command is for. We believe we are doing
    coder login
    correctly given our infrastructure
    c
    • 2
    • 2
  • BitBucket Server TLS Issues
    e

    Elio

    05/18/2023, 6:52 PM
    I get this message after clicking allow on the BitBucket page. I can't tell which certificate is being complained about. Is it coder complaining about BitBucket's certificate or BitBucket complaining about coder's certificate? Both are on an internal network and have self-signed certificates

    https://cdn.discordapp.com/attachments/1108829596222242836/1108829596960424017/Screenshot_2023-05-18_at_11.49.24_AM.png▾

    • 1
    • 9
  • Use Coder Workspace Create API
    d

    dingzu

    05/25/2023, 7:44 AM
    I want to pass some parameters to Terraform when using the Workspace create API, so that I can do some tasks when starting the container. How should I do this? I am currently trying to use parameter_values and rich_parameter_values, but I don't know how to use them in the Terraform script.
    c
    s
    • 3
    • 2
  • Kind Namespace issues from within Coder workspace
    s

    Sharp

    05/27/2023, 9:54 PM
    Hey folks, completely stomped by this:
    Copy code
    E0527 21:49:26.761013 2013306 reflector.go:140] pkg/mod/k8s.io/client-go@v0.26.0/tools/cache/reflector.go:169: Failed to watch *v1.Pod: failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:coder:default" cannot list resource "pods" in API group "" at the cluster scope
    This is the output of my operator using Operator SDK, when I have a fresh kind cluster loaded. I cannot find any docs on people going through a similar problem, which makes me think its coder doing something. I am running coder on a k3s instance, this is running inside a pod which is running DIND. The image I am running is just
    codercom/enterprise-base:ubuntu
    c
    • 2
    • 6