Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile errors when building image #1623

Closed
kylebuildsstuff opened this issue Dec 31, 2024 · 5 comments
Closed

Dockerfile errors when building image #1623

kylebuildsstuff opened this issue Dec 31, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@kylebuildsstuff
Copy link

kylebuildsstuff commented Dec 31, 2024

Describe the bug

Running pnpm run docker:build or docker build fails and results in this error:

645.4 • Running build in 52 packages
645.4 • Remote caching disabled
649.5 /app/node_modules/turbo/bin/turbo:273
649.5   throw e;
649.5   ^
649.5
649.5 Error: Command failed: /app/node_modules/turbo-linux-64/bin/turbo run build
649.5     at genericNodeError (node:internal/errors:983:15)
649.5     at wrappedFn (node:internal/errors:537:14)
649.5     at checkExecSyncError (node:child_process:882:11)
649.5     at Object.execFileSync (node:child_process:918:15)
649.5     at Object.<anonymous> (/app/node_modules/turbo/bin/turbo:266:17)
649.5     at Module._compile (node:internal/modules/cjs/loader:1546:14)
649.5     at Object..js (node:internal/modules/cjs/loader:1698:10)
649.5     at Module.load (node:internal/modules/cjs/loader:1303:32)
649.5     at Function._load (node:internal/modules/cjs/loader:1117:12)
649.5     at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
649.5   status: null,
649.5   signal: 'SIGKILL',
649.5   output: [ null, null, null ],
649.5   pid: 13087,
649.5   stdout: null,
649.5   stderr: null
649.5 }
649.5
649.5 Node.js v23.3.0
649.7  ELIFECYCLE  Command failed with exit code 1.
------
Dockerfile:27
--------------------
  26 |     # Install dependencies and build the project
  27 | >>> RUN pnpm install \
  28 | >>>     && pnpm build-docker \
  29 | >>>     && pnpm prune --prod
  30 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pnpm install     && pnpm build-docker     && pnpm prune --prod" did not complete successfully: exit code: 1
 ELIFECYCLE  Command failed with exit code 1.

To Reproduce

  1. Checkout on latest main branch
  2. Run pnpm run docker:build or docker build --platform linux/amd64 -t example/name:1.0.0 .

Expected behavior

Docker build should run successfully, creating a docker image

Additional context

  1. Using v0.1.7-alpha.2
  2. Running Macbook Pro M3 on Sonoma 14.1.1
  3. Running docker-compose up results in similar error related to the docker image
@kylebuildsstuff kylebuildsstuff added the bug Something isn't working label Dec 31, 2024
Copy link
Contributor

Hello @kylebuildsstuff! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@rishavmehra
Copy link

works fine on ubuntu24.04

eliza git:(main) pnpm run docker:build
 WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v18.20.5","pnpm":"9.15.0"})

> eliza@ docker:build /home/rm/Desktop/play/eliza
> bash ./scripts/docker.sh build

