sharkymark/templates/docker-claude: workspaces start with an error because tmux is not installed
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, docker, terraform
- Lĩnh vực
- devops
Hướng nghiên cứu
Start by reading the setup_script preset and the base image configuration for registry/sharkymark/templates/docker-claude; the report identifies a failed apt-get update that prevents tmux from being installed. Check how the setup handles command failures and reproduce the workspace startup error. Done means a new workspace starts the app in tmux and the preview on port 4200 is healthy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
New workspaces from registry/sharkymark/templates/docker-claude start with an error ("agent startup script exited with an error"), and the "Preview your app" app stays unhealthy. I found this while testing #1180 on a live workspace. The cause is in the template's setup_script preset and the base image, not in #1180, so it stays after #1180 merges.
Startup error and broken Preview app
-
codercom/example-universal:ubuntuincludes a Yarn apt repository whose signing key is missing, sosudo apt-get updatefails:W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed. -
The
setup_scriptpreset runssudo apt-get update && sudo apt-get install -y tmux. Because the update fails,&&skips the install, andtmuxis never installed. -
The demo repo's
start-dev.shstarts the app in tmux sessions, so it fails with./start-dev.sh: line 106: tmux: command not found. The dev server on port 4200 never starts.
The Ubuntu repositories update correctly, and only the Yarn repository fails. Running sudo apt-get install -y tmux by itself succeeds, and after that start-dev.sh exits 0 and port 4200 returns 200.
Possible fixes:
- Do not let a failed update block the install:
sudo apt-get update || true, thensudo apt-get install -y tmux. - Fix or remove the broken Yarn repository in the image so that
apt-get updatesucceeds.
Other issues
- Chrome for the Playwright MCP server is not installed.
npx playwright install chromealso runsapt-get updateand fails withError: Failed to install chrome. TheplaywrightMCP server still shows as connected. I did not check whether its browser tools work without Chrome. - Setup script errors are hidden. The script has no
set -e, so failures partway through are ignored. Only the last command's exit code counts, so the problem only shows up at the end, attmux. - Modules are not pinned.
coder-login,dotfiles,code-server, andgit-confighave noversion, so every build uses the latest release. - README typo. "Claude CodeAI agent" appears in the frontmatter
descriptionand in the body. preview_portdefault does not match the app. The parameter defaults to3000, but the app runs on4200. The default preset sets4200, so this only matters without the preset.- Cosmetic leftovers in
main.tf. The comment "Use the docker gateway if the access URL is 127.0.0.1" appears twice (once above a commented-outentrypoint), and the agentstartup_scriptis an empty#!/bin/sh.
How it was found
The template was pushed with the #1180 changes (claude-code module 5.5.1) and a workspace was created from the default preset. The evidence comes from ~/.coder-modules/coder/claude-code/logs/post_install.log and from commands run in the workspace. The setup script and image are the same on main.
Generated with Coder Agents.
- Ngôn ngữ chính
- HCL
- Star
- 81
- Fork
- 169
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/registry
-
perplexica: deprecate or fixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
coder/registry#1142 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a stale workflow for PRsĐang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
coder/registry#1120 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/registry#1187 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenShift templateCó thể đã có người làm @Edd88-pixel đã nhận 14 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
coder/registry#1162 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: claude-code keeps stale configuration after managed settings or API key helper are disabledCó thể đã có người làm @Edd88-pixel đã nhận 20 ngày trước. Đang mở
coder/registry#1156 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của coder/registry
Issue tương tự
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
SignalK/n2k-signalk#368 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
vicharanashala/spurti#241 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
taskcluster/taskcluster#9284 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ROCm/rocm-systems#13754 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
splunk/terraform-provider-splunk#256 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày