部分用户无法连接服务,网页登录无法查看资料库内容

服务器版本:centos 7 64
软件版本:6.3.3(发现问题后尝试升级到6.3.4)

问题:
最近重启过一次服务器,重启后有两个用户出现同样的故障,其余用户正常:
使用客户端登录,提示“登录失败,服务器内部错误”。


使用网页端登录,登录成功,但资料库内容无法显示
跟踪服务器端logs/seahub.log发现刷新该用户网页端时出如下错误:
2019-05-22 09:32:02,141 [ERROR] seahub.avatar.models:116 create_thumbnail [Errno 2] No such file or directory: u’/root/seafile-server-6.3.4/seahub/media/avatars/b/2/d05601786aef7531183faf18aed3b5/bu_13.gif’
2019-05-22 09:32:02,173 [ERROR] seahub.avatar.models:116 create_thumbnail [Errno 2] No such file or directory: u’/root/seafile-server-6.3.4/seahub/media/avatars/b/2/d05601786aef7531183faf18aed3b5/bu_13.gif’
2019-05-22 09:32:02,186 [ERROR] seahub.avatar.models:116 create_thumbnail [Errno 2] No such file or directory: u’/root/seafile-server-6.3.4/seahub/media/avatars/b/2/d05601786aef7531183faf18aed3b5/bu_13.gif’
2019-05-22 09:32:02,344 [ERROR] seahub.avatar.models:116 create_thumbnail [Errno 2] No such file or directory: u’/root/seafile-server-6.3.4/seahub/media/avatars/b/2/d05601786aef7531183faf18aed3b5/bu_13.gif’
2019-05-22 09:32:02,352 [WARNING] django.request:152 get_response Not Found: /media/avatars/b/2/d05601786aef7531183faf18aed3b5/resized/72/bu_13.png
2019-05-22 09:32:02,669 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api/v2.1/notifications/
Traceback (most recent call last):
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 454, in dispatch
self.initial(request, *args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 378, in initial
self.check_throttles(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 340, in check_throttles
if not throttle.allow_request(request, self):
File “/root/seafile-server-6.3.4/seahub/seahub/api2/throttling.py”, line 129, in allow_request
self.history = self.cache.get(self.key, [])
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/cache/backends/filebased.py”, line 40, in get
if not self._is_expired(f):
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/cache/backends/filebased.py”, line 137, in _is_expired
exp = pickle.load(f)
EOFError
2019-05-22 09:32:02,681 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api2/repos/
Traceback (most recent call last):
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/seahub/api2/base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/root/seafile-server-6.3.4/seahub/seahub/api2/base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 454, in dispatch
self.initial(request, *args, **kwargs)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 378, in initial
self.check_throttles(request)
File “/root/seafile-server-6.3.4/seahub/thirdpart/rest_framework/views.py”, line 340, in check_throttles
if not throttle.allow_request(request, self):
File “/root/seafile-server-6.3.4/seahub/seahub/api2/throttling.py”, line 129, in allow_request
self.history = self.cache.get(self.key, [])
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/cache/backends/filebased.py”, line 40, in get
if not self._is_expired(f):
File “/root/seafile-server-6.3.4/seahub/thirdpart/django/core/cache/backends/filebased.py”, line 137, in _is_expired
exp = pickle.load(f)
EOFError
2019-05-22 09:32:02,701 [WARNING] django.request:152 get_response Not Found: /media/avatars/b/2/d05601786aef7531183faf18aed3b5/resized/64/bu_13.png
2019-05-22 09:32:02,713 [WARNING] django.request:152 get_response Not Found: /media/avatars/b/2/d05601786aef7531183faf18aed3b5/resized/72/bu_13.png

rm -rf /tmp/seahub_cache/

删除缓存后搞定。