[Bug]: redis error
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
RAGFlow workspace code commit ID
0
RAGFlow image version
0
Other environment information
My system is Ubuntu `24.04.2 LTS`.
The Docker version is `27.5.1`.
The Docker Compose version is `v2.33.0`.
Here is the English translation of your message:
After downloading the code using `git clone https://github.com/infiniflow/ragflow.git` and running `cd docker && docker compose up -d`,
I checked with docker ps and all containers are running normally and passed the health checks. However, when I use the `docker logs -f ragflow-server` command,
the following error occurs, and when I try to access the web, I get a 503 error. I am using the default configuration with no changes, and I have carefully checked the Redis configuration, confirming that there are no issues.
Actual behavior
2025-02-16 01:09:48,167 INFO 29 RAGFlow version: v0.16.0 slim
2025-02-16 01:09:48,167 INFO 29 project base: /ragflow
2025-02-16 01:09:48,167 INFO 29 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-16 01:09:48,167 INFO 29 Use Elasticsearch http://es01:9200 as the doc engine.
2025-02-16 01:09:48,236 INFO 29 GET http://es01:9200/ [status:200 duration:0.068s]
2025-02-16 01:09:48,239 INFO 29 HEAD http://es01:9200/ [status:200 duration:0.002s]
2025-02-16 01:09:48,239 INFO 29 Elasticsearch http://es01:9200 is healthy.
2025-02-16 01:09:48,242 WARNING 29 Load term.freq FAIL!
2025-02-16 01:09:48,245 WARNING 29 Realtime synonym is disabled, since no redis connection.
2025-02-16 01:09:48,248 WARNING 29 Load term.freq FAIL!
2025-02-16 01:09:48,250 WARNING 29 Realtime synonym is disabled, since no redis connection.
2025-02-16 01:09:48,250 INFO 29 MAX_CONTENT_LENGTH: 134217728
2025-02-16 01:09:48,250 INFO 29 SERVER_QUEUE_MAX_LEN: 1024
2025-02-16 01:09:48,250 INFO 29 SERVER_QUEUE_RETENTION: 3600
2025-02-16 01:09:48,250 INFO 29 MAX_FILE_COUNT_PER_USER: 0
2025-02-16 01:09:50,375 INFO 30 task_executor_0 log path: /ragflow/logs/task_executor_0.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-02-16 01:09:50,606 INFO 30 init database on cluster mode successfully
2025-02-16 01:09:51,571 INFO 29 init web data success:3.2275640964508057
2025-02-16 01:09:51,572 INFO 29 RAGFlow HTTP server start...
2025-02-16 01:09:51,573 INFO 29 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-16 01:09:51,573 INFO 29 Press CTRL+C to quit
2025-02-16 01:09:55,752 INFO 30 TextRecognizer det uses CPU
2025-02-16 01:09:55,822 INFO 30 TextRecognizer rec uses CPU
2025-02-16 01:09:55,838 INFO 30
______ __ ______ __
/_ __/___ ______/ /__ / ____/ _____ _______ __/ /_____ _____
/ / / __ `/ ___/ //_/ / __/ | |/_/ _ \/ ___/ / / / __/ __ \/ ___/
/ / / /_/ (__ ) ,< / /____> </ __/ /__/ /_/ / /_/ /_/ / /
/_/ \__,_/____/_/|_| /_____/_/|_|\___/\___/\__,_/\__/\____/_/
2025-02-16 01:09:55,838 INFO 30 TaskExecutor: RAGFlow version: v0.16.0 slim
2025-02-16 01:09:55,838 INFO 30 Use Elasticsearch http://es01:9200 as the doc engine.
2025-02-16 01:09:55,843 INFO 30 GET http://es01:9200/ [status:200 duration:0.005s]
2025-02-16 01:09:55,845 INFO 30 HEAD http://es01:9200/ [status:200 duration:0.001s]
2025-02-16 01:09:55,846 INFO 30 Elasticsearch http://es01:9200 is healthy.
2025-02-16 01:09:55,849 WARNING 30 Load term.freq FAIL!
2025-02-16 01:09:55,852 WARNING 30 Realtime synonym is disabled, since no redis connection.
2025-02-16 01:09:55,855 WARNING 30 Load term.freq FAIL!
2025-02-16 01:09:55,857 WARNING 30 Realtime synonym is disabled, since no redis connection.
2025-02-16 01:09:55,857 INFO 30 MAX_CONTENT_LENGTH: 134217728
2025-02-16 01:09:55,857 INFO 30 SERVER_QUEUE_MAX_LEN: 1024
2025-02-16 01:09:55,857 INFO 30 SERVER_QUEUE_RETENTION: 3600
2025-02-16 01:09:55,858 INFO 30 MAX_FILE_COUNT_PER_USER: 0
2025-02-16 01:09:55,859 WARNING 30 RedisDB.queue_info rag_flow_svr_queue got exception: no such key
2025-02-16 01:09:55,859 INFO 30 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-16T01:09:55.859+08:00", "boot_at": "2025-02-16T01:09:55.838+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
2025-02-16 01:10:25,866 WARNING 30 RedisDB.queue_info rag_flow_svr_queue got exception: no such key
2025-02-16 01:10:25,866 INFO 30 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-16T01:10:25.865+08:00", "boot_at": "2025-02-16T01:09:55.838+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
Expected behavior
No response
Steps to reproduce
git clone https://github.com/infiniflow/ragflow.git
cd docker && docker compose up -d
Additional information
No response
I had the same problem as you。2025-02-18 10:07:22,802 WARNING 20 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-18 10:07:22,804 INFO 20 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-18T10:07:22.802+08:00", "boot_at": "2025-02-18T09:35:21.076+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
@kunge98 I have successfully deployed it via Docker. The default configuration works on both Windows and Debian systems, but it doesn't work on Ubuntu. I think the issue might be due to the configuration not being adapted for Ubuntu.
@sky22333
@kunge98 I have successfully deployed it via Docker. The default configuration works on both Windows and Debian systems, but it doesn't work on Ubuntu. I think the issue might be due to the configuration not being adapted for Ubuntu.
Could you please tell me which configurations you modified to adapt it for Ubuntu?
I had the same problem as you。2025-02-18 10:07:22,802 WARNING 20 RedisDB.queue_info rag_flow_svr_queue got exception: no such key 2025-02-18 10:07:22,804 INFO 20 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-18T10:07:22.802+08:00", "boot_at": "2025-02-18T09:35:21.076+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
Have you solved it?
i solved the redis error. i just deoployed the containers to the docker bridge network instead of the rag_network mentioned in the yml files but i cannot create / login into the app. No erros in the logs
same issue!
@xiaomeixw 我用默认配置在 Debian 系统上能成功运行