哎,当了这么几年的运维,心情急躁了,犯了个小小错误,强制重启了一台运行的服务器,重启后访问seafile云盘的时候,解决报错如下:

Traceback(mostrecentcalllast):File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py",line108,inget_responseresponse=middleware_method(request)File"/home/haiwen/seafile-server-5.1.2/seahub/seahub/base/middleware.py",line64,inprocess_requestcur_note=cache.get('CUR_TOPINFO')ifcache.get('CUR_TOPINFO')else\File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py",line41,ingetifnotself.isexpired(f):File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py",line138,inisexpiredexp=pickle.load(f)EOFError2016-06-0808:47:20,003[ERROR]django.request:256handle_uncaught_exceptionInternalServerError:/cgi-bin/common/attrTraceback(mostrecentcalllast):File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py",line108,inget_responseresponse=middleware_method(request)File"/home/haiwen/seafile-server-5.1.2/seahub/seahub/base/middleware.py",line64,inprocess_requestcur_note=cache.get('CUR_TOPINFO')ifcache.get('CUR_TOPINFO')else\File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py",line41,ingetifnotself.isexpired(f):File"/home/haiwen/seafile-server-5.1.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py",line138,inisexpiredexp=pickle.load(f)

解决方法:

清理缓存即可:

rm -rf /tmp/seahub_cache/*