Seahub not starting with Seafile Pro 8.0.4

CentOS Linux release 7.9.2009
seafile-pro-server-8.0.4

Foolowing manual.seafile.com/deploy/using_mysql/ I have successfully run setup-seafile-mysql.sh.

Also ./seafile.sh start succeeds
Instead ./seahub.sh start fails as below:
    > [root@FileSharing-SeafilePro seafile-pro-server-8.0.4]# ./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 "/home/seafile/seafile-pro-server-8.0.4/seahub/manage.py", line 10, in <module>
    >     execute_from_command_line(sys.argv)
    >   File "/home/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/django/core/management/__init__.py", line 381, in execute_from_command_line
    >     utility.execute()
    >   File "/home/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/django/core/management/__init__.py", line 357, in execute
    >     django.setup()
    >   File "/home/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/django/__init__.py", line 24, in setup
    >     apps.populate(settings.INSTALLED_APPS)
    >   File "/home/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/django/apps/registry.py", line 91, in populate
    >     app_config = AppConfig.create(entry)
    >   File "/home/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/django/apps/config.py", line 90, in create
    >     module = import_module(entry)
    >   File "/usr/lib64/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.
    > [root@FileSharing-SeafilePro seafile-pro-server-8.0.4]#

Please may you support on this issue?

Many thanks 
Giulio

I guess it would be better to use a script like seafile-server-installer/seafile-8.0_centos at master · haiwen/seafile-server-installer · GitHub

You should be able to fix your problem with:

yum install python3 python3-setuptools python3-pip python3-ldap memcached java-1.8.0-openjdk libmemcached libreoffice-headless libreoffice-pyuno libffi-devel pwgen curl python3-devel mysql-devel gcc gcc-c++ -y

pip3 install --timeout=3600 django==2.2.* future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha

Thanks Germeier.

Actually the first command (yum install phyton3…) has been completed successuffully.
On the contrary the second one (pip3 install…) failed as below:

>     creating build
>     creating build/lib.linux-x86_64-3.6
>     creating build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb
>     creating build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants
>     running build_ext
>     building 'MySQLdb._mysql' extension
>     creating build/temp.linux-x86_64-3.6
>     creating build/temp.linux-x86_64-3.6/MySQLdb
>     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-                                                             protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dver                                                             sion_info=(2,0,3,'final',0) -D__version__=2.0.3 -I/usr/include/mysql -I/usr/include/mysql/mysql -I/usr/include/python3.6m -c                                                              MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -std=c99
>     gcc -pthread -shared -Wl,-z,relro -g build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -L/usr/lib64/ -L/usr/lib64 -lmariadb -                                                             lpython3.6m -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so
>     /usr/bin/ld: cannot find -lmariadb
>     collect2: error: ld returned 1 exit status
>     error: command 'gcc' failed with exit status 1
> 
>     ----------------------------------------
> Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-hlal6qnm/mysqlclient/setup.py';f=getat                                                             tr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" in                                                             stall --record /tmp/pip-j7ay7pnj-record/install-record.txt --single-version-externally-managed --compile" failed with error                                                              code 1 in /tmp/pip-build-hlal6qnm/mysqlclient/

I will try to use the script you suggested and I will let you know.

BR,
Giulio

Hi Germeier,

the installation from script works fine.

Bye
Giulio

Please mark this topic as solved

I apologize.
Sure.