Coder.com

C

Coder.com

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

Join

help

📢︱announcements

Can't start built-in postgres

I'm getting an error saying that i can't start postgres when i try to start coder

AWS AMI works for a while then stops

Hey everyone 👋 newbie to Coder v2 here. Having a small issue and was hoping for some help I deploy Coder v2 to an AWS EC2 instance, this works initially for a few hours, but eventually the site redirects /login to /setup to create new account. After a couple minutes, I then get the following error: {"message":"Peer is not connected."}...

Shared ports still not working in OSS

I've updated to the latest version of Coder and I still get the same issue as in the picture below. Was apparently fixed here: https://github.com/coder/coder/issues/13259...
No description

OFF REGION infor, STUN, Proxy -> Coder internal Lan network only

Can i Set up and deploy Coder, In the infractructure which not have internet. Assume that i already have all needed image or local register for docker container. cannot access to google, proxy, and not have any exporter domain.

Running `vkcube` in a Docker workspace

https://discord.com/channels/747933592273027093/971231372373033030/1236981138455531562 / https://discord.com/channels/747933592273027093/971231372373033030/1239601013162508328 --- Hi @Phorcys I'm still having problems running vkcube, can not understand why nvidia gpu is not selected. Any other tip to make it work?...

Cannot publish template to Coder via CLI

From https://discord.com/channels/747933592273027093/971231372373033030/1240063511124508822 --- Any ideas why uploading a template using seems to succeed all the way to cleaning up then...

i have issues with terraform ubuntu server initial coder setup

``` Error: Invalid provider registry host The host "registry.terraform.io" given in provider source address "registry.terraform.io/coder/coder" does not offer a Terraform provider registry....

Coder on Windows

I manage a coder instance for my work group, and love it so much I decided to install it on my Windows desktop to help organize different development environments. However I've ran up against some problems that perhaps someone else has seen before and can suggest some fixes. I followed the directions in the docs, using winget and after updating the path manually (the installer complains about a path length) I could bring up a console and coder server was up and running in no time. I logged into the instance and set my user account up, and selected one of the starter templates (Docker containers) as my default, and tried to create a workspace, but get the following error:...

coder agent using token auth

Hi, I'm trying to start a coder agent using libvirt/KVM (not in a public cloud) and am having some challenges getting the coder agent to authenticate to my self-hosted coderd. In my terraform I use a remote-exec provisioner to do the init, like this: ```...

Remote access Coder with VSCode

Hi guys im new to Coder i want to remote access to my Coder server from VSCode app i read about Extension but im missing something to run it or theres other way to make it work Also i try to access to dev.coder.com it shows me unauthorized when trying to connect with GitHub...

cannot get caddy server to run as a service

caddy will not run by default. and when done manually i don’t get an error and seems to still not work. $systemctl status caddy × caddy.service - Caddy Loaded: loaded (/usr/lib/systemd/system/caddy.service; enabled; preset: enabled)...
Solution:
Hi. Regarding the issues you are getting with running Coder and now caddy as system services. I advice you to run coder using this method https://github.com/coder/coder/tree/main/examples/web-server/caddy#with-docker-compose...

What is the CLI command to edit a file using code-server?

Normally I would use code <filename> in VSCode, is there an equivalent with code-server?
Solution:
@John King it's code-server <filename> https://github.com/coder/code-server/issues/164#issuecomment-683707810 so you can alias code="code-server"...

Coder in VSCode sometimes stuck on embedded relay and not switching to peer-to-peer

This is a follow up from https://discord.com/channels/747933592273027093/971231372373033030/1236740492172071127 To sum it up again: Some days my VSCode almost immediately switches to peer-to-peer, others it's stuck on the coder embedded relay all day long. My network doesn't change, my firewall settings don't change, my coder server doesn't change. As for vscode extension version I'm not aware if there's a connection as that updates automatically in the background, but since it's been an on-off thing and not a one time "oh it broke" situation I'd assume it has nothing to do with the extension either. Not unlikely that some external factors like my ISP having a bad day are the cause of this, but I have no idea how I would approach debugging this....

github authentication

I'm trying to use devcontainers (on GCP VM). It appears the devcontainer setup only supports cloning using https. However, for private repos I can't get github authentication to work. In the coder web dashboard I can see I've connected github to my coder account....
Solution:
export CODER_EXTERNAL_AUTH_0_ID="something-github" export CODER_EXTERNAL_AUTH_0_TYPE="github" export CODER_EXTERNAL_AUTH_0_CLIENT_ID=some_id export CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=some_secret...

Allow everyone from OIDC

Hi. I am trying to allow everyone from my OpenID Connect. Since we self host our openid, we would like to allow everyone who login from there. How can we achieve that? Thanks!

invalid character '<' looking for beginning of value

Running coder command line tool on macos I keep getting the above error for most commands (e.g. coder templates push) coder --version Coder v2.10.2+a11b169 Mon Apr 22 20:27:37 UTC 2024 https://github.com/coder/coder/commit/a11b1690298cb067b26b06de530d4b3f886efad1...

Websocket issues with code-server

Hello there, I'm running a Coder deployment on tailscale. I am starting to experience some websocket issues when I launch code-server. I've attached the console logs that I see, and also the error that appears in code-server. Any clues as to what could be causing the problem? Are there any logs I can provide to locate the issue?
No description

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