Coder.comC
Coder.com3y ago
2 replies
Moondog

Code-server not starting anymore using `docker` template example

When I try start the workspace (even after rebuilding/deleting). I get a the
code-server
button showing as unhealthy.
When I inspect the container I see this error:
2023-07-06 16:10:31.236 [debu]  sdk request  method=POST  url=https://www.<redacted>.co.za/api/v2/workspaceagents/me/report-lifecycle  body=""
2023-07-06 16:10:31.236 [warn]  startup script failed  execution_time=2.885976ms ...
    error= run:
               github.com/coder/coder/agent.(*agent).runScript
                   /home/runner/actions-runner/_work/coder/coder/agent/agent.go:879
             - fork/exec /bin/bash: permission denied
2023-07-06 16:10:31.236 [debu]  set lifecycle state  state=start_error  last=starting

Using this template as is: https://github.com/coder/coder/tree/main/examples/templates/docker

Can also confirm that it was working just fine earlier today but randomly stopped working.
GitHub
A tool that provisions remote development environments via Terraform - coder/examples/templates/docker at main · coder/coder
coder/examples/templates/docker at main · coder/coder
Was this page helpful?