openclaw icon indicating copy to clipboard operation
openclaw copied to clipboard

[Bug]: docker install "./docker-setup.sh" happen => ERROR [12/14] RUN CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build

Open Ericshen2019 opened this issue 10 months ago • 10 comments

Summary

What went wrong?

Steps to reproduce

  1. Git clone repo to my ubuntu server
  2. run "./docker-setup.sh

Expected behavior

What did you expect to happen?

Install success, i can use "docker ps" to see my moltbot run

Actual behavior

What actually happened?

=> ERROR [12/14] RUN CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build

Environment

  • Clawdbot version:Clawdbot 2026.1.24
  • OS:Ubuntu 24.04
  • Install method (pnpm/npx/docker/etc):docker

Logs or screenshots

Paste relevant logs or add screenshots (redact secrets).

name@myubuntu:~/docker/moltbot$ sudo ./docker-setup.sh
==> Building Docker image: moltbot:local
[+] Building 52.9s (16/18)                                                                                                                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                                        0.0s
 => => transferring dockerfile: 1.18kB                                                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:22-bookworm                                                                                                                                                                         0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                           0.0s
 => => transferring context: 483B                                                                                                                                                                                                           0.0s
 => [ 1/14] FROM docker.io/library/node:22-bookworm@sha256:cd7bcd2e7a1e6f72052feb023c7f6b722205d3fcab7bbcbd2d1bfdab10b1e935                                                                                                                 0.1s
 => => resolve docker.io/library/node:22-bookworm@sha256:cd7bcd2e7a1e6f72052feb023c7f6b722205d3fcab7bbcbd2d1bfdab10b1e935                                                                                                                   0.0s
 => [internal] load build context                                                                                                                                                                                                           0.5s
 => => transferring context: 222.76kB                                                                                                                                                                                                       0.5s
 => CACHED [ 2/14] RUN curl -fsSL https://bun.sh/install | bash                                                                                                                                                                             0.0s
 => CACHED [ 3/14] RUN corepack enable                                                                                                                                                                                                      0.0s
 => CACHED [ 4/14] WORKDIR /app                                                                                                                                                                                                             0.0s
 => CACHED [ 5/14] RUN if [ -n "" ]; then       apt-get update &&       DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends  &&       apt-get clean &&       rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*;   0.0s
 => CACHED [ 6/14] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./                                                                                                                                                           0.0s
 => CACHED [ 7/14] COPY ui/package.json ./ui/package.json                                                                                                                                                                                   0.0s
 => CACHED [ 8/14] COPY patches ./patches                                                                                                                                                                                                   0.0s
 => CACHED [ 9/14] COPY scripts ./scripts                                                                                                                                                                                                   0.0s
 => CACHED [10/14] RUN pnpm install --frozen-lockfile                                                                                                                                                                                       0.0s
 => [11/14] COPY . .                                                                                                                                                                                                                        1.4s
 => ERROR [12/14] RUN CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build                                                                                                                                                                              50.6s
------                                                                                                                                                                                                                                           
 > [12/14] RUN CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build:                                                                                                                                                                                          
1.136                                                                                                                                                                                                                                            
1.136 > [email protected] build /app                                                                                                                                                                                                      
1.136 > pnpm canvas:a2ui:bundle && tsc -p tsconfig.json && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts                                     
1.136                                                                                                                                                                                                                                            
1.874 
1.874 > [email protected] canvas:a2ui:bundle /app
1.874 > bash scripts/bundle-a2ui.sh
1.874 
1.894 A2UI sources missing; keeping prebuilt bundle.
50.21 src/discord/targets.ts(8,8): error TS2305: Module '"../channels/targets.js"' has no exported member 'DirectoryConfigParams'.
50.22 src/discord/targets.ts(9,8): error TS2305: Module '"../channels/targets.js"' has no exported member 'ChannelDirectoryEntry'.
50.39  ELIFECYCLE  Command failed with exit code 1.
------
Dockerfile:27
--------------------
  25 |     
  26 |     COPY . .
  27 | >>> RUN CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build
  28 |     # Force pnpm for UI build (Bun may fail on ARM/Synology architectures)
  29 |     ENV CLAWDBOT_PREFER_PNPM=1
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c CLAWDBOT_A2UI_SKIP_MISSING=1 pnpm build" did not complete successfully: exit code: 1

Ericshen2019 avatar Jan 28 '26 05:01 Ericshen2019

src/discord/targets.ts(84,54): error TS2559: Type 'DirectoryConfigParams' has no properties in common with type 'MessagingTargetParseOptions'. this bug is still after commit 61ab348dd3e0170a762f1563bb4d5f0c346670f9

secret-deus avatar Jan 28 '26 05:01 secret-deus

The TS2559 type mismatch mentioned by @secret-deus is now tracked in #3167.

yerbymatey avatar Jan 28 '26 06:01 yerbymatey

the same today impossible to build docker images is there a workaround - e.g. I should checkout previous version from git?

eleaner avatar Jan 29 '26 16:01 eleaner

Please use our support server https://molt.bot/discord and ask in #help or #users-helping-users to resolve this, or follow the stuck FAQ at https://docs.molt.bot/help/faq#im-stuck-whats-the-fastest-way-to-get-unstuck.

