The line number is from lock_manager/managers.py in check_existing on line 
55.

I am running this from the normal Rebuild Indexes on the Tools menu.

On Friday, August 11, 2017 at 3:52:25 AM UTC+2, Roberto Rosario wrote:
>
> "get() returned more than one Lock -- it returned 15!" <- That should not 
> be happening. 
>
> Can you share the index template you used that triggers this or a 
> simplified version with no private information?
>
> The locks should be releasing even on errors (
> https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/document_indexing/models.py#L271
> ).
>
> What line number is the .get() error happening?
>
> In the worst case, lock have a default timeout of 30 seconds (
> https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/lock_manager/settings.py#L19
> )
>
> While the cause of the issue in found and fixed you can force a release of 
> all lock with the management command (command line):
>
> ./manage.py purgelocks
>
> To achieve the same from code (from Python) use:
>
> from lock_manager.runtime import locking_backend
> locking_backend.purge_locks()
>
>
> On Thursday, August 10, 2017 at 10:18:02 AM UTC-4, Gerrit Van Dyk wrote:
>>
>> Hi,
>>
>> When trying to rebuild all indexes, I get the following error.
>>
>> Exception Type: MultipleObjectsReturned, Exception Value:get() returned 
>> more than one Lock -- it returned 15!
>>
>> It seems that this error is coming from lock_manager/managers.py in 
>> check_existing on line 55. 
>>
>> existing_lock = self.get(**kwargs)
>>
>>
>> How can I clear these errors, or get rid of the multiple locks.
>>
>>
>> Gerrit
>>
>>
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mayan-edms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to