Igor Zimmer
CCoder.com
•Created by Igor Zimmer on 4/7/2025 in #help
Is there any way to persist files when restarting a coder workspace?
I’m using coder_agent, and in the startup_script, I have logic that clones a Git repo and runs yarn install. The problem is that the yarn install step takes about 10 minutes, which significantly slows down workspace startup.
However, I only really need this to run the first time the workspace is created — not every time it’s restarted.
I tried adding a check like this:
But the condition always returns false (the repo isn't present). Is there a recommended way to run expensive setup steps only on initial workspace creation, and skip them on restarts?
Thanks in advance!
30 replies
CCoder.com
•Created by Igor Zimmer on 3/12/2025 in #help
Installed Coder, but can't connect to code-server with VSCode
I just recently installed Coder with the docker-compose.yaml file, it's running on an EC2 instance, in a private subnet that I connect with the Cloudflare ZTNA VPN. I can connect to it, create a template and start a workspace, the problem is, when I try to connect to Coder with VSCode, it tries for a long time then I get this error:
OpenSSH_9.9p1, OpenSSL 3.3.2 3 Sep 2024
Connection closed by UNKNOWN port 65535
local-server-1> ssh child died, shutting down
[19:54:15.318] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped.
[19:54:15.319] Failed to parse remote port from server output
[19:54:15.324] Resolver error: Error: ...
11 replies