infiniflow / ragflow

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

[Bug]: can not start ragflow #1582

Open Tovi163 opened 1 month ago

Tovi163 commented 1 month ago

Is there an existing issue for the same bug?

Branch name

main

Commit ID

58e95f7

Other environment information

Linux 5.10.0-1.0.0.30 #1 SMP Wed Sep 6 10:38:35 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.9.2009 (Core)

Actual behavior

image

ragflow-server | IndentationError: unindent does not match any outer indentation level ragflow-server | [WARNING] [2024-07-18 01:58:28,934] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] Load term.freq FAIL! ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/api/ragflow_server.py", line 26, in ragflow-server | from api.apps import app ragflow-server | File "/ragflow/api/apps/init.py", line 96, in ragflow-server | client_urls_prefix = [ ragflow-server | File "/ragflow/api/apps/init.py", line 97, in ragflow-server | register_page(path) ragflow-server | File "/ragflow/api/apps/init.py", line 83, in register_page ragflow-server | spec.loader.exec_module(page) ragflow-server | File "/ragflow/api/apps/canvas_app.py", line 26, in ragflow-server | from graph.canvas import Canvas ragflow-server | File "/ragflow/graph/canvas.py", line 25, in ragflow-server | from graph.component import component_class ragflow-server | File "/ragflow/graph/component/init.py", line 13, in ragflow-server | from .duckduckgo import DuckDuckGo, DuckDuckGoParam ragflow-server | File "/ragflow/graph/component/duckduckgo.py", line 60 ragflow-server | if not duck_res: ragflow-server | ^

Expected behavior

No response

Steps to reproduce

1. download this code
2. run "cd /ragflow/docker" and run "docker compose up"

Additional information

No response

Tovi163 commented 1 month ago

After Fix, this problem remay

Tovi163 commented 1 month ago

image you need to update the docker mirror  we use command "docker compose up/down"

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

Branch name

main

Commit ID

58e95f7

Other environment information

Linux 5.10.0-1.0.0.30 #1 SMP Wed Sep 6 10:38:35 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.9.2009 (Core)

Actual behavior

image

ragflow-server | IndentationError: unindent does not match any outer indentation level ragflow-server | [WARNING] [2024-07-18 01:58:28,934] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] Load term.freq FAIL! ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/api/ragflow_server.py", line 26, in ragflow-server | from api.apps import app ragflow-server | File "/ragflow/api/apps/init.py", line 96, in ragflow-server | client_urls_prefix = [ ragflow-server | File "/ragflow/api/apps/init.py", line 97, in ragflow-server | register_page(path) ragflow-server | File "/ragflow/api/apps/init.py", line 83, in register_page ragflow-server | spec.loader.exec_module(page) ragflow-server | File "/ragflow/api/apps/canvas_app.py", line 26, in ragflow-server | from graph.canvas import Canvas ragflow-server | File "/ragflow/graph/canvas.py", line 25, in ragflow-server | from graph.component import component_class ragflow-server | File "/ragflow/graph/component/init.py", line 13, in ragflow-server | from .duckduckgo import DuckDuckGo, DuckDuckGoParam ragflow-server | File "/ragflow/graph/component/duckduckgo.py", line 60 ragflow-server | if not duck_res: ragflow-server | ^

Expected behavior

No response

Steps to reproduce

1. download this code
2. run "cd /ragflow/docker" and run "docker compose up"

Additional information

No response

KevinHuSh commented 1 month ago

Got it.