DocumentFilePage matching query does not exist

I have a lot of recurring errors in the logs:

mayan-app-1         | mayan.apps.documents.models.document_file_page_models.DocumentFilePage.DoesNotExist: DocumentFilePage matching query does not exist.
mayan-app-1         | [2023-10-06 10:01:48,374: ERROR/ForkPoolWorker-39] Task mayan.apps.dynamic_search.tasks.task_index_instance[a84c0354-c678-459a-8d06-37b6e1b3d551] raised unexpected: DoesNotExist('DocumentFilePage matching query does not exist.')
mayan-app-1         | Traceback (most recent call last):
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
mayan-app-1         |     R = retval = fun(*args, **kwargs)
mayan-app-1         |                  ^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
mayan-app-1         |     return self.run(*args, **kwargs)
mayan-app-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/dynamic_search/tasks.py", line 64, in task_index_instance
mayan-app-1         |     raise self.retry(exc=exception)
mayan-app-1         |           ^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/task.py", line 736, in retry
mayan-app-1         |     raise_with_context(exc)
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/dynamic_search/tasks.py", line 62, in task_index_instance
mayan-app-1         |     instance = Model._meta.default_manager.get(pk=object_id)
mayan-app-1         |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
mayan-app-1         |     return getattr(self.get_queryset(), name)(*args, **kwargs)
mayan-app-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/query.py", line 435, in get
mayan-app-1         |     raise self.model.DoesNotExist(

I’m at the initial configuration stage (adding roles, groups, metadata, etc.) I’m adding new files and deleting them for testing purposes. Should I be concerned about these errors?

The search engine updates are slower than database updates, and therefore its queue runs slower that the database backed document queues.

Uploading or creating a document creates also a task in the search system.

The error:

mayan.apps.documents.models.document_file_page_models.DocumentFilePage.DoesNotExist: DocumentFilePage matching query does not exist.
mayan.apps.dynamic_search.tasks.task_index_instance

Is expected because you deleted the document before the search task executed and the search task can’t find the document it was told to index.

1 Like

Do search engine indexing problems occur for the same reason?

mayan-app-1         | mayan.apps.documents.models.document_models.Document.DoesNotExist: Document matching query does not exist.
mayan-app-1         | [2023-10-06 11:41:47,117: ERROR/ForkPoolWorker-110] Task mayan.apps.dynamic_search.tasks.task_index_instance[96aeeae9-d8c4-490d-9dbd-6e6593890548] raised unexpected: DoesNotExist('Document matching query does not exist.')
mayan-app-1         | Traceback (most recent call last):
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
mayan-app-1         |     R = retval = fun(*args, **kwargs)
mayan-app-1         |                  ^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
mayan-app-1         |     return self.run(*args, **kwargs)
mayan-app-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/dynamic_search/tasks.py", line 64, in task_index_instance
mayan-app-1         |     raise self.retry(exc=exception)
mayan-app-1         |           ^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/task.py", line 736, in retry
mayan-app-1         |     raise_with_context(exc)
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/dynamic_search/tasks.py", line 62, in task_index_instance
mayan-app-1         |     instance = Model._meta.default_manager.get(pk=object_id)
mayan-app-1         |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
mayan-app-1         |     return getattr(self.get_queryset(), name)(*args, **kwargs)
mayan-app-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mayan-app-1         |   File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/query.py", line 435, in get
mayan-app-1         |     raise self.model.DoesNotExist(
mayan-app-1         | mayan.apps.documents.models.document_models.Document.DoesNotExist: Document matching query does not exist.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.