[Bug]: Always failed for parsing with Knowledge Graph mehtod
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
RAGFlow workspace code commit ID
26d3480e
RAGFlow image version
v0.15.1-132-g3894de89 slim
Other environment information
Actual behavior
ERROR: Task is abandoned after 3 times attempts.
Expected behavior
No response
Steps to reproduce
1. Select chunk method as Knowledge Graph
2. Click Parse button
3. After a while : ERROR: Task is abandoned after 3 times attempts.
Gemini and local LLM tried, same error.
Chat function works well.
Additional information
No response
Please check the backend logs docker logs -f ragflow-server.
Is there any error message?
Please check the backend logs
docker logs -f ragflow-server. Is there any error message?
2025-01-26 11:20:04,674 ERROR 18 fetch task exception Traceback (most recent call last): File "/ragflow/.venv/lib/python3.10/site-packages/pymysql/connections.py", line 649, in connect sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 824, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
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 716, in connect raise exc pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'mysql' ([Errno -3] Temporary failure in name resolution)")
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/ragflow/api/db/services/document_service.py", line 411, in update_progress cls.update_by_id(d["id"], info) 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 716, in connect raise exc peewee.OperationalError: (2003, "Can't connect to MySQL server on 'mysql' ([Errno -3] Temporary failure in name resolution)")
@KevinHuSh , please look into the above error, I tried many times to make knowledge graph method ,but failed with same error as I mentioned before.
Check the host of mysql part in conf/service_conf.yaml.
Make sure it's accessible.
Check the
hostofmysqlpart inconf/service_conf.yaml. Make sure it's accessible.
Yes mysql is accessible when using a database client to connect to it but still have this error: Begin at: Sun, 26 Jan 2025 14:59:30 GMT Duration: 488.70 s Progress: 14:59:30 Task has been received. 14:59:31 Page(1~1633): OCR started 15:01:34 Task has been received. 15:01:35 Page(1~1633): OCR started 15:05:22 Task has been received. 15:05:23 Page(1~1633): OCR started ERROR: Task is abandoned after 3 times attempts.
@KevinHuSh My PDF is large, maybe that OCR task with (1~1633) consuming too much memory to cause the failure?
Very likely.
same question