I have migrated to the latest version of mayan edms however I am unable to reindex my search backend.
The search status shows that indexing has stopped, it doesnt continue after sometime.
I see a lot of errors thrown by rabbitmq. How would I fix my search?
Below is the link for the rabbitmq log
https://drive.google.com/file/d/12LZZq2x4IzA3gHntpReT41qPOAt4c29z/view?usp=sharing
I have deleted the woosh folder in the mayan_app volume and now I get an error after intializing search and trying to reindex. Here is the error.
Task mayan.apps.dynamic_search.tasks.task_reindex_backend[7a554ce9-eed1-4682-9237-7f0df2a54d81] raised unexpected: PermissionError(13, 'Permission denied')
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/mayan-edms/lib/python3.9/site-packages/celery/app/trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/dynamic_search/tasks.py", line 157, in task_reindex_backend
search_backend.reset()
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/dynamic_search/backends/whoosh.py", line 483, in reset
self.tear_down(search_model=search_model)
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/dynamic_search/backends/whoosh.py", line 494, in tear_down
self._clear_search_model_index(search_model=search_model)
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/dynamic_search/backends/whoosh.py", line 210, in _clear_search_model_index
self._get_storage().create_index(
File "/opt/mayan-edms/lib/python3.9/site-packages/whoosh/filedb/filestore.py", line 150, in create_index
return indexclass.create(self, schema, indexname)
File "/opt/mayan-edms/lib/python3.9/site-packages/whoosh/index.py", line 425, in create
TOC.create(storage, schema, indexname)
File "/opt/mayan-edms/lib/python3.9/site-packages/whoosh/index.py", line 607, in create
storage.delete_file(filename)
File "/opt/mayan-edms/lib/python3.9/site-packages/whoosh/filedb/filestore.py", line 544, in delete_file
os.remove(self._fpath(name))
PermissionError: [Errno 13] Permission denied: '/var/lib/mayan/whoosh/_cabinets.cabinetsearchresult_0.toc'```