Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

createEnvironmentInternal: placeholder gone before exec finished (containerID == envID)

オープン
#1,372 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker

調査の方向性

Start by tracing createEnvironmentInternal and CreateEnvironmentSyncInternal through the placeholder lifecycle, using the reported logs to compare envID with the real Docker container ID. Reproduce the task startup flow with Docker and verify that the placeholder is updated only after creation completes, with no placeholder-gone error and the real container ID retained.

索引モデルが issue の本文から書いたものです。

説明

环境信息
  • MonkeyCode 版本:v260904
  • 部署方式:私有化部署
  • 宿主机 OS:debian 13
  • 架构:x86_64
  • Docker 版本:29.7.2, build a7dcaa6
  • 触发场景:启动任务后,系统镜像构建成功,但创建开发环境时报错
问题描述

镜像构建成功、容器也成功启动,但web里报 任务已结束。在创建环境记录时出现 placeholder gone before exec finished 错误,同时发现 CreateEnvironmentSyncInternal 日志中 containerID 被误写成了 envID,怀疑是导致占位记录丢失的直接原因。

复现步骤
  1. 在 MonkeyCode 控制台启动一个任务
  2. 等待系统镜像构建完成
  3. 观察 Agent 日志,环境创建阶段出现该错误
期望行为

环境创建流程正常完成,占位记录被正确更新为真实环境记录,无 error 日志。

实际行为

环境最终 任务已结束 状态。

关键日志

(从 05:08:21 构建成功开始,到 05:08:29 环境 running 结束)

time="2026-10-04T05:08:21Z" level=info msg="BuildImageForAgent: Successfully built image: codingmatrix-agent:linux-amd64-90bafb08-643c-4d86-aa3f-5190fd7f382f"
time="2026-10-04T05:08:21Z" level=info msg="Successfully built agent image: codingmatrix-agent:linux-amd64-90bafb08-643c-4d86-aa3f-5190fd7f382f"
time="2026-10-04T05:08:22Z" level=info msg="Container init enabled (Tini) to prevent zombie processes"
time="2026-10-04T05:08:22Z" level=info msg="Resource description: &{CPU:2 Memory:8589934592}"
time="2026-10-04T05:08:22Z" level=info msg="Setting memory limit to 8589934592 (8589934592 bytes)"
time="2026-10-04T05:08:22Z" level=info msg="Setting CPU limit to 2 (2000000000 nanoseconds)"
time="2026-10-04T05:08:22Z" level=info msg="Creating Docker container for agent: 6c9b4ca5-291d-4db6-994b-7b192f02b405"
time="2026-10-04T05:08:22Z" level=info msg="Successfully created container with ID: 5cdf3e291f9cb96a168815b3a44deb6de36ed92a554e82750472484d125cdb07"
time="2026-10-04T05:08:22Z" level=info msg="Starting Docker container: 5cdf3e291f9cb96a168815b3a44deb6de36ed92a554e82750472484d125cdb07"
time="2026-10-04T05:08:23Z" level=info msg="Successfully started container: 5cdf3e291f9cb96a168815b3a44deb6de36ed92a554e82750472484d125cdb07"
time="2026-10-04T05:08:23Z" level=info msg="CreateEnvironmentSyncInternal completed for envId: 90bafb08-643c-4d86-aa3f-5190fd7f382f, containerID: 90bafb08-643c-4d86-aa3f-5190fd7f382f, err: <nil>"
time="2026-10-04T05:08:23Z" level=error msg="createEnvironmentInternal: no creating env record for envId=90bafb08-643c-4d86-aa3f-5190fd7f382f (placeholder gone before exec finished)"
time="2026-10-04T05:08:23Z" level=debug msg="Started tracking environment: 90bafb08-643c-4d86-aa3f-5190fd7f382f"
time="2026-10-04T05:08:23Z" level=info msg="Started tracking environment 90bafb08-643c-4d86-aa3f-5190fd7f382f for heartbeat"
time="2026-10-04T05:08:23Z" level=info msg="Successfully created environment 90bafb08-643c-4d86-aa3f-5190fd7f382f with container 90bafb08-643c-4d86-aa3f-5190fd7f382f"
time="2026-10-04T05:08:29Z" level=info msg="Environment 90bafb08-643c-4d86-aa3f-5190fd7f382f is now running (was unknown)"
主要言語
TypeScript
スター
4.9k
フォーク
743
平均マージ
16時間 8分
マージ済み PR(30日)
54

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

chaitin/MonkeyCode のほかの issue

chaitin/MonkeyCode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。