Skip to content

[Bug]: Docker container broke after 2026.5.26 upgrae #87302

Closed

Description

@AaronFaby

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Hello,

I am using the docker install per the docs (with clawdock helpers). After upgrading the container (clawdock-upgrade) the agent does not respond to messages and the following error shows up in the container logs:

openclaw-gateway-1 | 2026-05-27T13:30:02.143+00:00 [diagnostic] message dispatch completed: channel=discord sessionId=unknown sessionKey=agent:main:main source=replyResolver outcome=error duration=4ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.144+00:00 [diagnostic] message processed: channel=discord chatId=slash:408672255804047380 messageId=1509186922432430291 sessionId=unknown sessionKey=agent:main:discord:slash:408672255804047380 outcome=error duration=27ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.145+00:00 [discord] interaction handler failed: Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged.

Steps to reproduce

  1. Update container to latest 2026.5.26 image.
  2. Restart container.
  3. Attempt to chat with agent, no response.

Expected behavior

  1. Agent should respond to messages.

Actual behavior

  1. Agent never response, error appears in logs.

OpenClaw version

2026.5.26

Operating system

macOS Tahoe

Install method

docker

Model

xai/grok-4.3

Provider / routing chain

openclaw -> xai API

Additional provider/model setup details

No response

Logs, screenshots, and evidence

openclaw-gateway-1  | 2026-05-27T13:30:02.143+00:00 [diagnostic] message dispatch completed: channel=discord sessionId=unknown sessionKey=agent:main:main source=replyResolver outcome=error duration=4ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1  | 2026-05-27T13:30:02.144+00:00 [diagnostic] message processed: channel=discord chatId=slash:408672255804047380 messageId=1509186922432430291 sessionId=unknown sessionKey=agent:main:discord:slash:408672255804047380 outcome=error duration=27ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1  | 2026-05-27T13:30:02.145+00:00 [discord] interaction handler failed: Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged.

Impact and severity

Severity: High, container is completely non-functional

Additional information

No response

Activity

  1. WarrenJones commented on May 27, 2026

    @WarrenJones
  2. clawsweeper commented on May 27, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 27, 2026, 10:08 AM ET / 14:08 UTC.

    Summary
    Codex review failed: timeout.

    Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Include the exact command, prompt, or workflow that triggered it.
    • Add expected vs actual behavior.

    Next step
    Review did not complete, so no work-lane recommendation was made.

    Review details

    Best possible solution:

    Retry the Codex review after fixing the execution failure.

    Do we have a high-confidence way to reproduce the issue?

    Unclear. The review failed before ClawSweeper could establish a reproduction path.

    Is this the best way to solve the issue?

    Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.

    AGENTS.md: unclear because the file could not be read completely.

    Remaining risk / open question:

    • No close action taken because the review did not complete.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 4d099c354b69.

    Label changes

    Label changes:

    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:needs-info: Current issue advisory state selects this label.
    Evidence reviewed

    What I checked:

    • failure reason: timeout.
    • codex failure detail: Codex review failed for this issue: spawnSync codex ETIMEDOUT.
    • codex stdout: Per-item Codex failure; continuing with the rest of the shard.

    Likely related people:

    • unknown: Codex failed before it could trace repository history. (role: review did not complete; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. oOScuByOo commented on May 27, 2026

    @oOScuByOo

    Same there, gateway didn't start anymore too, stuck in a loop

  4. self-assigned this
    on May 27, 2026
  5. steipete commented on May 27, 2026

    @steipete
    Contributor

    Fixed on main in 659b5dc.

    Behavior addressed: Docker runtime images now include /app/src/agents/templates/HEARTBEAT.md, matching the packaged workspace-template resolver used after the heartbeat runtime-template split.

    Real environment tested: focused local Vitest plus Blacksmith Testbox changed gate. No fixed Docker image has been published yet.

    Exact steps or command run after this patch: pnpm test src/dockerfile.test.ts -- --reporter=verbose; git diff --check; actionlint .github/workflows/docker-release.yml; pnpm check:changed via Blacksmith Testbox tbx_01ksn8yfedm3p1sfykf0tz11v0.

    Evidence after fix: src/dockerfile.test.ts now guards both the final Dockerfile copy and the Docker Release per-arch smoke. The Docker Release workflow now runs each pushed arch image and fails before manifest creation if /app/src/agents/templates/HEARTBEAT.md is missing or the bootstrap path logs Missing workspace template:.

    Observed result after fix: focused Dockerfile tests passed, 21/21. Final pnpm check:changed passed on Testbox.

    What was not tested: a new GHCR Docker image has not been built or published from this commit yet, so the currently published 2026.5.26 / latest image may still show the original failure until the Docker release/backfill runs.

  6. steipete commented on May 27, 2026

    @steipete
    Contributor

    Fixed on current main by 659b5dc and backported to release/2026.5.27 as 7e3adcc2ebf7a7f2f30a7ab909a929f5f764d0d4.

    This was treated as a Docker release blocker/P1 because the 2026.5.26 image could fail every message dispatch with Missing workspace template: HEARTBEAT.md.

    What changed:

    • Dockerfile now copies /app/src/agents/templates into the runtime image, so /app/src/agents/templates/HEARTBEAT.md is present.
    • src/dockerfile.test.ts now guards that runtime workspace templates stay in final images.
    • .github/workflows/docker-release.yml now smoke-tests both amd64 and arm64 runtime images before manifest publish: it checks /app/src/agents/templates/HEARTBEAT.md, runs workspace bootstrap, verifies the generated workspace HEARTBEAT.md, and fails if Missing workspace template: appears.

    Verification run on both main and release/2026.5.27:

    pnpm test src/dockerfile.test.ts -- --reporter=verbose

    Result: 21/21 Dockerfile tests passed on each branch.

  7. added
    P1High-priority user-facing bug, regression, or broken workflow.
    dockerDocker and sandbox tooling
    on May 27, 2026
  8. steipete commented on May 27, 2026

    @steipete
    Contributor

    Follow-up landed on main: c0f16460d7

    Full release validation now includes the Docker runtime template regression smoke in docker_runtime_assets_preflight: it builds the final Docker runtime image, verifies /app/src/agents/templates/HEARTBEAT.md exists, starts node /app/openclaw.mjs agent ... in the container, fails on Missing workspace template:, and checks that the workspace HEARTBEAT.md was bootstrapped.

    Proof:

    • git diff --check
    • actionlint .github/workflows/docker-release.yml .github/workflows/full-release-validation.yml
    • pnpm test src/dockerfile.test.ts -- --reporter=verbose (22 tests passed)
    • .agents/skills/autoreview/scripts/autoreview --mode local (clean)
    • pnpm check:changed on Blacksmith Testbox tbx_01ksn9km4eaz4cywfd9ct9hmyj (passed)

    Leaving this issue open until the affected Docker image is rebuilt/backfilled or a new release image is verified.

  9. locked as resolved and limited conversation to collaborators on May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingdockerDocker and sandbox toolingregressionBehavior that previously worked and now fails

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions