Shared links view error 500

Hi, on pro 7.1.7.

I get an 500 error message on seahub when accessing shared links view

This is the seahub.log

2020-09-19 14:00:27,295 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api/v2.1/share-links/
Traceback (most recent call last):
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/thirdpart/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seahub/seahub/api2/endpoints/share_links.py", line 205, in get
    folder_path, fileshare.username)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seafile/lib/python3.6/site-packages/seaserv/api.py", line 772, in check_permission_by_path
    return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seafile/lib/python3.6/site-packages/pysearpc/client.py", line 128, in newfunc
    return fret(ret_str)
  File "/home/cc/seafile/seafile-pro-server-7.1.7/seafile/lib/python3.6/site-packages/pysearpc/client.py", line 26, in _fret_string
    raise SearpcError(dicts['err_msg'])
pysearpc.common.SearpcError: Failed to get repo

This on ly occurs to an admin account who owns a lot of libraries

How can i check exact repos which make the error ?
May I clean the database for old shared links ?

Regards

Did you ever get a response?