[GH-ISSUE #159] Build Docker hf3fs-dev image failed #92

Open
opened 2026-10-26 09:44:57 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @Hansyangxingxiang on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/159

docker build -t hf3fs-dev -f dockerfile/dev.dockerfile .

Step 6/10 : ARG FDB_ARCH_SUFFIX
---> Using cache
---> 40337c0f0904
Step 7/10 : RUN case "${TARGETARCH}" in amd64) FDB_ARCH_SUFFIX="amd64" ;; arm64) FDB_ARCH_SUFFIX="aarch64" ;; *) echo "Unsupported architecture: ${TARGETARCH}"; exit 1 ;; esac && FDB_CLIENT_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && FDB_SERVER_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && wget -q "${FDB_CLIENT_URL}" && wget -q "${FDB_SERVER_URL}" && dpkg -i foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && dpkg -i foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && rm foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb
---> Running in 2499ede3208c
/bin/bash: line 1: TARGETARCH: unbound variable
The command '/bin/bash -euo pipefail -c case "${TARGETARCH}" in amd64) FDB_ARCH_SUFFIX="amd64" ;; arm64) FDB_ARCH_SUFFIX="aarch64" ;; *) echo "Unsupported architecture: ${TARGETARCH}"; exit 1 ;; esac && FDB_CLIENT_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && FDB_SERVER_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && wget -q "${FDB_CLIENT_URL}" && wget -q "${FDB_SERVER_URL}" && dpkg -i foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && dpkg -i foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && rm foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb' returned a non-zero code: 1

Originally created by @Hansyangxingxiang on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/159 docker build -t hf3fs-dev -f dockerfile/dev.dockerfile . Step 6/10 : ARG FDB_ARCH_SUFFIX ---> Using cache ---> 40337c0f0904 Step 7/10 : RUN case "${TARGETARCH}" in amd64) FDB_ARCH_SUFFIX="amd64" ;; arm64) FDB_ARCH_SUFFIX="aarch64" ;; *) echo "Unsupported architecture: ${TARGETARCH}"; exit 1 ;; esac && FDB_CLIENT_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && FDB_SERVER_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && wget -q "${FDB_CLIENT_URL}" && wget -q "${FDB_SERVER_URL}" && dpkg -i foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && dpkg -i foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && rm foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb ---> Running in 2499ede3208c /bin/bash: line 1: TARGETARCH: unbound variable The command '/bin/bash -euo pipefail -c case "${TARGETARCH}" in amd64) FDB_ARCH_SUFFIX="amd64" ;; arm64) FDB_ARCH_SUFFIX="aarch64" ;; *) echo "Unsupported architecture: ${TARGETARCH}"; exit 1 ;; esac && FDB_CLIENT_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && FDB_SERVER_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb" && wget -q "${FDB_CLIENT_URL}" && wget -q "${FDB_SERVER_URL}" && dpkg -i foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && dpkg -i foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb && rm foundationdb-clients_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb foundationdb-server_${FDB_VERSION}-1_${FDB_ARCH_SUFFIX}.deb' returned a non-zero code: 1
Author
Owner

@Hansyangxingxiang commented on GitHub (Mar 12, 2025):

After resolving the aforementioned issue, the following error is reported:

Selecting previously unselected package foundationdb-server.
(Reading database ... 40242 files and directories currently installed.)
Preparing to unpack foundationdb-server_7.3.63-1_amd64.deb ...
Unpacking foundationdb-server (7.3.63) ...
Setting up foundationdb-server (7.3.63) ...
/etc/init.d/foundationdb: line 40: 84 Illegal instruction (core dumped) start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- --conffile /etc/foundationdb/foundationdb.conf --lockfile $PIDFILE --daemonize
Illegal instruction (core dumped)
dpkg: error processing package foundationdb-server (--install):
installed foundationdb-server package post-installation script subprocess returned error exit status 132
Errors were encountered while processing:
foundationdb-server

<!-- gh-comment-id:2716896136 --> @Hansyangxingxiang commented on GitHub (Mar 12, 2025): After resolving the aforementioned issue, the following error is reported: Selecting previously unselected package foundationdb-server. (Reading database ... 40242 files and directories currently installed.) Preparing to unpack foundationdb-server_7.3.63-1_amd64.deb ... Unpacking foundationdb-server (7.3.63) ... Setting up foundationdb-server (7.3.63) ... /etc/init.d/foundationdb: line 40: 84 Illegal instruction (core dumped) start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- --conffile /etc/foundationdb/foundationdb.conf --lockfile $PIDFILE --daemonize Illegal instruction (core dumped) dpkg: error processing package foundationdb-server (--install): installed foundationdb-server package post-installation script subprocess returned error exit status 132 Errors were encountered while processing: foundationdb-server
Author
Owner

@Lawliet828 commented on GitHub (Mar 13, 2025):

Please provide your machine information, such as kernel version and machine architecture

<!-- gh-comment-id:2719557416 --> @Lawliet828 commented on GitHub (Mar 13, 2025): Please provide your machine information, such as kernel version and machine architecture
Author
Owner

@Hansyangxingxiang commented on GitHub (Mar 14, 2025):

machine is VM:
arch
x86_64

OS:ubuntu20.04.1

uname -a
Linux i-2wzugf30 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

<!-- gh-comment-id:2723354800 --> @Hansyangxingxiang commented on GitHub (Mar 14, 2025): machine is VM: arch x86_64 OS:ubuntu20.04.1 uname -a Linux i-2wzugf30 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Author
Owner

@Lawliet828 commented on GitHub (Mar 17, 2025):

I can't reproduce the issue by ECS :(

Image
<!-- gh-comment-id:2728052344 --> @Lawliet828 commented on GitHub (Mar 17, 2025): I can't reproduce the issue by ECS :( <img width="1680" alt="Image" src="https://github.com/user-attachments/assets/3ad14152-8298-4172-8a8e-594f8ea85b1f" />
Author
Owner

@Hansyangxingxiang commented on GitHub (Mar 25, 2025):

I resolved the issue through the following modifications:
https://github.com/deepseek-ai/3FS/pull/208

<!-- gh-comment-id:2750288386 --> @Hansyangxingxiang commented on GitHub (Mar 25, 2025): I resolved the issue through the following modifications: https://github.com/deepseek-ai/3FS/pull/208
Author
Owner

@Hansyangxingxiang commented on GitHub (Apr 9, 2025):

/etc/init.d/foundationdb: line 40: 84 Illegal instruction (core dumped) start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- --conffile /etc/foundationdb/foundationdb.conf --lockfile $PIDFILE --daemonize
Illegal instruction (core dumped)

The error occurs because FoundationDB has specific CPU instruction set requirements.

<!-- gh-comment-id:2788885460 --> @Hansyangxingxiang commented on GitHub (Apr 9, 2025): /etc/init.d/foundationdb: line 40: 84 Illegal instruction (core dumped) start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- --conffile /etc/foundationdb/foundationdb.conf --lockfile $PIDFILE --daemonize Illegal instruction (core dumped) The error occurs because FoundationDB has specific CPU instruction set requirements.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#92
No description provided.