求助:获取资料库信息失败

大约20天前在家里的win7电脑上安装了seafile server,并且和iphone、mac客户端都调通了。后来全家出去度假没怎么用。

度假回来之后想用seafile同步照片啥的,结果发现客户端都刷不出来资料库。我在安装seafile server上安装了一个client,用127.0.0.1登陆,同样显示:“获取资料库信息失败”。但是左下角的服务器连接状态显示绿色。

用web登陆8000端口,能够顺利登上去,但是“我拥有的”、“共享”、“公共”的页面全部显示红色的“错误”两个字。

在手机客户端连上后还能看到原来创建的“个人”、“工作”、“文档”三个资料库,但是无法刷新出任何东西。

求教:这是哪里出了问题呀?

奇怪的是,mac客户端居然还可以同步数据。刚才写一个文档保存后提示我同步到seafile了……

但是在客户端界面上看不到资料库。

我也是这个问题
刚刚从5.0.3升级到5.1.3,出现了获取资料库信息失败。

服务器是windows系统。

在 seahub_settings.py 中加一行:

TIME_ZONE = ‘UTC’

在 seafile-server 目录下

2 个赞

我是直接安装的5.13,但是没找到你说的seahub_settings.py文件呀。

我找到了……

加上了这句话,重启seafile server服务,没有效果……

你要先停止 seafile server服务,然后加代码。 然后再启动服务。 另外注意,目录应该有两个文件,一个是.PY,一个是.PYC。

还是不行呢……按照你的办法停止服务,改py文件,再启动服务,没效果。

PYC是编译后的文件,我改的是PY文件。

试一下安装高版本的python32

你可以看看服务器的 logs 目录下有什么错误,主要是 seahub_django_requests.log 和 seafile.log 两个文件。

seafile.log没有错误
seahub_django_requests.log 中错误信息如下:
2016-11-08 11:16:43,082 [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._is_expired(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 _is_expired
exp = pickle.load(f)
EOFError

怎么解决?请客服人员解答,谢谢。

你好,请问这个问题解决了吗

按着你的操作成功了,谢谢!

兄弟给力按照你的方法处理成功

按照教程,确实恢复了。感谢

教程在哪里,能发一下吗

我的解决了,清空系统/tmp/seahub_cache/目录下的缓存。原因是缓存文件大小为0的文件导致服务报错。
参考帖子http://www.mamicode.com/info-detail-2446177.html