验证码不能正常显示,返回错误

访问地址是:http://xxx.com/captcha/image/ac32848efde24d0218d5157573e168518fff0545/

Page unavailable
Sorry, but the requested page is unavailable due to a server hiccup.
Our engineers have been notified, so check back later.

在文档中没找到对应的处理方法,请问应该怎么处理。
谢谢。

看看 seahub_django_request.log 中的错误日志。可能是少安装了一个依赖包。

File “/data/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/views.py”, line 46, in captcha_image
font = ImageFont.truetype(settings.CAPTCHA_FONT_PATH, settings.CAPTCHA_FONT_SIZE * scale)
File “/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py”, line 218, in truetype
return FreeTypeFont(filename, size, index, encoding)
File “/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py”, line 134, in init
self.font = core.getfont(file, size, index, encoding)
File “/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py”, line 34, in getattr
raise ImportError(“The _imagingft C module is not installed”)
ImportError: The _imagingft C module is not installed

参照这两个,搞定连网站都打不开了。

outofmemory.cn/code-snippet/6642/python-pil-font-ImportError-The-_imagingft-C-module-is-not-installed

系统是Centos6.x ,自己下载的Python2.7源码安装的。
请问Centos6.x上,应该怎么安装 seafile 5.1系统。
Python2.7和相关扩展的安装方法。

多谢。

建议使用 CentOS 7, CentOS 6 无法支持。

安装pillow后可以了。
参考:http://www.centoscn.com/CentosServer/ftp/2015/1212/6514.html

启动不正常,是因为用错了命令: seahub.sh start
换成 seahub.sh start-fastcgi