Error:Seahub failed to start.

通过一键部署 bash seafile-server-centos-7-amd64-http 7.1.3
到最后一步启动Seahub服务时,报错启动失败:
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

再通过调试运行启动,报错信息如下:
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …
Traceback (most recent call last):
File “/opt/seafile/seafile-server-7.1.3/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/management/init.py”, line 338, in execute
django.setup()
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/apps/registry.py”, line 85, in populate
app_config = AppConfig.create(entry)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/apps/config.py”, line 94, in create
module = import_module(entry)
File “/usr/lib64/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘captcha’
Error:Seahub failed to start.

请教各位大神,如何解决呀?

ModuleNotFoundError: No module named ‘captcha’
看错误像是,你安装了python3了吗?captcha模块缺失pip3 install captcha呢
还有这个seahub (fastcgi) at 127.0.0.1:8000 你要在conf文件夹下的gunicorn.conf.py
#bind = “127.0.0.1:8000”#这行注释掉
bind = “0.0.0.0:8000”#添加这行
不然启动会报错,我遇到过

2 个赞