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

v22.0.0 arm image broken #2074

Closed
lenovouser opened this issue Apr 27, 2024 · 6 comments
Closed

v22.0.0 arm image broken #2074

lenovouser opened this issue Apr 27, 2024 · 6 comments

Comments

@lenovouser
Copy link

Environment

  • Platform: Linux & macOS
  • Docker Version: Linux: 26.1.0, build 9714adc, macOS 25.0.3, build 4debf41
  • Node.js Version: v22.0.0
  • Image Tag: node:22-alpine

Expected Behavior

It should work

Current Behavior

Linux (Cloud Server)

> docker run -it node:22-alpine sh
exec /usr/local/bin/docker-entrypoint.sh: exec format error

lscpu:

Architecture:             aarch64
  CPU op-mode(s):         32-bit, 64-bit
  Byte Order:             Little Endian
CPU(s):                   16
  On-line CPU(s) list:    0-15
Vendor ID:                ARM
  BIOS Vendor ID:         QEMU
  Model name:             Neoverse-N1
    BIOS Model name:      NotSpecified
    Model:                1
    Thread(s) per core:   1
    Core(s) per socket:   16
    Socket(s):            1
    Stepping:             r3p1
    BogoMIPS:             50.00
    Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
NUMA:
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-15

macOS

> docker run -it node:22-alpine sh
/ # node
...hangs forever

lscpu:

Architecture:           armv7l
  Byte Order:           Little Endian
CPU(s):                 8
  On-line CPU(s) list:  0-7
Vendor ID:              Apple
  Model name:           -
    Model:              0
    Thread(s) per core: 1
    Core(s) per socket: 8
    Socket(s):          1
    Stepping:           0x0
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint
@sameignatovich
Copy link

Also i found what command corepack enable not working (it's just stuck)

@lpgera
Copy link

lpgera commented Apr 27, 2024

I'm experiencing similar issues with the arm64 version of the 22-slim image on GitHub Actions, so it's not just the alpine version that's broken:

exec /bin/sh: exec format error

@lenovouser lenovouser changed the title v22.0.0 alpine arm image broken v22.0.0 arm image broken Apr 27, 2024
@LaurentGoderre
Copy link
Member

LaurentGoderre commented Apr 27, 2024

Confirmed for alpine but slim works for me:

docker run -it node:22-slim sh  
Unable to find image 'node:22-slim' locally
22-slim: Pulling from library/node
Digest: sha256:dd35b71aa2abfac78734d1a2bc70416228444619c1f46239e09d3201bb4d8bc8
Status: Downloaded newer image for node:22-slim
# node
Welcome to Node.js v22.0.0.
Type ".help" for more information.
> console.log('test');
test

@LaurentGoderre
Copy link
Member

LaurentGoderre commented Apr 27, 2024

This doesn't affect amd64. Until the problem is solvedm, you could get around by using docker run --platform linux/amd64

@LaurentGoderre
Copy link
Member

LaurentGoderre commented Apr 27, 2024

The issue is that the arm64v8 arch don't exist...yet. (Not sure why atm). So it falls back to using the arm32v7 arch which hangs.

So we have two issues here. Fix the arm64 builds and fix the arm32 image.

@tianon
Copy link
Contributor

tianon commented Apr 29, 2024

FWIW, the downstream infrastructure issues are fixed (and so the arm64 builds are available now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants