openclaw - 💡(How to fix) Fix [Bug]: Bug 报告:沙箱容器启动命令错误导致无法正常工作 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70387Fetched 2026-04-23 07:25:29
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
commented ×1labeled ×1

沙箱容器启动命令被错误设置为 sleep sleep(应为 sleep infinity),导致容器立即退出,所有文件系统工具(read/write/exec)完全不可用。

Error Message

podman ps -a 输出

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6edc5c9a76c4 localhost/openclaw-sandbox:bookworm-slim sleep infinity 11 seconds ago Exited (1) 11 seconds ago openclaw-sbx-agent-main-f331f052

podman logs <容器ID> 输出

sleep: invalid time interval 'sleep' Try 'sleep --help' for more information.

read 工具返回错误

Error: can only create exec sessions on running containers: container state improper

Root Cause

沙箱容器启动命令被错误设置为 sleep sleep(应为 sleep infinity),导致容器立即退出,所有文件系统工具(read/write/exec)完全不可用。

Code Example

# podman ps -a 输出
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6edc5c9a76c4 localhost/openclaw-sandbox:bookworm-slim sleep infinity 11 seconds ago Exited (1) 11 seconds ago openclaw-sbx-agent-main-f331f052

# podman logs <容器ID> 输出
sleep: invalid time interval 'sleep'
Try 'sleep --help' for more information.

# read 工具返回错误
Error: can only create exec sessions on running containers: container state improper
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

沙箱容器启动命令被错误设置为 sleep sleep(应为 sleep infinity),导致容器立即退出,所有文件系统工具(read/write/exec)完全不可用。

Steps to reproduce

  1. 启动 OpenClaw gateway 服务
  2. 系统自动创建沙箱容器(名称格式:openclaw-sbx-*)
  3. 观察容器立即退出,状态码为 1
  4. 执行 podman logs <容器ID>,确认显示 sleep: invalid time interval 'sleep'

Expected behavior

沙箱容器应正常启动并保持运行状态,read/write/exec 工具可正常访问工作区文件(历史版本行为正确)。

Actual behavior

沙箱容器创建后立即退出(状态码 1);所有文件系统工具(read/write/exec)均返回错误:"Error: can only create exec sessions on running containers: container state improper";容器日志确认:"sleep: invalid time interval 'sleep'"。

OpenClaw version

2026.04.21

Operating system

Rocky Linux 9 (x86_64)

Install method

npm global install

Model

volcengine/ark-code-latest

Provider / routing chain

volcengine

Additional provider/model setup details

使用默认配置,无额外自定义设置

Logs, screenshots, and evidence

# podman ps -a 输出
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6edc5c9a76c4 localhost/openclaw-sandbox:bookworm-slim sleep infinity 11 seconds ago Exited (1) 11 seconds ago openclaw-sbx-agent-main-f331f052

# podman logs <容器ID> 输出
sleep: invalid time interval 'sleep'
Try 'sleep --help' for more information.

# read 工具返回错误
Error: can only create exec sessions on running containers: container state improper

Impact and severity

Affected users/systems: 所有使用 podman 作为容器运行时的 OpenClaw 部署 Severity: High(完全阻塞所有需要文件系统访问的工作流) Frequency: 每次创建沙箱容器时 100% 复现 Consequence: 无法读取/写入工作区文件、无法执行 shell 命令、无法进行代码分析和项目操作

Additional information

这是一个回归问题。最后已知正常版本:2026.4.21 及之前版本;首次发现问题版本:当前运行版本(具体版本号待确认)。无临时绕过方案,所有文件操作工具完全不可用。

extent analysis

TL;DR

The most likely fix is to correct the sandbox container launch command from sleep sleep to sleep infinity to prevent the container from exiting immediately.

Guidance

  • Verify the container launch command in the OpenClaw gateway service configuration to ensure it is set to sleep infinity.
  • Check the container logs using podman logs <containerID> to confirm the error message sleep: invalid time interval 'sleep' is resolved after applying the fix.
  • Test the file system tools (read/write/exec) after applying the fix to ensure they are functioning correctly.
  • Consider rolling back to a previous version (2026.4.21 or earlier) if the issue is confirmed to be a regression and the fix is not immediately available.

Example

No code snippet is provided as the issue is related to a configuration error rather than a code error.

Notes

The issue is specific to the OpenClaw gateway service using podman as the container runtime, and the fix should be applied to the service configuration. The issue is a regression, and the last known good version is 2026.4.21 or earlier.

Recommendation

Apply the workaround by correcting the sandbox container launch command to sleep infinity to prevent the container from exiting immediately. This is a temporary fix until a permanent solution is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

沙箱容器应正常启动并保持运行状态,read/write/exec 工具可正常访问工作区文件(历史版本行为正确)。

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Bug 报告:沙箱容器启动命令错误导致无法正常工作 [1 comments, 2 participants]