Skip to content

rpm AARCH64 installer has x86_64 binary #7738

@smerschjohann

Description

@smerschjohann

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: irrelevant
  • Local OS: -
  • Remote OS: Fedora
  • Remote Architecture: aarch64
  • code-server --version: 4.113.0 (rpm installer)

I install it in a container image (downgrade to 4.112.0 fixes it directly)

Docker setup:
[...]
[3/3] STEP 3/9: ARG CODE_SERVER_VERSION=v4.113.0
--> 4df84b99fee8
[3/3] STEP 4/9: USER root
--> c298ff7491ed
[3/3] STEP 5/9: RUN curl -LO https://github.com/coder/code-server/releases/download/${CODE_SERVER_VERSION}/code-server-${CODE_SERVER_VERSION#v}-${TARGETARCH}.rpm && dnf install -y code-server*.rpm && rm code-server*.rpm && dnf install -y openssh-server && dnf clean all && rm -rf /var/cache/yum
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

7 139M 7 10.1M 0 0 29.6M 0 0:00:04 --:--:-- 0:00:04 29.6M
73 139M 73 101M 0 0 75.8M 0 0:00:01 0:00:01 --:--:-- 91.6M
100 139M 100 139M 0 0 85.5M 0 0:00:01 0:00:01 --:--:-- 100M
Updating and loading repositories:
Fedora 43 openh264 (From Cisco) - aarc 100% | 3.7 KiB/s | 5.8 KiB | 00m02s
Fedora 43 - aarch64 - Updates 100% | 6.1 MiB/s | 10.9 MiB | 00m02s
Fedora 43 - aarch64 100% | 14.2 MiB/s | 34.2 MiB | 00m02s
Repositories loaded.
Total size of inbound packages is 139 MiB. Need to download 0 B.
Package Arch Version Repository Size
Installing:
code-server aarch64 4.113.0-1 @commandline 527.5 MiB

Transaction Summary:
Installing: 1 package

After this operation, 527 MiB extra will be used (install 527 MiB, remove 0 B).
Running transaction
[1/3] Verify package files 100% | 3.0 B/s | 1.0 B | 00m00s
[2/3] Prepare transaction 100% | 24.0 B/s | 1.0 B | 00m00s
[3/3] Installing code-server-0:4.113.0- 100% | 358.1 MiB/s | 527.5 MiB | 00m01s
[...]

running the container leads to:

x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

which is a qemu error, triggered by the wrong architecture for the binary

A further investigation also confirms it:

[d0e02e399785 /]$ rpm -qa |grep code-server
code-server-4.113.0-1.aarch64
[d0e02e399785 /]$ file /usr/lib/code-server/lib/node
/usr/lib/code-server/lib/node: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=88528a344cb9f708718e084e7b8ed3364d2483c4, for GNU/Linux 3.2.0, with debug_info, not stripped, too many notes (256)

Steps to Reproduce

  1. use a fedora base image
  2. install rpm package on aarch64
  3. check via file tool

Expected

node is a aarch64 binary

Actual

node is a amd64 / x86_64 binary

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in VS Code web?

This cannot be tested in VS Code web

Does this bug reproduce in GitHub Codespaces?

This cannot be tested in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions