系统是centos7 系统自带的python2.7
安装了如下:
yum install python3 python3-setuptools python3-pip -y
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap
daemon = True 注释掉后:
./seahub.sh start
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
[root@localhost seafile-server-latest]# vim …/conf/gunicorn.conf.py
[root@localhost seafile-server-latest]# ./seahub.sh start
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/base.py”, line 228, in run
super().run()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 49, in load
return self.load_wsgiapp()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/gunicorn/util.py”, line 358, in import_app
mod = importlib.import_module(module)
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 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/haiwen/seafile-server-7.1.3/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/core/wsgi.py”, line 13, in get_wsgi_application
django.setup(set_prefix=False)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/apps/config.py”, line 202, in import_models
self.models_module = import_module(models_module_name)
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 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/registration/models.py”, line 13, in
from seahub.base.accounts import User
File “/home/haiwen/seafile-server-7.1.3/seahub/seahub/base/accounts.py”, line 27, in
from seahub.utils.mail import send_html_email_with_dj_template, MAIL_PRIORITY
File “/home/haiwen/seafile-server-7.1.3/seahub/seahub/utils/mail.py”, line 4, in
from post_office import mail
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/post_office/mail.py”, line 12, in
from .models import Email, EmailTemplate, Log, PRIORITY, STATUS
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/post_office/models.py”, line 14, in
from post_office import cache
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/post_office/cache.py”, line 7, in
cache_backend = get_cache_backend()
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/post_office/settings.py”, line 58, in get_cache_backend
return caches[“default”]
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/core/cache/init.py”, line 80, in getitem
cache = _create_cache(alias)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/core/cache/init.py”, line 55, in _create_cache
return backend_cls(location, params)
File “/home/haiwen/seafile-server-7.1.3/seahub/thirdpart/django/core/cache/backends/memcached.py”, line 162, in init
import memcache
ModuleNotFoundError: No module named ‘memcache’
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again