Seafile server 9.0.9 with Ubuntu 20.04 worked fine, but I did a release-upgrade to Ubuntu 22.04. After the upgrade seahub doesn’t start anymore.
When I start seahub, it shows the following error message:
regular start of seahub
sudo /opt/seafile/seafile-server-latest/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
for testing purpose with start-fastcgi
sudo /opt/seafile/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 “/opt/seafile/seafile-server-9.0.9/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/django/core/management/init.py”, line 395, in execute
django.setup()
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/django/apps/registry.py”, line 114, in populate
app_config.import_models()
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/django/apps/config.py”, line 301, 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-9.0.9/seahub/thirdpart/registration/models.py”, line 13, in
from seahub.base.accounts import User
File “/opt/seafile/seafile-server-9.0.9/seahub/seahub/base/accounts.py”, line 28, in
from seahub.share.models import ExtraSharePermission
File “/opt/seafile/seafile-server-9.0.9/seahub/seahub/share/models.py”, line 19, in
from seahub.utils.hasher import AESPasswordHasher
File “/opt/seafile/seafile-server-9.0.9/seahub/seahub/utils/hasher.py”, line 4, in
from Crypto.Cipher import AES
File “/usr/local/lib/python3.10/dist-packages/Crypto/Cipher/init.py”, line 27, in
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File “/usr/local/lib/python3.10/dist-packages/Crypto/Cipher/_mode_ecb.py”, line 29, in
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File “/usr/local/lib/python3.10/dist-packages/Crypto/Util/_raw_api.py”, line 81, in
ffi = FFI()
File “/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/cffi/api.py”, line 54, in init
raise Exception(“Version mismatch: this is the ‘cffi’ package version %s, located in %r. When we import the top-level ‘_cffi_backend’ extension module, we get version %s, located in %r. The two versions should be equal; check your installation.” % (
Exception: Version mismatch: this is the ‘cffi’ package version 1.14.0, located in ‘/opt/seafile/seafile-server-9.0.9/seahub/thirdpart/cffi/api.py’. When we import the top-level ‘_cffi_backend’ extension module, we get version 1.15.1, located in ‘/usr/local/lib/python3.10/dist-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so’. The two versions should be equal; check your installation.
Error:Seahub failed to start.
Can anybody help?