ubuntu 从10升级到11.0.12 seahub无法启动

升级的提示
Updating seafile/seahub database …

[INFO] You are using MySQL
[INFO] updating seahub database…
[WARNING] Failed to execute sql: (1050, “Table ‘sdoc_notification’ already exists”)
[WARNING] Failed to execute sql: (1054, “Unknown column ‘domain’ in ‘org_saml_config’”)
[INFO] updating seafevents database…
Done

seahub.ini.log
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
e[33mError:Seahub failed to start.e[m
Please try to run “./seahub.sh start” again

大佬们帮忙看看是什么问题

您可以将conf/gunicorn.conf.py中的daemon设置成false,再手动启动一下服务,看下具体报错

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Failed to read config file: /opt/seafile/conf/gunicorn.conf.py
Traceback (most recent call last):
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/base.py”, line 111, in get_config_from_filename
spec.loader.exec_module(mod)
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/conf/gunicorn.conf.py”, line 3, in
daemon = false
NameError: name ‘false’ is not defined
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

大佬 这个是什么意思

daemon = False,F大写

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Failed to read config file: /opt/seafile/conf/gunicorn.conf.py
Traceback (most recent call last):
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/base.py”, line 111, in get_config_from_filename
spec.loader.exec_module(mod)
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/conf/gunicorn.conf.py”, line 3, in
daemon = false
NameError: name ‘false’ is not defined
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

看起来好像和python有关

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 67, in run
WSGIApplication(“%(prog)s [OPTIONS] [APP_MODULE]”).run()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/base.py”, line 231, in run
super().run()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in load
return self.load_wsgiapp()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/gunicorn/util.py”, line 359, in import_app
mod = importlib.import_module(module)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/seafile-server-11.0.12/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/django/core/wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/django/apps/registry.py”, line 116, in populate
app_config.import_models()
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/django/apps/config.py”, line 269, in import_models
self.models_module = import_module(models_module_name)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/seafile-server-11.0.12/seahub/thirdpart/registration/models.py”, line 13, in
from seahub.base.accounts import User
File “/opt/seafile/seafile-server-11.0.12/seahub/seahub/base/accounts.py”, line 19, in
import ldap
ModuleNotFoundError: No module named ‘ldap’
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

可以参照各系统11.0python依赖对应版本:

建议使用docker部署,可避免此类问题:

这两个页面都打不开

我这儿可以打开,又重新编辑了一下。不过这两个链接都是专业版的,如果您是社区版可以在同目录下找社区版链接