Github actions suddenly failing

Context - IOC Setup where Coder templates live in a github repo in different folders and github actions validate updates to them and then push them out to our Coder instance - Github actions that we're working a week ago are suddenly failing with endless red herrings in the logs Example Output
=== ✔ Planning infrastructure [5593ms]
==> ⧗ Starting workspace
2025-07-16 02:57:14.332Z Terraform 1.12.2
2025-07-16 02:57:14.773Z coder_agent.main: Plan to create
2025-07-16 02:57:14.773Z coder_app.app: Plan to create
2025-07-16 02:57:14.773Z docker_volume.code_server_config_volume_agent: Plan to create
2025-07-16 02:57:14.773Z docker_volume.docker_data_volume: Plan to create
2025-07-16 02:57:14.773Z docker_image.custom_code_server_agent_img: Plan to create
2025-07-16 02:57:14.773Z docker_container.workspace: Plan to create
2025-07-16 02:57:14.773Z coder_app.claude-code-ui: Plan to create
2025-07-16 02:57:14.773Z coder_app.code-server: Plan to create
2025-07-16 02:57:14.853Z coder_agent.main: Creating...
2025-07-16 02:57:14.857Z coder_agent.main: Creation complete after 0s [id=93c3c770-0b92-485a-a3e8-27b0cdbda85f]
2025-07-16 02:57:14.861Z docker_volume.docker_data_volume: Creating...
2025-07-16 02:57:14.861Z docker_volume.code_server_config_volume_agent: Creating...
2025-07-16 02:57:14.861Z coder_app.app: Creating...
2025-07-16 02:57:14.864Z docker_image.custom_code_server_agent_img: Creating...
2025-07-16 02:57:14.865Z coder_app.app: Creation complete after 0s [id=5f73f7a6-d2f3-4054-8613-bb96a9475587]
2025-07-16 02:57:14.869Z docker_volume.code_server_config_volume_agent: Creation complete after 0s [id=coder-5ac48e36-2487-4690-99d6-1edeb628b088-code-server-config-agent]
2025-07-16 02:57:14.871Z docker_volume.docker_data_volume: Creation complete after 0s [id=coder-5ac48e36-2487-4690-99d6-1edeb628b088-docker-data]
2025-07-16 02:57:24.864Z docker_image.custom_code_server_agent_img: Still creating... [10s elapsed]
2025-07-16 02:57:34.865Z docker_image.custom_code_server_agent_img: Still creating... [20s elapsed]
2025-07-16 02:57:44.865Z docker_image.custom_code_server_agent_img: Still creating... [30s elapsed]
2025-07-16 02:57:54.866Z docker_image.custom_code_server_agent_img: Still creating... [40s elapsed]
2025-07-16 02:58:04.868Z docker_image.custom_code_server_agent_img: Still creating... [50s elapsed]
2025-07-16 02:58:14.869Z docker_image.custom_code_server_agent_img: Still creating... [1m0s elapsed]
2025-07-16 02:58:16.838Z docker_image.custom_code_server_agent_img: Creation errored after 1m2s
2025-07-16 02:58:16.843Z Error: Error running legacy build: process "/bin/sh -c echo \"--- Installing Claude Code UI ---\" && mkdir -p /opt/claude-code-ui && cd /opt/claude-code-ui && git clone https://github.com/siteboon/claudecodeui.git . && npm install && npm run build && chown -R 1000:1000 /opt/claude-code-ui && echo \"✓ Claude Code UI installed and built successfully\" && cd /" did not complete successfully: exit code: 1


