Skip to content

[Bug]: Can't build images on ARM #298

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

Closed
1 task done
louga31 opened this issue Jul 20, 2023 · 1 comment
Closed
1 task done

[Bug]: Can't build images on ARM #298

louga31 opened this issue Jul 20, 2023 · 1 comment
Assignees
Labels
Bug Something isn't working Needs triage Needs to be reviewed by core team

Comments

@louga31
Copy link
Contributor

louga31 commented Jul 20, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The node-service image and the all-in-one image are not building on ARM64
It fails during the step: [build-node-service 6/10] RUN yarn --immutable

Here is the last lines of the buils bzdoez the error happens

#0 15.07 ➤ YN0013: │ yn@npm:3.1.1 can't be found in the cache and will be fetched from the remote registry
#0 15.10 ➤ YN0013: │ yargs-parser@npm:21.1.1 can't be found in the cache and will be fetched from the remote registry
#0 15.10 ➤ YN0013: │ yargs@npm:16.2.0 can't be found in the cache and will be fetched from the remote registry
#0 15.10 ➤ YN0013: │ yargs@npm:17.7.2 can't be found in the cache and will be fetched from the remote registry
#0 15.10 ➤ YN0013: │ yn@npm:3.1.1 can't be found in the cache and will be fetched from the remote registry
#0 15.10 ➤ YN0013: │ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry
#0 48.12 ➤ YN0000: └ Completed in 46s 677ms
#0 48.24 ➤ YN0000: ┌ Link step
#0 57.75 ➤ YN0007: │ protobufjs@npm:7.2.3 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ core-js-pure@npm:3.30.2 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ tree-sitter-json@npm:0.20.0 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ tree-sitter@npm:0.20.1 must be built because it never has been before or the last one failed
#0 57.75 ➤ YN0007: │ tree-sitter-yaml@npm:0.5.0 must be built because it never has been before or the last one failed
#0 62.34 ➤ YN0009: │ bufferutil@npm:4.0.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-e913bff3/build.log)
#0 62.70 ➤ YN0009: │ tree-sitter-yaml@npm:0.5.0 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-8757101f/build.log)
#0 62.93 ➤ YN0009: │ tree-sitter-json@npm:0.20.0 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-bda4413e/build.log)
#0 63.24 ➤ YN0009: │ utf-8-validate@npm:5.0.10 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-423b0b95/build.log)
#0 63.57 ➤ YN0009: │ tree-sitter@npm:0.20.1 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-d2bac45b/build.log)
#0 63.57 ➤ YN0000: └ Completed in 15s 335ms
#0 63.68 ➤ YN0000: Failed with errors in 1m 3s
------
Dockerfile:79
--------------------
  77 |     COPY server/node-service/ /lowcoder/node-service/app/
  78 |     WORKDIR /lowcoder/node-service/app/
  79 | >>> RUN yarn --immutable
  80 |     RUN yarn build
  81 |
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn --immutable" did not complete successfully: exit code: 1

Expected Behavior

It should build on ARM64

Steps to reproduce

DOCKER_BUILDKIT=1 docker build -f deploy/docker/Dockerfile -t lowcoderorg/lowcoder-ce-node-service --target lowcoder-ce-node-service .

or

DOCKER_BUILDKIT=1 docker build -f deploy/docker/Dockerfile -t lowcoderorg/lowcoder-ce .

On an ARM64 machine

Environment

OS: Ubuntu 22.04.2 LTS aarch64
Host: KVM Virtual Machine virt-4.2
Shell: zsh 5.8.1

Additional Information

No response

@louga31 louga31 added Bug Something isn't working Needs triage Needs to be reviewed by core team labels Jul 20, 2023
@louga31 louga31 changed the title [Bug]: <title> [Bug]: Can't build images on ARM Jul 20, 2023
@FalkWolsky FalkWolsky moved this to 🆕 New in Lowcoder Jul 20, 2023
@louga31 louga31 mentioned this issue Jul 24, 2023
8 tasks
@louga31
Copy link
Contributor Author

louga31 commented Jul 28, 2023

Fixed by #306

@louga31 louga31 closed this as completed Jul 28, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Lowcoder Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs triage Needs to be reviewed by core team
Projects
Status: Done
Development

No branches or pull requests

2 participants