升级7.1.2以后无法浏览历史文件

2020-03-26 08:44:51,096 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /repo/file_revisions/f4fdf141-1930-4124-9a60-ba4565fa9f77/
Traceback (most recent call last):
File “/home/opt/seafile/seafile-server-7.1.2/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/home/opt/seafile/seafile-server-7.1.2/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/home/opt/seafile/seafile-server-7.1.2/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/home/opt/seafile/seafile-server-7.1.2/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/opt/seafile/seafile-server-7.1.2/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/home/opt/seafile/seafile-server-7.1.2/seahub/seahub/views/init.py”, line 774, in file_revisions
suffix_list = seafevents_api.get_file_history_suffix()
AttributeError: ‘NoneType’ object has no attribute ‘get_file_history_suffix’

升级到 7.1.3 试一下。

一看就想到,你是不是还是用python2 ,或者python的版本不对,安装python3,我之前遇到过一样的,换了python版本就好了

装了7.1.3以后还是这样。
我也安装python3了,现在是2、3并存。

[seafile@openvpn ~]$ python
Python 2.7.5 (default, Aug 7 2019, 00:51:29)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

[seafile@openvpn ~]$ python3
Python 3.6.8 (default, Aug 7 2019, 17:28:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

他这个是用django开发的模块,你看看是不是有哪些包漏装或者安装失败了,这个提示显然要么python版本问题,要么包没齐全