2025-07-16 02:58:16.844Z on main.tf line 20, in resource "docker_image" "custom_code_server_agent_img":
2025-07-16 02:58:16.844Z 20: resource "docker_image" "custom_code_server_agent_img" {
2025-07-16 02:58:16.844Z
2025-07-16 02:58:16.844Z
=== ✘ Starting workspace [62591ms]
==> ⧗ Cleaning Up
=== ✘ Cleaning Up [8ms]
Encountered an error running "coder create", see "coder create --help" for more information
=== ✘ Cleaning Up [109ms]
error: watch build: terraform apply: exit status 1
Warning: Workspace creation failed. Retrying without optional parameters...
Encountered an error running "coder create", see "coder create --help" for more information
error: a workspace already exists named "ci-test-vscode-aidev01-78"
Error: Process completed with exit code 1.
=== ✔ Planning infrastructure [5593ms]
==> ⧗ Starting workspace
2025-07-16 02:57:14.332Z Terraform 1.12.2
2025-07-16 02:57:14.773Z coder_agent.main: Plan to create
2025-07-16 02:57:14.773Z coder_app.app: Plan to create
2025-07-16 02:57:14.773Z docker_volume.code_server_config_volume_agent: Plan to create
2025-07-16 02:57:14.773Z docker_volume.docker_data_volume: Plan to create
2025-07-16 02:57:14.773Z docker_image.custom_code_server_agent_img: Plan to create
2025-07-16 02:57:14.773Z docker_container.workspace: Plan to create
2025-07-16 02:57:14.773Z coder_app.claude-code-ui: Plan to create
2025-07-16 02:57:14.773Z coder_app.code-server: Plan to create
2025-07-16 02:57:14.853Z coder_agent.main: Creating...
2025-07-16 02:57:14.857Z coder_agent.main: Creation complete after 0s [id=93c3c770-0b92-485a-a3e8-27b0cdbda85f]
2025-07-16 02:57:14.861Z docker_volume.docker_data_volume: Creating...
2025-07-16 02:57:14.861Z docker_volume.code_server_config_volume_agent: Creating...
2025-07-16 02:57:14.861Z coder_app.app: Creating...
2025-07-16 02:57:14.864Z docker_image.custom_code_server_agent_img: Creating...
2025-07-16 02:57:14.865Z coder_app.app: Creation complete after 0s [id=5f73f7a6-d2f3-4054-8613-bb96a9475587]
2025-07-16 02:57:14.869Z docker_volume.code_server_config_volume_agent: Creation complete after 0s [id=coder-5ac48e36-2487-4690-99d6-1edeb628b088-code-server-config-agent]
2025-07-16 02:57:14.871Z docker_volume.docker_data_volume: Creation complete after 0s [id=coder-5ac48e36-2487-4690-99d6-1edeb628b088-docker-data]
2025-07-16 02:57:24.864Z docker_image.custom_code_server_agent_img: Still creating... [10s elapsed]
2025-07-16 02:57:34.865Z docker_image.custom_code_server_agent_img: Still creating... [20s elapsed]
2025-07-16 02:57:44.865Z docker_image.custom_code_server_agent_img: Still creating... [30s elapsed]
2025-07-16 02:57:54.866Z docker_image.custom_code_server_agent_img: Still creating... [40s elapsed]
2025-07-16 02:58:04.868Z docker_image.custom_code_server_agent_img: Still creating... [50s elapsed]
2025-07-16 02:58:14.869Z docker_image.custom_code_server_agent_img: Still creating... [1m0s elapsed]
2025-07-16 02:58:16.838Z docker_image.custom_code_server_agent_img: Creation errored after 1m2s
2025-07-16 02:58:16.843Z Error: Error running legacy build: process "/bin/sh -c echo \"--- Installing Claude Code UI ---\" && mkdir -p /opt/claude-code-ui && cd /opt/claude-code-ui && git clone https://github.com/siteboon/claudecodeui.git . && npm install && npm run build && chown -R 1000:1000 /opt/claude-code-ui && echo \"✓ Claude Code UI installed and built successfully\" && cd /" did not complete successfully: exit code: 1


2025-07-16 02:58:16.844Z on main.tf line 20, in resource "docker_image" "custom_code_server_agent_img":
2025-07-16 02:58:16.844Z 20: resource "docker_image" "custom_code_server_agent_img" {
2025-07-16 02:58:16.844Z
2025-07-16 02:58:16.844Z
=== ✘ Starting workspace [62591ms]
==> ⧗ Cleaning Up
=== ✘ Cleaning Up [8ms]
Encountered an error running "coder create", see "coder create --help" for more information
=== ✘ Cleaning Up [109ms]
error: watch build: terraform apply: exit status 1
Warning: Workspace creation failed. Retrying without optional parameters...
Encountered an error running "coder create", see "coder create --help" for more information
error: a workspace already exists named "ci-test-vscode-aidev01-78"
Error: Process completed with exit code 1.
Have gone back and forth a ton with my human brain and AI brains but at this point I wonder if it even has anything to do with Coder at all.
6 Replies
Codercord
Codercord3mo ago
Codercord
Codercord3mo ago
What are you creating this issue for?
Ryan Wiancko
Ryan WianckoOP3mo ago
Good lord this is frustrating. Part of our CI/CD is to create a temporary workspace to test everything and then clean up and delete that workspace once validation passes. My next debugging step was to remove the cleanup phase so that I could terminal into the test workspace and dive into the logs.
So I remove the cleanup phase of our pipeline and viola, validationa and everything passes instead of fails.
Like I said, the validation was failing on templates that we're passing a week ago, so I don't think this has anything to do with tempaltes or scripts, and more to do with github or some external issue. I'm happy things started working again but I still have no idea why they started to fail in the first place. Just restored the cleanup portion of the validation script that I removed and all validation checks are passing again. So something external resolved itself and I have no idea what, which means I get to sit here and wait for this thing to happen again randomly after wasting a day debugging nothing apparently.
Ryan Wiancko
Ryan WianckoOP3mo ago
After going HARD on the debug logs I think I got the the issue Run actions/upload-artifact@v4 With the provided path, there will be 2 files uploaded Artifact name is valid! Root directory input is valid! Error: Failed to CreateArtifact: Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours. More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending So nevermind me
GitHub Docs
About billing for GitHub Actions - GitHub Docs
If you want to use GitHub Actions beyond the storage or minutes included in your account, you will be billed for additional usage.
Phorcys
Phorcys2mo ago
hey @Ryan Wiancko apologies for the delay, has this worked after that usage recalculation? hey @Ryan Wiancko closing for staleness, let me know if you still need help :)
Codercord
Codercord2mo ago
@Phorcys closed the thread.

Did you find this page helpful?