createEnvironmentInternal: placeholder gone before exec finished (containerID == envID)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- docker
- Área
- backend, infrastructure
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
环境信息
- MonkeyCode 版本:v260904
- 部署方式:私有化部署
- 宿主机 OS:debian 13
- 架构:x86_64
- Docker 版本:29.7.2, build a7dcaa6
- 触发场景:启动任务后,系统镜像构建成功,但创建开发环境时报错
问题描述
镜像构建成功、容器也成功启动,但web里报 任务已结束。在创建环境记录时出现 placeholder gone before exec finished 错误,同时发现 CreateEnvironmentSyncInternal 日志中 containerID 被误写成了 envID,怀疑是导致占位记录丢失的直接原因。
复现步骤
- 在 MonkeyCode 控制台启动一个任务
- 等待系统镜像构建完成
- 观察 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)"
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.9k
- Forks
- 743
- Merge medio
- 13 h 17 min
- PR fusionados (30 d)
- 68
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de chaitin/MonkeyCode
-
Add a One-Click Copy Button for AI Agent ResponsesPosiblemente ocupada @DhruvKhambhata la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chaitin/MonkeyCode#1437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
这个位置的停止服务,要二次确认,Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chaitin/MonkeyCode#1286 ·
Los mantenedores suelen responder en 1 día
-
官网试用明亮模式弹窗内容与背景重叠Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
chaitin/MonkeyCode#1069 ·
Los mantenedores suelen responder en 1 día
-
fix(frontend): 补充任务预览弹窗的无障碍描述Posiblemente ocupada @goalup la tomó hace 97 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
chaitin/MonkeyCode#915 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
【技能】弹窗内容溢出Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chaitin/MonkeyCode#907 ·
Los mantenedores suelen responder en 1 día
Todos los issues de chaitin/MonkeyCode
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
marmelab/react-admin#11431 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
db-ux-design-system/core-web#8655 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
stripe/react-stripe-js#728 ·
-
[Upload Grade C dataset] the pop-up changes it's size while uploading the document => Jumping effectAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
epam/statgpt-admin-frontend#305 ·
Los mantenedores suelen responder en 1 día