centos7安装seafile后seahub无法启动


#1

[root@Centos 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 “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn”, line 9, in
load_entry_point(‘gunicorn==19.8.1’, ‘console_scripts’, ‘gunicorn’)()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 61, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 223, in run
super(Application, self).run()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 60, in init
self.setup(app)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 120, in setup
self.app.wsgi()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 52, in load
return self.load_wsgiapp()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/util.py”, line 350, in import_app
import(module)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/core/wsgi.py”, line 13, in get_wsgi_application
django.setup(set_prefix=False)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/apps/config.py”, line 202, in import_models
self.models_module = import_module(models_module_name)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/contrib/sessions/models.py”, line 3, in
from django.contrib.sessions.base_session import (
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/contrib/sessions/base_session.py”, line 30, in
class AbstractBaseSession(models.Model):
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/models/base.py”, line 124, in new
new_class.add_to_class(’_meta’, Options(meta, app_label))
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/models/base.py”, line 325, in add_to_class
value.contribute_to_class(cls, name)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/models/options.py”, line 214, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/init.py”, line 33, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/utils.py”, line 211, in getitem
backend = load_backend(db[‘ENGINE’])
File “/data/seafile/seafile-install/seafile-server-6.3.4/seahub/thirdpart/django/db/utils.py”, line 134, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: ‘django.db.backends.mysql’ isn’t an available database backend.
Try using ‘django.db.backends.XXX’, where XXX is one of:
‘oracle’, ‘postgresql’, ‘sqlite3’
Error was: No module named mysql.base
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again