fix: correct coder agent architecture to arm64#413
Merged
nazia-datainn merged 4 commits intodevelopfrom Jan 1, 2026
Merged
Conversation
This fixes the workspace health issue where the Coder agent fails to start with "Exec format error" because the downloaded binary architecture doesn't match the container's actual architecture. Changes: - Update coder_agent.main.arch from "amd64" to "arm64" - Matches actual container platform running on aarch64 (ARM64) Impact: - Resolves agent connection timeout (210s) - Fixes "Exec format error" when executing coder binary - Enables workspace to reach healthy state Root Cause Analysis: The dev-server runs on ARM64 architecture (aarch64), but the template specified amd64, causing Coder to download an x86_64 binary that cannot execute on ARM64 platform. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes critical workspace health issue where the Coder agent fails to connect, causing the workspace to remain in an unhealthy state with "agent is taking too long to connect" error.
Root Cause
The Coder template specified
arch = "amd64"for the agent, but the dev-server runs on ARM64 architecture (aarch64). This caused Coder to download an x86_64 binary that cannot execute on the ARM64 platform, resulting in "Exec format error".Changes
File:
.coder/template.tf(line 148)resource "coder_agent" "main" { - arch = "amd64" + arch = "arm64" os = "linux" dir = "/workspaces/SimpleAccounts-UAE"Impact
✅ Fixes:
❌ Issues Resolved:
Testing Evidence
Before Fix:
aarch64(ARM64)amd64(x86_64)After Fix:
aarch64(ARM64)arm64(matches!)Additional Context
This issue was discovered during workspace deployment diagnostics:
Related Cleanup
Also cleaned up orphaned PostgreSQL volume data that was causing PostgreSQL 18 compatibility issues (performed separately on dev-server).
Test Plan
🤖 Generated with Claude Code