[+] Building 1292.2s (15/25)                                                                                docker:default
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2s
 => [builder  4/10] WORKDIR /app                                                                                      0.0s
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1s
 => [builder  6/10] COPY agent ./agent                                                                                0.0[+] Building 1292.3s (15/25)                                                                                docker:default=> [builder  7/10] COPY packages ./packages                                                                          0.1
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2s=> [builder  8/10] COPY scripts ./scripts                                                                            0.0
[+] Building 1292.5s (15/25)                                                                                docker:default=
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2s
 => [builder  4/10] WORKDIR /app                                                                                      0.0s=
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1s
 => [builder  6/10] COPY agent ./agent                                                                             [+] Building 1292.6s (15/25)                                                                                docker:defaultilder  7/10] COPY packages ./packages                                                                       
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2silder  8/10] COPY scripts ./scripts                                                                         
 => [builder  4/10] WORKDIR /app                                                                                      0.0silder  9/10] COPY characters ./characters                                                                   
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1silder 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                             
 => [builder  6/10] COPY agent ./agent                                                                          [+] Building 1292.8s (15/25)                                                                                docker:defaulter  7/10] COPY packages ./packages                                                                    
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2ser  8/10] COPY scripts ./scripts                                                                      
 => [builder  4/10] WORKDIR /app                                                                                      0.0ser  9/10] COPY characters ./characters                                                                
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1ser 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                          
 => [builder  6/10] COPY agent ./agent                                                                          [+] Building 1292.9s (15/25)                                                                                docker:defaulter  7/10] COPY packages ./packages                                                                    
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2ser  8/10] COPY scripts ./scripts                                                                      
 => [builder  4/10] WORKDIR /app                                                                                      0.0ser  9/10] COPY characters ./characters                                                                
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1ser 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                          
 => [builder  6/10] COPY agent ./agent                                                                          [+] Building 1293.1s (15/25)                                                                                docker:defaulter  7/10] COPY packages ./packages                                                                    
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2ser  8/10] COPY scripts ./scripts                                                                      
 => [builder  4/10] WORKDIR /app                                                                                      0.0ser  9/10] COPY characters ./characters                                                                
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1ser 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                          
 => [builder  6/10] COPY agent ./agent                                                                          [+] Building 1293.2s (15/25)                                                                                docker:defaulter  7/10] COPY packages ./packages                                                                    
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2ser  8/10] COPY scripts ./scripts                                                                      
 => [builder  4/10] WORKDIR /app                                                                                      0.0ser  9/10] COPY characters ./characters                                                                
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                         0.1ser 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                          
 => [builder  6/10] COPY agent ./agent                                                                                [+] Building 1293.4s (15/25)                                                                                docker:default[builder  7/10] COPY packages ./packages                                                                          
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                        0.2s[builder  8/10] COPY scripts ./scripts                                                                            
[+] Building 1724.3s (26/26) FINISHED                                                                             docker:default
 => [internal] load build definition from Dockerfile                                                                        0.0s
 => => transferring dockerfile: 1.66kB                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:23.3.0-slim                                                         5.1s
 => [internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 2B                                                                                             0.0s
 => [builder  1/10] FROM docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80  70.5s
 => => resolve docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d   0.0s
 => => sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba573db12e 3.31kB / 3.31kB                              1.9s
 => => sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a8504cbf61aa0 49.36MB / 49.36MB                           69.3s
 => => sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d 6.49kB / 6.49kB                              0.0s
 => => sha256:950fe7c1dddbf6386d6a7aa2848589aaf1c65c24bdd9a9420a25921e0d801c5b 1.93kB / 1.93kB                              0.0s
 => => sha256:8337586680c266bceef9b0ea17b4e8df1eaf471c3a9460994de16ba3ebc085a2 6.54kB / 6.54kB                              0.0s
 => => sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c80483a1f098e4f 28.23MB / 28.23MB                           19.9s
 => => sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b80eafa55 1.71MB / 1.71MB                              5.6s
 => => sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a3103 448B / 448B                                  7.9s
 => => extracting sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c80483a1f098e4f                                   0.8s
 => => extracting sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba573db12e                                   0.0s
 => => extracting sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a8504cbf61aa0                                   1.1s
 => => extracting sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b80eafa55                                   0.0s
 => => extracting sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a3103                                   0.0s
 => [internal] load build context                                                                                           0.3s
 => => transferring context: 21.81MB                                                                                        0.3s
 => [builder  2/10] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 make g++ &  487.0s
 => [stage-1  2/12] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 &&     apt  259.2s
 => [stage-1  3/12] WORKDIR /app                                                                                            0.0s
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                              0.2s
 => [builder  4/10] WORKDIR /app                                                                                            0.0s
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                               0.1s
 => [builder  6/10] COPY agent ./agent                                                                                      0.0s
 => [builder  7/10] COPY packages ./packages                                                                                0.1s
 => [builder  8/10] COPY scripts ./scripts                                                                                  0.0s
 => [builder  9/10] COPY characters ./characters                                                                            0.0s
 => [builder 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                                    907.4s
 => [stage-1  4/12] COPY --from=builder /app/package.json ./                                                                0.1s
 => [stage-1  5/12] COPY --from=builder /app/pnpm-workspace.yaml ./                                                         0.0s
 => [stage-1  6/12] COPY --from=builder /app/.npmrc ./                                                                      0.0s
 => [stage-1  7/12] COPY --from=builder /app/turbo.json ./                                                                  0.0s
 => [stage-1  8/12] COPY --from=builder /app/node_modules ./node_modules                                                   89.4s
 => [stage-1  9/12] COPY --from=builder /app/agent ./agent                                                                  0.1s
 => [stage-1 10/12] COPY --from=builder /app/packages ./packages                                                            6.6s
 => [stage-1 11/12] COPY --from=builder /app/scripts ./scripts                                                              0.0s
 => [stage-1 12/12] COPY --from=builder /app/characters ./characters                                                        0.0s
 => exporting to image                                                                                                     84.6s
 => => exporting layers                                                                                                    84.6s
 => => writing image sha256:686b96a6a9d385592124f790adaf7c0bcde59a42b4efd16d13c7d8bc47fcbf66                                0.0s
 => => naming to docker.io/library/eliza                          

@lachiejames
Copy link

lachiejames commented Jan 1, 2025

I tried to reproduce this issue but was unable to do so. Here's my environment and steps:

  1. Using latest main branch of Eliza repo
  2. Running on macOS Sequoia 15.2
  3. Running on Docker Desktop 4.36.0 (175267) with:
    • Engine: 27.3.1
    • Compose: v2.30.3-desktop.1
    • Kubernetes: v1.30.5

Before testing each command, I ran docker system prune -a to ensure a clean environment.

The build completed successfully using:

✅ pnpm run docker:build
> bash ./scripts/docker.sh build

[+] Building 559.9s (26/26) FINISHED                                                                                                docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                0.0s
 => => transferring dockerfile: 1.66kB                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/node:23.3.0-slim                                                                                 2.0s
 => [internal] load .dockerignore                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                     0.0s
 => [builder  1/10] FROM docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d                 4.6s
 => => resolve docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d                           0.0s
 => => sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c80483a1f098e4f 28.23MB / 28.23MB                                                    1.3s
 => => sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba573db12e 3.31kB / 3.31kB                                                      0.8s
 => => sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a8504cbf61aa0 49.36MB / 49.36MB                                                    2.1s
 => => sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d 6.49kB / 6.49kB                                                      0.0s
 => => sha256:950fe7c1dddbf6386d6a7aa2848589aaf1c65c24bdd9a9420a25921e0d801c5b 1.93kB / 1.93kB                                                      0.0s
 => => sha256:8337586680c266bceef9b0ea17b4e8df1eaf471c3a9460994de16ba3ebc085a2 6.54kB / 6.54kB                                                      0.0s
 => => sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b80eafa55 1.71MB / 1.71MB                                                      2.7s
 => => sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a3103 448B / 448B                                                          1.6s
 => => extracting sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c80483a1f098e4f                                                           1.7s
 => => extracting sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba573db12e                                                           0.0s
 => => extracting sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a8504cbf61aa0                                                           1.4s
 => => extracting sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b80eafa55                                                           0.0s
 => => extracting sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a3103                                                           0.0s
 => [internal] load build context                                                                                                                   3.9s
 => => transferring context: 194.55MB                                                                                                               3.8s
 => [builder  2/10] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 make g++ &&     apt-get clean &&     60.5s
 => [stage-1  2/12] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 &&     apt-get clean &&     rm -rf   43.0s
 => [stage-1  3/12] WORKDIR /app                                                                                                                    0.0s
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                                                      0.1s 
 => [builder  4/10] WORKDIR /app                                                                                                                    0.0s 
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                                                       0.0s 
 => [builder  6/10] COPY agent ./agent                                                                                                              0.0s
 => [builder  7/10] COPY packages ./packages                                                                                                        1.7s
 => [builder  8/10] COPY scripts ./scripts                                                                                                          0.0s
 => [builder  9/10] COPY characters ./characters                                                                                                    0.0s
 => [builder 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                                                            375.0s
 => [stage-1  4/12] COPY --from=builder /app/package.json ./                                                                                        0.0s
 => [stage-1  5/12] COPY --from=builder /app/pnpm-workspace.yaml ./                                                                                 0.0s
 => [stage-1  6/12] COPY --from=builder /app/.npmrc ./                                                                                              0.0s
 => [stage-1  7/12] COPY --from=builder /app/turbo.json ./                                                                                          0.0s
 => [stage-1  8/12] COPY --from=builder /app/node_modules ./node_modules                                                                           34.0s
 => [stage-1  9/12] COPY --from=builder /app/agent ./agent                                                                                          0.0s
 => [stage-1 10/12] COPY --from=builder /app/packages ./packages                                                                                    4.8s
 => [stage-1 11/12] COPY --from=builder /app/scripts ./scripts                                                                                      0.0s
 => [stage-1 12/12] COPY --from=builder /app/characters ./characters                                                                                0.0s
 => exporting to image                                                                                                                             32.8s
 => => exporting layers                                                                                                                            32.8s
 => => writing image sha256:739bca34c132258fe3d5df45ea2968f6f9f65f9e225dcfa7f30147d86cbfdf59                                                        0.0s
 => => naming to docker.io/library/eliza                                                                                                            0.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/kus05b9hz6hdgtspm39b7pqw5

What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview 
✅ docker build --platform linux/amd64 -t example/name:1.0.0 .
[+] Building 529.4s (26/26) FINISHED                                    docker:desktop-linux
 => [internal] load build definition from Dockerfile                                    0.0s
 => => transferring dockerfile: 1.66kB                                                  0.0s
 => [internal] load metadata for docker.io/library/node:23.3.0-slim                     3.9s
 => [internal] load .dockerignore                                                       0.0s
 => => transferring context: 2B                                                         0.0s
 => [builder  1/10] FROM docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b  5.2s
 => => resolve docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4f  0.0s
 => => sha256:950fe7c1dddbf6386d6a7aa2848589aaf1c65c24bdd9a9420a25921e 1.93kB / 1.93kB  0.0s
 => => sha256:8337586680c266bceef9b0ea17b4e8df1eaf471c3a9460994de16ba3 6.54kB / 6.54kB  0.0s
 => => sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c8048 28.23MB / 28.23MB  1.7s
 => => sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba 3.31kB / 3.31kB  0.6s
 => => sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a85 49.36MB / 49.36MB  2.7s
 => => sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a1 6.49kB / 6.49kB  0.0s
 => => sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b 1.71MB / 1.71MB  3.2s
 => => sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a 448B / 448B  2.3s
 => => extracting sha256:bc0965b23a04fe7f2d9fb20f597008fcf89891de1c705ffc1c80483a1f098  1.8s
 => => extracting sha256:8663e79f65016221dc2c9981c65291318e087053b0bbfdfd122d00ba573db  0.0s
 => => extracting sha256:35a89838774a5d20bde7b044149eaf3820e081656110dec3261a8504cbf61  1.5s
 => => extracting sha256:8030ee9caa1cdc982f1a2d504c88cc8f2d6b510f5b6b911e80ecc31b80eaf  0.0s
 => => extracting sha256:e486c8868d474e29e178b268b95b679ba2abb88eab17f1e04b0912e48e3a3  0.0s
 => [internal] load build context                                                       4.3s
 => => transferring context: 194.55MB                                                   4.3s
 => [builder  2/10] RUN npm install -g [email protected] &&     apt-get update &&     apt-ge  61.5s
 => [stage-1  2/12] RUN npm install -g [email protected] &&     apt-get update &&     apt-ge  45.3s
 => [stage-1  3/12] WORKDIR /app                                                        0.0s
 => [builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                          0.2s
 => [builder  4/10] WORKDIR /app                                                        0.0s
 => [builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.  0.0s
 => [builder  6/10] COPY agent ./agent                                                  0.0s
 => [builder  7/10] COPY packages ./packages                                            1.9s
 => [builder  8/10] COPY scripts ./scripts                                              0.0s
 => [builder  9/10] COPY characters ./characters                                        0.0s
 => [builder 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --pr  348.8s
 => [stage-1  4/12] COPY --from=builder /app/package.json ./                            0.0s
 => [stage-1  5/12] COPY --from=builder /app/pnpm-workspace.yaml ./                     0.0s
 => [stage-1  6/12] COPY --from=builder /app/.npmrc ./                                  0.0s
 => [stage-1  7/12] COPY --from=builder /app/turbo.json ./                              0.0s
 => [stage-1  8/12] COPY --from=builder /app/node_modules ./node_modules               38.2s
 => [stage-1  9/12] COPY --from=builder /app/agent ./agent                              0.0s
 => [stage-1 10/12] COPY --from=builder /app/packages ./packages                        4.2s
 => [stage-1 11/12] COPY --from=builder /app/scripts ./scripts                          0.0s
 => [stage-1 12/12] COPY --from=builder /app/characters ./characters                    0.0s
 => exporting to image                                                                 30.6s
 => => exporting layers                                                                30.6s
 => => writing image sha256:8212005be51b68f213a8c8d1d9956f46f4a2e29819d3943a1a1e44a309  0.0s
 => => naming to docker.io/example/name:1.0.0                                           0.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/bbcwtnouz0rkjucdyno3jh8xp

What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview 
✅ docker compose up
[+] Building 243.0s (27/27) FINISHED                                                                                                docker:desktop-linux
 => [tee internal] load build definition from Dockerfile                                                                                            0.0s
 => => transferring dockerfile: 1.66kB                                                                                                              0.0s
 => [tee internal] load metadata for docker.io/library/node:23.3.0-slim                                                                             1.9s
 => [tee internal] load .dockerignore                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                     0.0s
 => [tee builder  1/10] FROM docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d             5.9s
 => => resolve docker.io/library/node:23.3.0-slim@sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d                           0.0s
 => => sha256:8b30809f66a6ea8896b9a5d004b4fe2cc0e8061d981d3784fb0e80a19b86ab9d 6.49kB / 6.49kB                                                      0.0s
 => => sha256:92727078ef529dac683e9c65d002e03afe22f518fa7b1ea61243fb9afd60d099 1.93kB / 1.93kB                                                      0.0s
 => => sha256:4500572b6c61ddc7f7650c6b16598e89ae174d6c09957d013bb6cd1ca5b02e22 6.56kB / 6.56kB                                                      0.0s
 => => sha256:bb3f2b52e6af242cee1bc6c19ce79e05544f8a1d13f5a6c1e828d98d2dbdc94e 28.06MB / 28.06MB                                                    2.5s
 => => sha256:815883e27b16789a3274549f7a04eee803f56188b22ba66a7370f35491d794e7 3.31kB / 3.31kB                                                      1.1s
 => => sha256:084492e6ef7a132590a5cb9369d0c4acf4dcc70cdc6253a44d53ce7d3c87e00a 49.09MB / 49.09MB                                                    2.1s
 => => sha256:7f63be1592d12361a382be8847f6720b66072fde640da7311141fa78c0b43948 1.71MB / 1.71MB                                                      3.0s
 => => sha256:1779a478c4db18d1c0eb19d5f7bde3b8270b8fcc849072950c7fabbc8c791f68 446B / 446B                                                          2.5s
 => => extracting sha256:bb3f2b52e6af242cee1bc6c19ce79e05544f8a1d13f5a6c1e828d98d2dbdc94e                                                           1.8s
 => => extracting sha256:815883e27b16789a3274549f7a04eee803f56188b22ba66a7370f35491d794e7                                                           0.0s
 => => extracting sha256:084492e6ef7a132590a5cb9369d0c4acf4dcc70cdc6253a44d53ce7d3c87e00a                                                           1.3s
 => => extracting sha256:7f63be1592d12361a382be8847f6720b66072fde640da7311141fa78c0b43948                                                           0.0s
 => => extracting sha256:1779a478c4db18d1c0eb19d5f7bde3b8270b8fcc849072950c7fabbc8c791f68                                                           0.0s
 => [tee internal] load build context                                                                                                               4.2s
 => => transferring context: 194.55MB                                                                                                               4.2s
 => [tee builder  2/10] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 make g++ &&     apt-get clean &  17.3s
 => [tee stage-1  2/12] RUN npm install -g [email protected] &&     apt-get update &&     apt-get install -y git python3 &&     apt-get clean &&     rm   10.9s
 => [tee stage-1  3/12] WORKDIR /app                                                                                                                0.0s
 => [tee builder  3/10] RUN ln -s /usr/bin/python3 /usr/bin/python                                                                                  0.1s 
 => [tee builder  4/10] WORKDIR /app                                                                                                                0.0s 
 => [tee builder  5/10] COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./                                                   0.0s 
 => [tee builder  6/10] COPY agent ./agent                                                                                                          0.0s
 => [tee builder  7/10] COPY packages ./packages                                                                                                    1.4s
 => [tee builder  8/10] COPY scripts ./scripts                                                                                                      0.0s
 => [tee builder  9/10] COPY characters ./characters                                                                                                0.0s
 => [tee builder 10/10] RUN pnpm install     && pnpm build-docker     && pnpm prune --prod                                                        137.4s
 => [tee stage-1  4/12] COPY --from=builder /app/package.json ./                                                                                    0.0s
 => [tee stage-1  5/12] COPY --from=builder /app/pnpm-workspace.yaml ./                                                                             0.0s
 => [tee stage-1  6/12] COPY --from=builder /app/.npmrc ./                                                                                          0.0s
 => [tee stage-1  7/12] COPY --from=builder /app/turbo.json ./                                                                                      0.0s
 => [tee stage-1  8/12] COPY --from=builder /app/node_modules ./node_modules                                                                       26.0s
 => [tee stage-1  9/12] COPY --from=builder /app/agent ./agent                                                                                      0.0s
 => [tee stage-1 10/12] COPY --from=builder /app/packages ./packages                                                                                5.0s
 => [tee stage-1 11/12] COPY --from=builder /app/scripts ./scripts                                                                                  0.0s
 => [tee stage-1 12/12] COPY --from=builder /app/characters ./characters                                                                            0.0s
 => [tee] exporting to image                                                                                                                       14.5s
 => => exporting layers                                                                                                                            14.5s
 => => writing image sha256:56632955b5c7e62bdd2a19d9434e2fa88c20496e36e7dc506b521d4270fe2401                                                        0.0s
 => => naming to docker.io/library/eliza-tee                                                                                                        0.0s
 => [tee] resolving provenance for metadata file                                                                                                    0.0s
[+] Running 3/3
 ✔ Network eliza_default  Created                                                                                                                   0.1s 
 ✔ Volume "eliza_tee"     Created                                                                                                                   0.0s 
 ✔ Container eliza-tee-1  Created                                                                                                                   0.3s 
Attaching to tee-1
tee-1  | 
tee-1  | > eliza@ start /app
tee-1  | > pnpm --filter "@elizaos/agent" start --isRoot
tee-1  | 
tee-1  | 
tee-1  | > @elizaos/[email protected] start /app/agent
tee-1  | > node --loader ts-node/esm src/index.ts "--isRoot"
tee-1  | 
tee-1  | (node:31) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
tee-1  | --import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
tee-1  | (Use `node --trace-warnings ...` to show where the warning was created)
tee-1  | (node:31) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
tee-1  | (Use `node --trace-deprecation ...` to show where the warning was created)
tee-1  | [ElizaLogger] Initializing with:
tee-1  |             isNode: true
tee-1  |             verbose: false
tee-1  |             VERBOSE env: undefined
tee-1  |             NODE_ENV: undefined
tee-1  |         
tee-1  |  ℹ INFORMATIONS
tee-1  |    Loading embedding settings: 
tee-1  |    {"OLLAMA_EMBEDDING_MODEL":"mxbai-embed-large"} 
tee-1  | 
tee-1  |  ℹ INFORMATIONS
tee-1  |    Loading character settings: 
tee-1  |    {"ARGV":["/usr/local/bin/node","/app/agent/src/index.ts","--isRoot"],"CWD":"/app/agent"} 
tee-1  | 
tee-1  |  ℹ INFORMATIONS
tee-1  |    Parsed settings: 
tee-1  |    {"USE_OPENAI_EMBEDDING_TYPE":"undefined","USE_OLLAMA_EMBEDDING_TYPE":"undefined","OLLAMA_EMBEDDING_MODEL":"mxbai-embed-large"} 
tee-1  | 
tee-1  | using deprecated parameters for the initialization function; pass a single object instead
tee-1  | (node:31) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
tee-1  |  ["◎ DirectClient constructor"] 
tee-1  | 
tee-1  |  ⛔ ERRORS
tee-1  |    Failed to load sqlite-vec extensions: 
tee-1  |    {} 
tee-1  | 
tee-1  |  ⛔ ERRORS
tee-1  |    Error starting agent for character Eliza: 
tee-1  |    {} 
tee-1  | 
tee-1  |  ["⛔ Error: Loadble extension for sqlite-vec not found. Was the sqlite-vec-linux-arm64 package installed?"] 
tee-1  | 
tee-1  |  ⛔ ERRORS
tee-1  |    Error starting agents: 
tee-1  |    {} 
tee-1  | 
tee-1  |  ["◎ Run `pnpm start:client` to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents. When running multiple agents, use client with different port `SERVER_PORT=3001 pnpm start:client`"] 
tee-1  | 
tee-1  |  ["✓ REST API bound to 0.0.0.0:3000. If running locally, access it at http://localhost:3000."] 
tee-1  | 

@Sergey1997
Copy link

This related to the lack of memory on the server.

For some reason, building the image requires a lot of memory. In my case, in order to build the image successfully, a minimum of 2 GB of RAM and 6 GB of swap space(so that no need to pay for the server with 4 GB RAM) is needed.

@kylebuildsstuff
Copy link
Author

Thanks for the tips.

Thought I had plenty of RAM but Docker Desktop didn't so it worked only after upping RAM and swap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants