ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Unable to start project

Open RubyRose2001 opened this issue 10 months ago • 0 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

RAGFlow workspace code commit ID

0.16.0

RAGFlow image version

0.16.0

Other environment information

windows

Actual behavior

F:>git clone https://github.com/infiniflow/ragflow.git Cloning into 'ragflow'... remote: Enumerating objects: 27148, done. remote: Counting objects: 100% (3120/3120), done. remote: Compressing objects: 100% (206/206), done. remote: Total 27148 (delta 2992), reused 2914 (delta 2914), pack-reused 24028 (from 3) Receiving objects: 100% (27148/27148), 70.59 MiB | 15.74 MiB/s, done. Resolving deltas: 100% (19674/19674), done.

F:>cd ragflow

F:\ragflow>docker compose -f docker/docker-compose.yml up -d time="2025-02-17T19:56:34+08:00" level=warning msg="The "HF_ENDPOINT" variable is not set. Defaulting to a blank string." time="2025-02-17T19:56:34+08:00" level=warning msg="The "MACOS" variable is not set. Defaulting to a blank string." [+] Running 65/65 ✔ ragflow Pulled 628.5s ✔ minio Pulled 9.5s ✔ redis Pulled 321.1s ✔ mysql Pulled 326.3s ✔ es01 Pulled 396.8s

[+] Running 10/10 ✔ Network docker_ragflow Created 0.3s ✔ Volume "docker_mysql_data" Created 0.0s ✔ Volume "docker_minio_data" Created 0.0s ✔ Volume "docker_redis_data" Created 0.0s ✔ Volume "docker_esdata01" Created 0.0s ✔ Container ragflow-mysql Healthy 22.1s ✔ Container ragflow-redis Started 1.6s ✔ Container ragflow-minio Started 1.6s ✔ Container ragflow-es-01 Started 1.6s ✔ Container ragflow-server Started 21.9s

F:\ragflow>$ docker logs -f ragflow-server '$' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

F:\ragflow>$ docker logs -f ragflow-server '$' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

F:\ragflow>docker logs -f ragflow-server 2025-02-17 20:07:27,098 INFO 20 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'} 2025-02-17 20:07:33,277 INFO 20 init database on cluster mode successfully 2025-02-17 20:07:44,852 INFO 20 ____ ___ ______ ______ __ / __ \ / | / // // / _ __ / // // /| | / / __ / / / // __ | | /| / / / , // ___ |/ // // __/ / // // /| |/ |/ / // ||// ||_/// // _/ |/|__/

2025-02-17 20:07:44,853 INFO 20 RAGFlow version: v0.16.0 full 2025-02-17 20:07:44,854 INFO 20 project base: /ragflow 2025-02-17 20:07:44,855 INFO 20 Current configs, from /ragflow/conf/service_conf.yaml: ragflow: {'host': '0.0.0.0', 'http_port': 9380} mysql: {'name': 'rag_flow', 'user': 'root', 'password': '', 'host': 'mysql', 'port': 3306, 'max_connections': 100, 'stale_timeout': 30} minio: {'user': 'rag_flow', 'password': '', 'host': 'minio:9000'} es: {'hosts': 'http://es01:9200', 'username': 'elastic', 'password': ''} infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'} redis: {'db': 1, 'password': '', 'host': 'redis:6379'} 2025-02-17 20:07:44,855 INFO 20 Use Elasticsearch http://es01:9200 as the doc engine. 2025-02-17 20:07:44,944 INFO 20 GET http://es01:9200/ [status:200 duration:0.087s] 2025-02-17 20:07:44,950 INFO 20 HEAD http://es01:9200/ [status:200 duration:0.004s] 2025-02-17 20:07:44,951 INFO 20 Elasticsearch http://es01:9200 is healthy. 2025-02-17 20:07:44,955 WARNING 20 Load term.freq FAIL! 2025-02-17 20:07:44,957 WARNING 20 Realtime synonym is disabled, since no redis connection. 2025-02-17 20:07:44,961 WARNING 20 Load term.freq FAIL! 2025-02-17 20:07:44,965 WARNING 20 Realtime synonym is disabled, since no redis connection. 2025-02-17 20:07:44,965 INFO 20 MAX_CONTENT_LENGTH: 134217728 2025-02-17 20:07:44,966 INFO 20 SERVER_QUEUE_MAX_LEN: 1024 2025-02-17 20:07:44,967 INFO 20 SERVER_QUEUE_RETENTION: 3600 2025-02-17 20:07:44,968 INFO 20 MAX_FILE_COUNT_PER_USER: 0 2025-02-17 20:07:50,519 INFO 20 init web data success:1.855743169784546 2025-02-17 20:07:50,520 INFO 20 RAGFlow HTTP server start... 2025-02-17 20:07:50,522 INFO 20 WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:9380
  • Running on http://172.18.0.6:9380 2025-02-17 20:07:50,523 INFO 20 Press CTRL+C to quit 2025-02-17 20:07:51,630 INFO 22 task_executor_0 log path: /ragflow/logs/task_executor_0.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'} 2025-02-17 20:07:51,967 INFO 22 init database on cluster mode successfully 2025-02-17 20:07:59,724 INFO 22 TextRecognizer det uses CPU 2025-02-17 20:07:59,814 INFO 22 TextRecognizer rec uses CPU 2025-02-17 20:07:59,841 INFO 22

/_ /_ / / / / _____ _______ / / _____ / / / __ `/ / /// / __/ | |// _ / / / / / __/ __ / / / / / // ( ) ,< / /> </ / // // / // // / / // _,///|| /_____//||_/_/_,/_/___//

2025-02-17 20:07:59,842 INFO 22 TaskExecutor: RAGFlow version: v0.16.0 full 2025-02-17 20:07:59,842 INFO 22 Use Elasticsearch http://es01:9200 as the doc engine. 2025-02-17 20:07:59,850 INFO 22 GET http://es01:9200/ [status:200 duration:0.006s] 2025-02-17 20:07:59,853 INFO 22 HEAD http://es01:9200/ [status:200 duration:0.002s] 2025-02-17 20:07:59,854 INFO 22 Elasticsearch http://es01:9200 is healthy. 2025-02-17 20:07:59,858 WARNING 22 Load term.freq FAIL! 2025-02-17 20:07:59,862 WARNING 22 Realtime synonym is disabled, since no redis connection. 2025-02-17 20:07:59,865 WARNING 22 Load term.freq FAIL! 2025-02-17 20:07:59,868 WARNING 22 Realtime synonym is disabled, since no redis connection. 2025-02-17 20:07:59,869 INFO 22 MAX_CONTENT_LENGTH: 134217728 2025-02-17 20:07:59,869 INFO 22 SERVER_QUEUE_MAX_LEN: 1024 2025-02-17 20:07:59,870 INFO 22 SERVER_QUEUE_RETENTION: 3600 2025-02-17 20:07:59,870 INFO 22 MAX_FILE_COUNT_PER_USER: 0 2025-02-17 20:07:59,876 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:07:59,877 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:07:59.876+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:08:29,907 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:08:29,908 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:08:29.906+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:08:59,938 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:08:59,939 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:08:59.937+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:09:29,969 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:09:29,971 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:09:29.969+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:10:00,001 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:10:00,002 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:10:00.000+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:10:30,032 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:10:30,034 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:10:30.031+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:11:00,064 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:11:00,065 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:11:00.063+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:11:30,083 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:11:30,084 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:11:30.082+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:12:00,114 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:12:00,116 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:12:00.113+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:12:30,146 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:12:30,147 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:12:30.145+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:13:00,177 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:13:00,178 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:13:00.176+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:13:30,208 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:13:30,210 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:13:30.208+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:14:00,240 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:14:00,241 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:14:00.239+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:14:30,272 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:14:30,273 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:14:30.271+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:14:45,981 ERROR 20 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Traceback (most recent call last): File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request() File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 854, in dispatch_request self.raise_routing_exception(req) File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 463, in raise_routing_exception raise request.routing_exception # type: ignore[misc] File "/ragflow/.venv/lib/python3.10/site-packages/flask/ctx.py", line 362, in match_request result = self.url_adapter.match(return_rule=True) # type: ignore File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 629, in match raise NotFound() from None werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. 2025-02-17 20:14:45,984 INFO 20 172.18.0.1 - - [17/Feb/2025 20:14:45] "GET / HTTP/1.1" 200 - 2025-02-17 20:14:46,364 ERROR 20 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Traceback (most recent call last): File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request() File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 854, in dispatch_request self.raise_routing_exception(req) File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 463, in raise_routing_exception raise request.routing_exception # type: ignore[misc] File "/ragflow/.venv/lib/python3.10/site-packages/flask/ctx.py", line 362, in match_request result = self.url_adapter.match(return_rule=True) # type: ignore File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 629, in match raise NotFound() from None werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. 2025-02-17 20:14:46,366 INFO 20 172.18.0.1 - - [17/Feb/2025 20:14:46] "GET /favicon.ico HTTP/1.1" 200 - 2025-02-17 20:15:00,303 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:15:00,304 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:15:00.303+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:15:30,313 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:15:30,314 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:15:30.312+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:16:00,341 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:16:00,342 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:16:00.341+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:16:30,372 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:16:30,373 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:16:30.372+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:17:00,384 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:17:00,385 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:17:00.384+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:17:30,413 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:17:30,414 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:17:30.413+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:18:00,436 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:18:00,437 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:18:00.435+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:18:30,467 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:18:30,468 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:18:30.466+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:19:00,498 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:19:00,500 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:19:00.498+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:19:30,501 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:19:30,502 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:19:30.500+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null} 2025-02-17 20:20:00,532 WARNING 22 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-17 20:20:00,534 INFO 22 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-17T20:20:00.532+08:00", "boot_at": "2025-02-17T20:07:59.841+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}

Expected behavior

Steps to reproduce

git clone https://github.com/infiniflow/ragflow.git

cd ragflow

docker compose -f docker/docker-compose.yml up -d

Additional information

No response

RubyRose2001 avatar Feb 17 '25 12:02 RubyRose2001