Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Always failed for parsing with Knowledge Graph mehtod #4639

Open
1 task done
Dyson-Ido opened this issue Jan 24, 2025 · 8 comments
Open
1 task done

[Bug]: Always failed for parsing with Knowledge Graph mehtod #4639

Dyson-Ido opened this issue Jan 24, 2025 · 8 comments
Labels
🐞 bug Something isn't working, pull request that fix bug.

Comments

@Dyson-Ido
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

26d3480

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

@Dyson-Ido Dyson-Ido added the 🐞 bug Something isn't working, pull request that fix bug. label Jan 24, 2025
@KevinHuSh
Copy link
Collaborator

Please check the backend logs docker logs -f ragflow-server.
Is there any error message?

@Dyson-Ido
Copy link
Author

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)")

@Dyson-Ido
Copy link
Author

@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.

@KevinHuSh
Copy link
Collaborator

KevinHuSh commented Jan 26, 2025

Check the host of mysql part in conf/service_conf.yaml.
Make sure it's accessible.

@Dyson-Ido
Copy link
Author

Check the host of mysql part in conf/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(11633): OCR started 15:01:34 Task has been received. 15:01:35 Page(11633): 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.

@Dyson-Ido
Copy link
Author

@KevinHuSh My PDF is large, maybe that OCR task with (1~1633) consuming too much memory to cause the failure?

@KevinHuSh
Copy link
Collaborator

Very likely.

@qiufeihong2018
Copy link
Contributor

same question

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working, pull request that fix bug.
Projects
None yet
Development

No branches or pull requests

3 participants