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

Build Docker hf3fs-dev image failed #159

Open
Hansyangxingxiang opened this issue Mar 12, 2025 · 5 comments
Open

Build Docker hf3fs-dev image failed #159

Hansyangxingxiang opened this issue Mar 12, 2025 · 5 comments

Comments

@Hansyangxingxiang
Copy link
Contributor

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

@Hansyangxingxiang
Copy link
Contributor Author

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

@Lawliet828
Copy link
Contributor

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

@Hansyangxingxiang
Copy link
Contributor Author

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

@Lawliet828
Copy link
Contributor

Lawliet828 commented Mar 17, 2025

I can't reproduce the issue by ECS :(

Image

@Hansyangxingxiang
Copy link
Contributor Author

I resolved the issue through the following modifications:
#208

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

2 participants