ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Error on Macmini M4

Open weigeloveu opened this issue 10 months ago • 3 comments

Describe your problem

 => [base 14/15] RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/chromedriver-linux64-121-0-6167-85,target=/chromedriver-linux  0.2s 
 => ERROR [base 15/15] RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps     if [ "$(uname -m)" = "x86_64" ]; then  0.2s 
------                                                                                                                                                 
 > [base 15/15] RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps     if [ "$(uname -m)" = "x86_64" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb;     elif [ "$(uname -m)" = "aarch64" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;     fi:
0.147 Selecting previously unselected package libssl1.1:arm64.
0.159 (Reading database ... 50516 files and directories currently installed.)
0.159 Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2_arm64.deb ...
0.162 Unpacking libssl1.1:arm64 (1.1.1f-1ubuntu2) ...
0.186 dpkg-deb (subprocess): cannot copy archive member from '/deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb' to decompressor pipe: unexpected end of file or stream
0.189 dpkg-deb (subprocess): decompressing archive '/deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb' (size=672566) member 'data.tar': lzma error: unexpected end of input
0.189 dpkg-deb: error: <decompress> subprocess returned error exit status 2
0.189 dpkg: error processing archive /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb (--install):
0.189  cannot copy extracted data for './usr/lib/aarch64-linux-gnu/libcrypto.so.1.1' to '/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1.dpkg-new': unexpected end of file or stream
0.191 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
0.204 Errors were encountered while processing:
0.204  /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb
------
Dockerfile:132
--------------------
 131 |     # aspose-slides on linux/arm64 is unavailable
 132 | >>> RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps \
 133 | >>>     if [ "$(uname -m)" = "x86_64" ]; then \
 134 | >>>         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb; \
 135 | >>>     elif [ "$(uname -m)" = "aarch64" ]; then \
 136 | >>>         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \
 137 | >>>     fi
 138 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c if [ \"$(uname -m)\" = \"x86_64\" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb;     elif [ \"$(uname -m)\" = \"aarch64\" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;     fi" did not complete successfully: exit code: 1

具体步骤如下

git clone <https://github.com/infiniflow/ragflow.git>
cd ragflow/
pip3 install huggingface_hub nltk
python3 download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .

执行这条构建镜像的最后一步出错了,大佬们应该如何处理啊docker build -f Dockerfile -t infiniflow/ragflow:nightly .

weigeloveu avatar Feb 19 '25 13:02 weigeloveu

What about this:

docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:nightly .

KevinHuSh avatar Feb 20 '25 04:02 KevinHuSh

What about this:

docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:nightly .

thx,i tried but still cant build

 => ERROR [base 15/15] RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps     if [ "$(uname -m)" = "x86_64" ]; then         dpkg -i /deps/  0.2s 
------                                                                                                                                                                        
 > [base 15/15] RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps     if [ "$(uname -m)" = "x86_64" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb;     elif [ "$(uname -m)" = "aarch64" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;     fi:                                        
0.121 Selecting previously unselected package libssl1.1:arm64.                                                                                                                
0.132 (Reading database ... 50516 files and directories currently installed.)
0.133 Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2_arm64.deb ...
0.134 Unpacking libssl1.1:arm64 (1.1.1f-1ubuntu2) ...
0.156 dpkg-deb (subprocess): cannot copy archive member from '/deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb' to decompressor pipe: unexpected end of file or stream
0.159 dpkg-deb (subprocess): decompressing archive '/deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb' (size=672566) member 'data.tar': lzma error: unexpected end of input
0.159 dpkg-deb: error: <decompress> subprocess returned error exit status 2
0.159 dpkg: error processing archive /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb (--install):
0.159  cannot copy extracted data for './usr/lib/aarch64-linux-gnu/libcrypto.so.1.1' to '/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1.dpkg-new': unexpected end of file or stream
0.161 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
0.169 Errors were encountered while processing:
0.169  /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb
------
Dockerfile:132
--------------------
 131 |     # aspose-slides on linux/arm64 is unavailable
 132 | >>> RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/,target=/deps \
 133 | >>>     if [ "$(uname -m)" = "x86_64" ]; then \
 134 | >>>         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb; \
 135 | >>>     elif [ "$(uname -m)" = "aarch64" ]; then \
 136 | >>>         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \
 137 | >>>     fi
 138 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c if [ \"$(uname -m)\" = \"x86_64\" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_amd64.deb;     elif [ \"$(uname -m)\" = \"aarch64\" ]; then         dpkg -i /deps/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;     fi" did not complete successfully: exit code: 1

weigeloveu avatar Feb 23 '25 12:02 weigeloveu

Same!Have you solved it?

laurenlong avatar Jun 17 '25 06:06 laurenlong