Aaron Taylor
CCoder.com
•Created by Aaron Taylor on 3/14/2025 in #help
coder machines not shutting down in the expected manner after user inactivity
How is "inactivity" detected for coder instances? We have been working to reduce costs of coder instances and noticed that in some cases, coder machines will not shut down when we expect them to. What constitutes "inactivity" as described here: https://coder.com/docs/user-guides/workspace-scheduling and is there any guidance on how we can debug what prevented an instance from shutting down?
3 replies
CCoder.com
•Created by Aaron Taylor on 7/1/2024 in #help
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:
Are there any tools available to debug this? One workaround I've seen is to change some of the machine parameters that cause it to be re-created, e.g. it's size, but that's rather annoying to have to do.
3 replies
CCoder.com
•Created by Aaron Taylor on 6/12/2024 in #help
Coder envbuilder container starts logging 401 errors when using "Update" option
I am seeing an issue where when I use the "Update" option in the coder dashboard after a template change, the coder process get stuck in this state, where it gets 401 errors trying to talk to the coder agent URL. The issue is resolved by using the "Restart" option instead.
I am using "token" authentication with the coder agent, with config passed to the container for the auth as :
9 replies
CCoder.com
•Created by Aaron Taylor on 6/11/2024 in #help
Persisting container state across workspace restarts
I am working on setting up development environments with envbuilder, and I would like to emulate the behavior of GitHub Codespaces, where a container is only re-created during a "rebuild" which is distinct from a "restart" in their system. The motivation for this is to persist dotfiles changes that the user may have made.
Is there a way to do this? I've been through https://coder.com/docs/templates/resource-persistence and tried disabling the "count" parameter on the coder_agent terraform resource in the template, but the container is still being re-created.
12 replies