Error starting Seahub on Seafile 10.0.1

After upgrading to the new Seafile Server (10.0.1) from 9.0.2, I have the following error trying to start Seahub
May 07 19:56:40 File-1 seahub.sh[5106]: Starting seahub at port 8000 …
May 07 19:56:40 File-1 seahub.sh[5118]: Traceback (most recent call last):
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/bin/gunicorn”, line 5, in
May 07 19:56:40 File-1 seahub.sh[5118]: from gunicorn.app.wsgiapp import run
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 9, in
May 07 19:56:40 File-1 seahub.sh[5118]: from gunicorn.app.base import Application
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/base.py”, line 11, in
May 07 19:56:40 File-1 seahub.sh[5118]: from gunicorn import util
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/util.py”, line 25, in
May 07 19:56:40 File-1 seahub.sh[5118]: import pkg_resources
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/init.py”, line 88, in
May 07 19:56:40 File-1 seahub.sh[5118]: from pkg_resources.extern import platformdirs
May 07 19:56:40 File-1 seahub.sh[5118]: File “”, line 971, in _find_and_load
May 07 19:56:40 File-1 seahub.sh[5118]: File “”, line 955, in _find_and_load_unlocked
May 07 19:56:40 File-1 seahub.sh[5118]: File “”, line 658, in _load_unlocked
May 07 19:56:40 File-1 seahub.sh[5118]: File “”, line 571, in module_from_spec
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/extern/init.py”, line 52, in create_module
May 07 19:56:40 File-1 seahub.sh[5118]: return self.load_module(spec.name)
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/extern/init.py”, line 37, in load_module
May 07 19:56:40 File-1 seahub.sh[5118]: import(extant)
May 07 19:56:40 File-1 seahub.sh[5118]: File “/usr/share/nginx/html/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/_vendor/platformdirs/init.py”, line 5
May 07 19:56:40 File-1 seahub.sh[5118]: from future import annotations
May 07 19:56:40 File-1 seahub.sh[5118]: ^
May 07 19:56:40 File-1 seahub.sh[5118]: SyntaxError: future feature annotations is not defined
May 07 19:56:45 File-1 seahub.sh[5106]: Error:Seahub failed to start.
May 07 19:56:45 File-1 seahub.sh[5106]: Please try to run “./seahub.sh start” again
May 07 19:56:45 File-1 systemd[1]: seahub.service: Main process exited, code=exited, status=1/FAILURE
May 07 19:56:45 File-1 systemd[1]: seahub.service: Failed with result ‘exit-code’.

Ok, found one issue. Seafile Server 10.0.1 only runs with Python 3.7 or greater. By default, Python 3.6 was installed and it was fine for Seafile 9.0.2. I didn’t find any info for version 10.0.1 that had to run python 3.7 as a mimimum requirement. I still can’t start Seahub, but the error is a bit different now
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

1 Like

Did you get this to work?
Having the same error:

Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

Yes, my issue was with modsecurity which was not for the correct version of nginx

Can you mark the issue as solved?