Error:Seahub failed to start. Try again

Hello everyone,

I am not new to Seafile and have like 11 servers that run without any issues for more then 6 years.
Because one of the servers is running out of storages, I want to replace it with a new server with bigger storage.
The new server is in testing mode with the following base layout.

  • Ubuntu 18.04 LTS
  • Database Server MariaDB (localhost)
  • Seafile version 7.1.4
  • Python Tools (installed)
  • Nginx (NOT installed yet)

The installation has ended successfully without errors. (setup-seafile-mysql.sh)
Starting Seafile.sh, success no problem.

Starting Seahub.sh, will not start !!!

On normal start I get a error:

/srv/seafile/seafile-server-latest# ./seahub.sh start
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again

On fastcgi start I get a error: (yes I know fastcgi is not supported anymore)

/srv/seafile/seafile-server-latest# ./seahub.sh start-fastcgi
Starting seahub (fastcgi) at 127.0.0.1:8000 ...
Traceback (most recent call last):
  File "/srv/seafile/seafile-server-7.1.4/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/srv/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/srv/seafile/seafile-server-7.1.4/seahub/thirdpart/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/srv/seafile/seafile-server-7.1.4/seahub/thirdpart/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/srv/seafile/seafile-server-7.1.4/seahub/thirdpart/django/apps/config.py", line 94, in create
    module = import_module(entry)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'captcha'
Error:Seahub failed to start.

Over the past 2 days, I have installed the server over and over with different layouts but the problem remains.
I also tried to install the captcha MODULE but the problem remains.
And the Seahub.LOG is empty.

Is there anyone for help?

Did you install the required dependencies for 7.1.*?
https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md

Axstet thanks for your reply

That was missing yes!!!
Now Seahub starts, but the web GUI is not showing, also Seafile client MacOS connect is not working (connection refused)

seahub.LOG still empty

Axstet,

Thanks for your help, the blanco web GUI was the problem of Nginx the media location was wrong.
So everything works now.
ones again thanks for your help :muscle: