6.2.9升级6.3.9后seahub无法启动


#1

操作系统CentOS Linux 7.6.1810 (Core)

seafile用的是sqlite方式部署的

升级6.3.9后,seafile server 启动正常, seahub启动失败:

`[root@VM_0_5_centos upgrade]# /data/seafile-server-latest/seahub.sh start-fastcgi

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 “/data/seafile-pro-server-6.3.9/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/data/seafile-pro-server-6.3.9/seahub/thirdpart/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/data/seafile-pro-server-6.3.9/seahub/thirdpart/django/core/management/init.py”, line 338, in execute
django.setup()
File “/data/seafile-pro-server-6.3.9/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/data/seafile-pro-server-6.3.9/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/data/seafile-pro-server-6.3.9/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-pro-server-6.3.9/seahub/seahub/base/models.py”, line 13, in
from seahub.group.models import GroupMessage
File “/data/seafile-pro-server-6.3.9/seahub/seahub/group/models.py”, line 13, in
from seahub.profile.models import Profile
File “/data/seafile-pro-server-6.3.9/seahub/seahub/profile/models.py”, line 206, in
from .utils import refresh_cache
File “/data/seafile-pro-server-6.3.9/seahub/seahub/profile/utils.py”, line 8, in
from seahub.utils import normalize_cache_key
File “/data/seafile-pro-server-6.3.9/seahub/seahub/utils/init.py”, line 1187, in
seafevents_api.init(EVENTS_CONFIG_FILE)
File “/data/seafile-pro-server-6.3.9/pro/python/seafevents/seafevents_api.py”, line 9, in init
load_config(config_file)
File “/data/seafile-pro-server-6.3.9/pro/python/seafevents/app/config.py”, line 27, in load_config
appconfig.seaf_session_cls = init_db_session_class(appconfig.seaf_conf_path, db = ‘seafile’)
File “/data/seafile-pro-server-6.3.9/pro/python/seafevents/db.py”, line 111, in init_db_session_class
engine = create_engine_from_conf(config_file, db)
File “/data/seafile-pro-server-6.3.9/pro/python/seafevents/db.py”, line 52, in create_engine_from_conf
backend = config.get(db_sec, ‘type’)
File “/usr/lib64/python2.7/ConfigParser.py”, line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: ‘database’
Error:Seahub failed to start.
`

这个可咋办啊?


#2

检查你的seahub_settings.py的配置有问题没


#3

不知道为啥,把文件换回旧版本可以启动。。。难道是假升级


#4

那是因为你升级用错版本了,你6.2用的开源版部署的,并且数据库使用的是sqlite,但6.3.9却是个pro版,pro版是不支持sqlite数据的,只能用mysql数据