操作系统升级后, seahub无法启动

操作系统: Linux debian64 4.7.0-1-amd64 #1 SMP Debian 4.7.8-1 (2016-10-19) x86_64 GNU/Linux
seafile版本: 6.0.5 64位

操作系统升级后, seahub无法启动, /tmp/seahub_cache 目录已删除

Traceback (most recent call last):
File “/home/seafile/seafile-server-6.0.5/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/base.py”, line 394, in run_from_argv
self.execute(*args, **cmd_options)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/base.py”, line 444, in execute
self.check()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/base.py”, line 482, in check
include_deployment_checks=include_deployment_checks,
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/checks/registry.py”, line 72, in run_checks
new_errors = check(app_configs=app_configs)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/checks/model_checks.py”, line 28, in check_all_models
errors.extend(model.check(**kwargs))
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/base.py”, line 1205, in check
errors.extend(cls._check_fields(**kwargs))
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/base.py”, line 1282, in _check_fields
errors.extend(field.check(**kwargs))
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/fields/init.py”, line 934, in check
errors = super(AutoField, self).check(**kwargs)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/fields/init.py”, line 207, in check
errors.extend(self._check_backend_specific_checks(**kwargs))
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/fields/init.py”, line 306, in _check_backend_specific_checks
return connection.validation.check_field(self, **kwargs)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/mysql/validation.py”, line 18, in check_field
field_type = field.db_type(connection)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/fields/init.py”, line 614, in db_type
return connection.data_types[self.get_internal_type()] % data
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/init.py”, line 36, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/utils/functional.py”, line 59, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/mysql/base.py”, line 196, in data_types
if self.features.supports_microsecond_precision:
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/utils/functional.py”, line 59, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/mysql/features.py”, line 52, in supports_microsecond_precision
return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/utils/functional.py”, line 59, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/mysql/base.py”, line 371, in mysql_version
with self.temporary_connection():
File “/usr/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 462, in temporary_connection
cursor = self.cursor()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 164, in cursor
cursor = self.make_cursor(self._cursor())
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 135, in _cursor
self.ensure_connection()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 130, in ensure_connection
self.connect()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/utils.py”, line 98, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 130, in ensure_connection
self.connect()
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/base/base.py”, line 119, in connect
self.connection = self.get_new_connection(conn_params)
File “/home/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/backends/mysql/base.py”, line 276, in get_new_connection
conn = Database.connect(**conn_params)
File “/usr/lib/python2.7/dist-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/MySQLdb/connections.py”, line 204, in init
super(Connection, self).init(*args, **kwargs2)
django.db.utils.OperationalError: (1193, “Unknown system variable ‘storage_engine’”)

解决了, 数据库引擎的问题:wink:

1 个赞