Skip to content

[Bug]: Fail to startup RAGFlow #4124

Closed
Closed
@peiqi00001

Description

@peiqi00001

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

1233

RAGFlow image version

5115122

Other environment information

启动时一直陷入以下循环

Actual behavior

  ____   ___    ______ ______ __               
   / __ \ /   |  / ____// ____// /____  _      __
  / /_/ // /| | / / __ / /_   / // __ \| | /| / /
 / _, _// ___ |/ /_/ // __/  / // /_/ /| |/ |/ / 
/_/ |_|/_/  |_|\____//_/    /_/ \____/ |__/|__/                             

2024-12-19 17:02:00,166 INFO 439 RAGFlow version: v0.14.1 full
2024-12-19 17:02:00,166 INFO 439 project base: /ragflow
2024-12-19 17:02:00,166 INFO 439 Current configs, from /ragflow/conf/service_conf.yaml:
ragflow: {'host': '0.0.0.0', 'http_port': 9380}
mysql: {'name': 'rag_flow', 'user': 'root', 'password': 'infini_rag_flow', 'host': 'mysql', 'port': 3306, 'max_connections': 100, 'stale_timeout': 30}
minio: {'user': 'rag_flow', 'password': 'infini_rag_flow', 'host': 'minio:9000'}
es: {'hosts': 'http://es01:9200', 'username': 'elastic', 'password': 'infini_rag_flow'}
infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'}
redis: {'db': 1, 'password': 'infini_rag_flow', 'host': 'redis:6379'}
2024-12-19 17:02:00,166 INFO 439 Use Elasticsearch http://es01:9200 as the doc engine.
2024-12-19 17:02:00,176 INFO 439 GET http://es01:9200/ [status:200 duration:0.008s]
2024-12-19 17:02:00,180 INFO 439 HEAD http://es01:9200/ [status:200 duration:0.003s]
2024-12-19 17:02:00,180 INFO 439 Elasticsearch http://es01:9200 is healthy.
2024-12-19 17:02:00,188 WARNING 439 Load term.freq FAIL!
2024-12-19 17:02:00,194 WARNING 439 Realtime synonym is disabled, since no redis connection.
2024-12-19 17:02:00,201 WARNING 439 Load term.freq FAIL!
2024-12-19 17:02:00,206 WARNING 439 Realtime synonym is disabled, since no redis connection.
Traceback (most recent call last):
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3232, in connect
self._state.set_connection(self._connect())
File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 76, in inner
return fn(self, *args, **kwargs)
File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 169, in _connect
conn = super(PooledDatabase, self)._connect()
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 4201, in _connect
conn = mysql.connect(db=self.database, autocommit=True,
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 361, in init
self.connect()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 669, in connect
self._request_authentication()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 957, in _request_authentication
auth_packet = self._read_packet()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1524, "Plugin 'mysql_native_password' is not loaded")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/ragflow/api/ragflow_server.py", line 80, in
init_web_db()
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3127, in inner
with ConnectionContext(self.db):
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3122, in enter
self.db.connect()
File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 121, in connect
return super(PooledDatabase, self).connect(reuse_if_open)
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3231, in connect
with exception_wrapper:
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3059, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 192, in reraise
raise value.with_traceback(tb)
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3232, in connect
self._state.set_connection(self._connect())
File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 76, in inner
return fn(self, *args, **kwargs)
File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 169, in _connect
conn = super(PooledDatabase, self)._connect()
File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 4201, in _connect
conn = mysql.connect(db=self.database, autocommit=True,
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 361, in init
self.connect()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 669, in connect
self._request_authentication()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 957, in _request_authentication
auth_packet = self._read_packet()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
peewee.OperationalError: (1524, "Plugin 'mysql_native_password' is not loaded")
2024-12-19 17:02:03,651 INFO 578 ragflow_server log path: /ragflow/logs/ragflow_server.log
2024-12-19 17:02:10,858 INFO 578 init database on cluster mode successfully
2024-12-19 17:02:20,773 WARNING 20 RedisDB.queue_info rag_flow_svr_queue got exception: no such key
2024-12-19 17:02:20,774 INFO 20 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2024-12-19T17:02:20.773378", "boot_at": "2024-12-19T17:01:50.704858", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
2024-12-19 17:02:28,724 INFO 578

Expected behavior

No response

Steps to reproduce

____   ___    ______ ______ __               
       / __ \ /   |  / ____// ____// /____  _      __
      / /_/ // /| | / / __ / /_   / // __ \| | /| / /
     / _, _// ___ |/ /_/ // __/  / // /_/ /| |/ |/ / 
    /_/ |_|/_/  |_|\____//_/    /_/ \____/ |__/|__/                             

    
2024-12-19 17:02:00,166 INFO     439 RAGFlow version: v0.14.1 full
2024-12-19 17:02:00,166 INFO     439 project base: /ragflow
2024-12-19 17:02:00,166 INFO     439 Current configs, from /ragflow/conf/service_conf.yaml:
        ragflow: {'host': '0.0.0.0', 'http_port': 9380}
        mysql: {'name': 'rag_flow', 'user': 'root', 'password': 'infini_rag_flow', 'host': 'mysql', 'port': 3306, 'max_connections': 100, 'stale_timeout': 30}
        minio: {'user': 'rag_flow', 'password': 'infini_rag_flow', 'host': 'minio:9000'}
        es: {'hosts': 'http://es01:9200', 'username': 'elastic', 'password': 'infini_rag_flow'}
        infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'}
        redis: {'db': 1, 'password': 'infini_rag_flow', 'host': 'redis:6379'}
2024-12-19 17:02:00,166 INFO     439 Use Elasticsearch http://es01:9200 as the doc engine.
2024-12-19 17:02:00,176 INFO     439 GET http://es01:9200/ [status:200 duration:0.008s]
2024-12-19 17:02:00,180 INFO     439 HEAD http://es01:9200/ [status:200 duration:0.003s]
2024-12-19 17:02:00,180 INFO     439 Elasticsearch http://es01:9200 is healthy.
2024-12-19 17:02:00,188 WARNING  439 Load term.freq FAIL!
2024-12-19 17:02:00,194 WARNING  439 Realtime synonym is disabled, since no redis connection.
2024-12-19 17:02:00,201 WARNING  439 Load term.freq FAIL!
2024-12-19 17:02:00,206 WARNING  439 Realtime synonym is disabled, since no redis connection.
Traceback (most recent call last):
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3232, in connect
    self._state.set_connection(self._connect())
  File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 76, in inner
    return fn(self, *args, **kwargs)
  File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 169, in _connect
    conn = super(PooledDatabase, self)._connect()
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 4201, in _connect
    conn = mysql.connect(db=self.database, autocommit=True,
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__
    self.connect()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 669, in connect
    self._request_authentication()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 957, in _request_authentication
    auth_packet = self._read_packet()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
    packet.raise_for_error()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1524, "Plugin 'mysql_native_password' is not loaded")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/ragflow/api/ragflow_server.py", line 80, in <module>
    init_web_db()
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3127, in inner
    with ConnectionContext(self.db):
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3122, in __enter__
    self.db.connect()
  File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 121, in connect
    return super(PooledDatabase, self).connect(reuse_if_open)
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3231, in connect
    with __exception_wrapper__:
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3059, in __exit__
    reraise(new_type, new_type(exc_value, *exc_args), traceback)
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 192, in reraise
    raise value.with_traceback(tb)
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3232, in connect
    self._state.set_connection(self._connect())
  File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 76, in inner
    return fn(self, *args, **kwargs)
  File "/ragflow/.venv/lib/python3.10/site-packages/playhouse/pool.py", line 169, in _connect
    conn = super(PooledDatabase, self)._connect()
  File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 4201, in _connect
    conn = mysql.connect(db=self.database, autocommit=True,
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__
    self.connect()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 669, in connect
    self._request_authentication()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 957, in _request_authentication
    auth_packet = self._read_packet()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
    packet.raise_for_error()
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
peewee.OperationalError: (1524, "Plugin 'mysql_native_password' is not loaded")
2024-12-19 17:02:03,651 INFO     578 ragflow_server log path: /ragflow/logs/ragflow_server.log
2024-12-19 17:02:10,858 INFO     578 init database on cluster mode successfully
2024-12-19 17:02:20,773 WARNING  20 RedisDB.queue_info rag_flow_svr_queue got exception: no such key
2024-12-19 17:02:20,774 INFO     20 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2024-12-19T17:02:20.773378", "boot_at": "2024-12-19T17:01:50.704858", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": null}
2024-12-19 17:02:28,724 INFO     578

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions