最新的5.1.3版本“我拥有的”资料库显示红色的“错误”

在server2008上安装5.1.3的服务端,显示服务端正常运行,也能正常登陆web客户端,但是登陆进去后 “我拥有的”的下面的资料库显示不出来,显示红色字体的“错误”。
重新安装4.x的旧版本又一切正常,是不是5.1.3的这个版本有问题啊?

1 个赞

需要把 Python 升级到 2.7.11 版本,或者在 seahub_settings.py 中加一行:

TIME_ZONE = 'UTC'
1 个赞

请问seahub_settings.py文件的路径是什么?
搜索不到此文件嘛
win2008SP1+python2.7.4
安装python2.7.11的时候会报错,很奇怪的事情

1 个赞

数据目录下有一个 conf 目录,seahub_settings.py 在里边。

请教下您在winserver上怎么跑起来5.1.3的,我按教程上来,没有做任务修改,seafile服务可以起来8082端口可以通,但是seahub 8000的起不来,log没有很具体的错,只是说seahub exit with code 1。你能分享下你的配置跟操作步骤吗?

是在D:\seafile-server\conf这里吗?

我全盘搜索,只在这个位置找到了seahub_settings.py,但是这个文件内容貌似只有一行,看起来像是某个key。往里面添加内容之后,会导致SeaFile启动之后网站无法访问。。。删掉添加的内容(恢复原样)后,系统正常。。。

python版本已经是2.7.11,但是仍然有这个问题

Win7,也有这个问题

Python是2.7.11无误,seahub_settings.py里加了这一样。重启服务、重启电脑都试过了。没效果

将conf目录下的seahub_settings.pyc文件删除掉,然后重启。刚才我就是这样启动成功的。

试过了,还是不行……快崩溃了。

删掉了,重启服务后又编译出来了。但是问题一模一样。

我的也是这个问题,求各路大神有没有解决办法啊?

我的问题跟楼主的问题基本一样,我安装好后正常运行了有快一个月,这几天发现跟楼主一样的问题,而且客户端登陆后显示获取资料库信息失败,重启了好几次也没有用,不知道问题出在哪里。

看看服务器端的 seahub_django_request.log 日志。

seahub_django_request.log的日志

2016-12-07 15:16:26,469 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/repos/
Traceback (most recent call last):
File “C:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\seafile-server-5.1.3\seahub\seahub\api2\throttling.py”, line 122, in allow_request
self.history = self.cache.get(self.key, [])
File “C:\SeafileProgram\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.isexpired(f):
File “C:\SeafileProgram\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 138, in isexpired
exp = pickle.load(f)
EOFError
2016-12-07 15:18:21,846 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/account/info/
Traceback (most recent call last):
File “C:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\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:\SeafileProgram\seafile-server-5.1.3\seahub\seahub\api2\throttling.py”, line 122, in allow_request
self.history = self.cache.get(self.key, [])
File “C:\SeafileProgram\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.isexpired(f):
File “C:\SeafileProgram\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 138, in isexpired
exp = pickle.load(f)
EOFError

这个论坛上已经回答过很多遍了。

找到 seahub_cache 这个目录,删掉,然后重启 Seafile 服务器就可以了。

既然这个问题是很多用户都遇到的问题,我觉得管理员有必要针对这个问题专门写一个置顶的帖子,把这个问题说明一下,省的遇到这个问题的用户在论坛里乱找还不一定找对地方

终于好了,吓死宝宝了,最新版本,出现错误 的标识,删掉这个文件夹就ok了