after upgrade from 4.1.3 to 4.2.1 whoosh backend error

When things don't work as they should.
Post Reply
woec
Posts: 27
Joined: Sun Jun 02, 2019 7:11 am

after upgrade from 4.1.3 to 4.2.1 whoosh backend error

Post by woec »

Hi,
after I upgraded mayan from 4.1.3 to 4.2.1, search does not work anymore (whoosh backend).
When refresh of the search index is initiated, the errors listed in the attached log file are issued.
django search backend still works.

Error message starts with:
ERROR/ForkPoolWorker-3] Task mayan.apps.dynamic_search.tasks.task_index_search_model[28d0d40c-b04a-4177-b9dc-b65ac026b055] raised unexpected: DynamicSearchException("
Unexpected error calling `index_search_model` with keyword arguments {'range_string': '51-74', 'search_model': <SearchModel: Cabinet>}.")

How to solve this?
woec

Addendum: replacing the contents of .../apps/dynamic_search/ by the files from 4.1 tree of gitlab, searching by use of whoosh works again!
So, I suspect there is something wrong with the code of version 4.2 ...

Installation environment: debian testing, direct installation
sam228
Posts: 2
Joined: Wed Apr 29, 2020 8:38 am

Re: after upgrade from 4.1.3 to 4.2.1 whoosh backend error

Post by sam228 »

Hi @woec,
thank you so much for your addendum, that solved the problem for me, too!
You saved my day!
fulkron
Posts: 20
Joined: Fri Mar 26, 2021 5:25 pm

Re: after upgrade from 4.1.3 to 4.2.1 whoosh backend error

Post by fulkron »

I’m facing the same issue on docker
In 4.2.8 whoosh does not complete the reindex.
In the addendum could you explain exactly what you did?
Thanks
Dario
Post Reply