ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? Failed to launch ragflow service from source

Open liyubo-debug opened this issue 9 months ago • 2 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

I successfully built and ran the RAGFlow Docker image locally. However, when following the guidance to launch the service ​from source code, I encountered a Redis authentication error. The Redis passport are defined in the .env file. how to solve it? `During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xpa/project/ragflow/rag/utils/redis_conn.py", line 215, in queue_consumer group_info = self.REDIS.xinfo_groups(queue_name) File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/commands/core.py", line 3810, in xinfo_groups return self.execute_command("XINFO GROUPS", name) File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/client.py", line 564, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/connection.py", line 1107, in get_connection connection.connect() File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/connection.py", line 314, in connect self.on_connect() File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/connection.py", line 379, in on_connect auth_response = self.read_response() File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/connection.py", line 546, in read_response response = self._parser.read_response(disable_decoding=disable_decoding) File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/_parsers/resp2.py", line 15, in read_response result = self._read_response(disable_decoding=disable_decoding) File "/home/xpa/project/ragflow/.venv/lib/python3.10/site-packages/valkey/_parsers/resp2.py", line 38, in _read_response raise error valkey.exceptions.AuthenticationError: AUTH called without any password configured for the default user. Are you sure your configuration is correct? 2025-03-12 16:05:14,915 ERROR 3133708 RedisDB.queue_consumer rag_flow_svr_queue got exception: AUTH called without any password configured for the default user. Are you sure your configuration is correct? Traceback (most recent call last): File "/home/xpa/project/ragflow/rag/svr/task_executor.py", line 170, in collect redis_msg = next(UNACKED_ITERATOR) StopIteration`

liyubo-debug avatar Mar 12 '25 08:03 liyubo-debug

Did your password include some special charactor? What about changing to an easy one?

KevinHuSh avatar Mar 13 '25 02:03 KevinHuSh

Did your password include some special charactor? What about changing to an easy one?

Thanks for your tip. Actually, I kept the default REDIS_PASSWORD = infini_rag_flow in the .env file. But the error is still exist.

liyubo-debug avatar Mar 13 '25 03:03 liyubo-debug

Did your password include some special charactor? What about changing to an easy one?

The same error with default docker-compose.yml

Image

IllTamer avatar Mar 25 '25 15:03 IllTamer

The same error with default docker-compose.yml

decaMinCow avatar Apr 16 '25 06:04 decaMinCow

I got this error too!

zhaoblake avatar Jun 05 '25 12:06 zhaoblake

I got this error too!

It seems that there was a conflict between my local Redis and the Docker Redis. After I uninstalled my local Redis, the error disappeared.

zhaoblake avatar Jun 05 '25 13:06 zhaoblake

Shut down your local redis will solve your problem

q451234 avatar Aug 18 '25 02:08 q451234