求助各位大神!登录失败:服务器内部错误

登录不了,目前只有这一个账号有问题,请帮忙解决!谢谢!
日志如下,请各位大神帮忙解决下!

2016-12-12 10:55:10,144 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/ping/
Traceback (most recent call last):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\views\decorators\csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\views\generic\base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\djangorestframework-3.3.2-py2.7.egg\rest_framework\views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\djangorestframework-3.3.2-py2.7.egg\rest_framework\views.py”, line 454, in dispatch
self.initial(request, *args, **kwargs)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\djangorestframework-3.3.2-py2.7.egg\rest_framework\views.py”, line 378, in initial
self.check_throttles(request)
File “C:\Seafile\seafile-server-5.1.3\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 “C:\Seafile\seafile-server-5.1.3\seahub\seahub\api2\throttling.py”, line 232, in allow_request
return super(ScopedRateThrottle, self).allow_request(request, view)
File “C:\Seafile\seafile-server-5.1.3\seahub\seahub\api2\throttling.py”, line 122, in allow_request
self.history = self.cache.get(self.key, [])
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 41, in get
if not self._is_expired(f):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 138, in _is_expired
exp = pickle.load(f)
EOFError

你在论坛中搜一下,这个错误,看看别人怎么解决的。

谢谢,再帮忙看看这个日志。貌似日志截错了。
2016-12-12 18:39:40,996 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/unseen_messages/
Traceback (most recent call last):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py”, line 108, in get_response
response = middleware_method(request)
File “C:\Seafile\seafile-server-5.1.3\seahub\seahub\base\middleware.py”, line 64, in process_request
cur_note = cache.get(‘CUR_TOPINFO’) if cache.get(‘CUR_TOPINFO’) else
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 41, in get
if not self._is_expired(f):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 141, in _is_expired
self._delete(f.name)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 72, in _delete
os.remove(fname)
WindowsError: [Error 32] : ‘D:\seafile-server\seahub_cache\ceec40422771f78d283f254429d1d993.djcache’
2016-12-12 18:39:47,309 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/account/info/
Traceback (most recent call last):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py”, line 108, in get_response
response = middleware_method(request)
File “C:\Seafile\seafile-server-5.1.3\seahub\seahub\base\middleware.py”, line 64, in process_request
cur_note = cache.get(‘CUR_TOPINFO’) if cache.get(‘CUR_TOPINFO’) else
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 41, in get
if not self._is_expired(f):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 141, in _is_expired
self._delete(f.name)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 72, in _delete
os.remove(fname)
WindowsError: [Error 5] : ‘D:\seafile-server\seahub_cache\ceec40422771f78d283f254429d1d993.djcache’

试试[quote=“1111, post:3, topic:1848”]
D:\seafile-server\seahub_cache
[/quote]

清空一下服务器的缓存(把上面这个目录下的所有内容都删掉),记得重启。

1 个赞

你好,我想请问下是什么原因导致的呢,最近有陆陆续续其他人也出现账号等不进去啦

看log,是因为频繁读取缓存,导致冲突。

是winodws中常见的一个错误,代码在6.0版本中优化过了。

如果你那只能用windows服务器,不能用linux的话,只能常删缓存了。