2018-03-30 01:19:34,054 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/auth-token/
Traceback (most recent call last):
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/generic/base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 454, in dispatch
self.initial(request, *args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 378, in initial
self.check_throttles(request)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 340, in check_throttles
if not throttle.allow_request(request, self):
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 125, in allow_request
self.key = self.get_cache_key(request, view)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 185, in get_cache_key
‘ident’: self.get_ident(request)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 42, in get_ident
return ‘’.join(xff.split()) if xff else remote_addr
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xef in position 0: ordinal not in range(128)
这个应该是seafile版本升级时没做好,数据库少了个字段,建议参考这个文档
https://manual-cn.seafile.com/deploy_windows/upgrading_seafile_windows_server.html
把大版本升级过程再执行遍试试
我也是这个问题