infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
17.08k stars 1.74k forks source link

[Bug]: Uploading any pptx file leads to the abnormal termination of the `ragflow_server.py` process #878

Open dashi6174 opened 3 months ago

dashi6174 commented 3 months ago

Is there an existing issue for the same bug?

Branch name

v0.6.0

Commit ID

6c32f80bc91715319e9946cef8bc275d18f446b9

Other environment information

No response

Actual behavior

Uploading any pptx file leads to the abnormal termination of the ragflow_server.py process:

  1. Create a new knowledge base.
  2. Upload a pptx file, such as the provided abc.pptx, into the dataset of the knowledge base.
  3. Observe the ragflow_server.py process, which will have terminated with "Aborted (core dumped)." abc.pptx image

Expected behavior

No response

Steps to reproduce

none

Additional information

No response

dashi6174 commented 3 months ago

It is because the shared libraries are missing in the ragflow-server container, and the issue can be resolved by mounting the relevant dynamic libraries into the container.

      # ppt bug
      - ../mnt/libssl.so.10:/usr/lib/x86_64-linux-gnu/libssl.so.10
      - ../mnt/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
      - ../mnt/libgdiplus.so.0:/usr/lib/x86_64-linux-gnu/liblibgdiplus
      - ../mnt/libexif.so.12:/usr/lib/x86_64-linux-gnu/libexif.so.12

image

KevinHuSh commented 3 months ago

Thanks.

oom2018 commented 3 months ago

我也遇到这个问题了,我电脑上没有这些文件,则呢么整?问题不能这么解决啊

fire717 commented 2 months ago

Same error, and I've add this:

- ../mnt/libssl.so.10:/usr/lib/x86_64-linux-gnu/libssl.so.10
      - ../mnt/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
      - ../mnt/libgdiplus.so.0:/usr/local/lib/libgdiplus.so.0
      - ../mnt/libexif.so.12:/usr/lib/x86_64-linux-gnu/libexif.so.12

and I am sure I have these 4 file in host linux.

But still cannot parse ppt and got (core dumped) $PY api/ragflow_server.py

fire717 commented 2 months ago

It seems I midunderstand the host and docker order, so I try to change to:

      - /usr/lib/x86_64-linux-gnu/libssl.so.10:/usr/lib/x86_64-linux-gnu/libssl.so.10
      - /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
      - /usr/local/lib/libgdiplus.so.0:/usr/lib/x86_64-linux-gnu/liblibgdiplus
      - /usr/lib/x86_64-linux-gnu/libexif.so.12:/usr/lib/x86_64-linux-gnu/libexif.so.12

But sitll got same error.

fire717 commented 2 months ago

emm... docker -v should be dir, so why you can mount file?

It is because the shared libraries are missing in the ragflow-server container, and the issue can be resolved by mounting the relevant dynamic libraries into the container.

      # ppt bug
      - ../mnt/libssl.so.10:/usr/lib/x86_64-linux-gnu/libssl.so.10
      - ../mnt/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
      - ../mnt/libgdiplus.so.0:/usr/lib/x86_64-linux-gnu/liblibgdiplus
      - ../mnt/libexif.so.12:/usr/lib/x86_64-linux-gnu/libexif.so.12

image

fire717 commented 2 months ago

Finally work it out by change the code from v0.7.0 to dev...