openclaw-barnacle[bot] avatar Jan 30 '26 16:01 openclaw-barnacle[bot]

Having the same error. Anyone got the solution to this?

SantoshSrinivas79 avatar Feb 01 '26 04:02 SantoshSrinivas79

Just a note in case it's helpful about https://github.com/openclaw/openclaw/issues/3146#issuecomment-3830368389 I think memory availability is a problem. I freed up memory on my Ubuntu VPS and installed Work just fine

SantoshSrinivas79 avatar Feb 01 '26 05:02 SantoshSrinivas79

Also getting this error on a fresh Debian 13 VPS. @SantoshSrinivas79 How much memory does it actually need?

pdarcos avatar Feb 02 '26 20:02 pdarcos

the same today impossible to build docker images is there a workaround - e.g. I should checkout previous version from git?

Good question. I wish these was a fix or work around for this.

I don't think it is a low memory problem since docker needs about 2GB of RAM to build without errors and I have 4GB in my vps and still get the error everytime.

I don't understand why this issue was closed when it seems to affect everyone trying to run docker?

pdarcos avatar Feb 02 '26 21:02 pdarcos


✅ Update: build is working now on my side

After updating the repo and rebuilding with --no-cache, the Docker image builds successfully.

Steps I used:

cd ~/openclaw
git fetch --tags origin
git pull --ff-only
git submodule update --init --recursive

docker build --no-cache -t openclaw:local .
✅ Successful build log (docker build --no-cache -t openclaw:local .)
(base) root@DESKTOP-5QRD15U:~/openclaw# docker build --no-cache -t openclaw:local .
[+] Building 216.8s (13/18)                                                                                                                                                                       docker:default
[+] Building 217.1s (13/18)                                                                                                                                                                       docker:default
[+] Building 217.3s (13/18)                                                                                                                                                                       docker:default
[+] Building 218.8s (13/18)                                                                                                                                                                       docker:default
[+] Building 218.9s (13/18)                                                                                                                                                                       docker:default
[+] Building 221.5s (13/18)                                                                                                                                                                       docker:default
[+] Building 221.6s (13/18)                                                                                                                                                                       docker:default
[+] Building 221.8s (13/18)                                                                                                                                                                       docker:default
[+] Building 238.3s (13/18)                                                                                                                                                                       docker:default
[+] Building 238.4s (13/18)                                                                                                                                                                       docker:default
[+] Building 608.3s (19/19) FINISHED                                                                                                                                                              docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                        0.0s
 => => transferring dockerfile: 1.61kB                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:22-bookworm                                                                                                                                         3.6s
 => [internal] load .dockerignore                                                                                                                                                                           0.1s
 => => transferring context: 483B                                                                                                                                                                           0.0s
 => CACHED [ 1/14] FROM docker.io/library/node:22-bookworm@sha256:cd7bcd2e7a1e6f72052feb023c7f6b722205d3fcab7bbcbd2d1bfdab10b1e935                                                                          0.0s
 => [internal] load build context                                                                                                                                                                           0.4s
 => => transferring context: 4.56MB                                                                                                                                                                         0.3s
 => [ 2/14] RUN curl -fsSL https://bun.sh/install | bash                                                                                                                                                   18.6s
 => [ 3/14] RUN corepack enable                                                                                                                                                                             0.6s
 => [ 4/14] WORKDIR /app                                                                                                                                                                                    0.1s
 => [ 5/14] RUN if [ -n "" ]; then       apt-get update &&       DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends  &&       apt-get clean &&       rm -rf /var/lib/apt/lists/* /v  0.4s
 => [ 6/14] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./                                                                                                                                  0.1s
 => [ 7/14] COPY ui/package.json ./ui/package.json                                                                                                                                                          0.1s
 => [ 8/14] COPY patches ./patches                                                                                                                                                                          0.1s
 => [ 9/14] COPY scripts ./scripts                                                                                                                                                                          0.1s
 => [10/14] RUN pnpm install --frozen-lockfile                                                                                                                                                            407.0s
 => [11/14] COPY . .                                                                                                                                                                                        0.9s
 => [12/14] RUN OPENCLAW_A2UI_SKIP_MISSING=1 pnpm build                                                                                                                                                    19.1s
 => [13/14] RUN pnpm ui:build                                                                                                                                                                               2.2s
 => [14/14] RUN chown -R node:node /app                                                                                                                                                                   147.7s
 => exporting to image                                                                                                                                                                                      7.4s
 => => exporting layers                                                                                                                                                                                     7.4s
 => => writing image sha256:a4338e3379729351bb921a8597933cba67e4e388850a52a0a9a856305ccf0d9f                                                                                                                0.0s
 => => naming to docker.io/library/openclaw:local

wcelll avatar Feb 03 '26 06:02 wcelll

Also getting this error on a fresh Debian 13 VPS. @SantoshSrinivas79 How much memory does it actually need?

I believe I had around 8GB free when I built it

SantoshSrinivas79 avatar Feb 03 '26 17:02 SantoshSrinivas79