Coder.com

C

Coder.com

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

Join

Accessing Self-Hosted Coder Server Through ZeroTier VPN

I have set up a self-hosted Coder server on our internal workstation server machines. Currently, we can access the workspaces through the tunnel https://<GUID>.pit-1.try.coder.app/. However, I would also like to access the Coder server through our ZeroTier VPN. ZeroTier is an encrypted, layer-2-stretch multipoint VPN with integrated firewalling capability. I believe it should be possible to access our self-hosted Coder server using the IP address provided by our ZeroTier network. However, after reading the Coder documentation (https://coder.com/docs/v2/latest/admin/configure), I'm unable to find the necessary information to configure this setup. Has anyone successfully set up a self-hosted Coder server to be accessible through a VPN? If so, could you please provide guidance on how to achieve this configuration?...

when auto running a “open in coder” the required git authentication is not triggered

When I do open in coder and prompt for the parameters. Then the required git authentication is checked and asks the user to login. Auto run skips this....

Cannot upgrade Heroku one click install

See screenshots. How do I fix the sudo problem?
No description

Cannot fix Heroku one click install misconfiguration.

Please see attached. How do I resolve the warnings from Coder. I did one click install. And I’m unsure how to change what they want.
Solution:
It was done a while ago. I will go through this next week to see if we need to update the method
No description

Adding custom nuget package source to template

Hey, I want to add a new nuget package source to my .NET8 template (following this: https://github.com/dotnet/dotnet-docker/blob/main/documentation/scenarios/nuget-credentials.md) but when I try to create a new file in my template, I get the following error (see picture). Is there a way that I can add a private nuget source securely to an image?
No description

What is the best way to keep installed system packages?

I use ubuntu as my base docker image. In a lot of workspaces I install additional system packages via apt. When I use codespaces and install packages there, they stay on even after a restart. What is the best way to keep them? One way would be to use the personalized file right? Any other/better way without user interference?...

Create default Admin user without UI

Looking for a bit of guidance, I am deploying Coder on a Kubernetes cluster with the Helm Chart, and wondered if there was an env variable that sets the default admin user credentials?
Solution:
Try with ```shell coder login \ --first-user-username coder-admin \ --first-user-email [email protected] ...

external auth not working properly

I've tried my best to configure both the github auth, and the github external authentication for access of private repo's. However after configuring everything, it seems that my external authentication isnt working properly... as It says it got an error. I dont get what I can do to fix this?...
No description

Is the external auth gone?

Hi there, For some reason, the external auth step in the workspace creation is gone for me. As mentioned in the documentation, there should be a "Git authentication" part in the setup of a new workspace. But for some reason it's gone from my instance. I still have this part in my template code: ```tf...
No description

coder + cloudflare tunnel (Linux debian)

As the title suggests, I've been trying to get this to work with no look. If anyone has any advice, I would greatly appreciate it. ...

How does the coder_script terraform resource work?

I have a script that I need to run when the workspace has stopped/deleted to delete some resources from another k8s cluster. I add it as a resource to the template and set “run_on_stop” to true and set the agent id to the one of the workspace but when I stop/delete a workspace it doesn’t run. Am I missing something in the setup?...

Templates and Github

Is it at all possible to push changes made to templates via Coder’s template editor UI to Github? There’s documentation (https://coder.com/docs/v2/latest/templates/change-management and https://coder.com/blog/keeping-templates-up-to-date) about using CI/CD to push changes to git-managed templates to Coder. Since editing templates is possible via the UI, is it possible to push changes made in the UI to Github?

Error on getting the build logs

Everything is working as expected with the exception of receiving "Error on getting the build logs" when performing an action on a workspace (docker container) in the UI I note on the frontend in console WebSocket connection to 'wss://<MY DOMAIN>/api/v2/workspaceagents/ba345d10-1986-4879-8747-32a2dd4e67b7/logs?follow&after=0' failed ...

SSH direct connection

Hello! First, I'm no sysadmin or anything, so please bear with my ignorance. I'm trying to setup coder on my lab's server, and everything has gone great for now, except that I don't seem to be able to establish a direct connection. I connect to the web UI through a SSH tunnel, so for instance the terminal app of my workspace works perfectly fine (from 127.0.0.1:3000/@username/workspace_name.agent_name). However, when doing ssh coder.workspace_name after a coder config-ssh in my local ter...

Issues with DNS and AWS NLB pointing to EKS

Having an issue with DNS not updating for my coder isntance. So my coder instance produces this stack trace: Using route53 to manage hosted zone for the sub domain while the main domain is hosted at godaddy. Pointing using the NS for the hosted zone. TLS listener for NLB for terminating https and pointing http to coder server. Error: User is not authenticated. at si (https://coder.realdecoy.com/assets/index-635f8de7.js:264:2648) at A7e (https://coder.realdecoy.com/assets/index-635f8de7.js:264:8733) at eO (https://coder.realdecoy.com/assets/index-635f8de7.js:45:19551)...

Pre-installing VS code extensions in coder workspace

I would like to pre-install VS code extensions in a workspace template so that everyone on my team will automatically have them when they create a new workspace. It's possible to install extensions via the command line with the code command, but this command is not available in the startup script for the coder agent. I tried the following hacky solution: ```...

Coder in VPN settings, Slack repost

Hi! First of all, I am new to coder and networking is not my strength... How do I configure coder if the access-url is only reachable from within the network? Meaning that users need to connect via a VPN to the network and can then reach the address. Any help would be appreciated! 🙂

code-server stopped loading after upgrading coder to 2.8.1

Previous version: 2.7.2 code-server version: 4.20.1 : This is as same before the upgrade I use this to start code-server: code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & When I open the coder resource I get 502 error- Failed to proxy request to application: proxyconnect tcp: dial context: connect tcp [fd7a:115c:a1e0:481e:b8c0:a53:c24:11b4]:8080: connection was refused ...
Solution:
I've stumbled upon this as well and I think I found the solution. We're using Microsoft VSCode (not code-server by Coder) - currently Visual Studio Code 1.87.0 The VSCode web button stopped working: ...

Create workspace API endpoint stops working after upgrading Coder

I upgraded my Coder deployment from version 2.0.2 to 2.8.1 (yes i know huge jump). The create workspace endpoint used to worked fine through my application / manually through curl or postman. After upgrading, I'm getting the following error message ``` { "message": "Validation failed.",...
No description

Docker in Docker docker-compose volume

Hi, I have a Docker in Docker setup with a git repo inside that has a docker-compose.yml. One of the containers has a volume that maps the current folder to a folder inside the container. The issue is that using a Docker in Docker setup, the current folder "." is mapped to the host (which not exists), not the current workspace container. volumes: - '.:/var/www/html' ...