Version `libmariadbclient_18' not found

Hi, I installed SW updates 2 weeks ago and from that operation Seahub stop working. I know, it’s not Seafile problem, MariaDB developers confirm this bug (PureFTP wit mysql plugin not working too). But it’s 2 weeks and our company cannot wait to infinity. I’m looking for some temp solution to get Seahub working. Seafile server (read seafile service) looks working, but Seahub does not starting (see log below), so I cannot login clients and mobile apps.

Thanks for reply

LC_ALL is not set in ENV, set to en_US.UTF-8
/haiwen/seafile-server-latest/seahub.sh: řádek 209: varování: setlocale: LC_ALL: národní prostředí nelze změnit (en_US.UTF-8): Adresář nebo soubor neexistuje
Starting seahub (fastcgi) at 127.0.0.1:8000 ...
Traceback (most recent call last):
  File "/haiwen/seafile-server-6.1.2/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/apps/config.py", line 86, in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/haiwen/seafile-server-6.1.2/seahub/seahub/contacts/__init__.py", line 3, in <module>
    from handlers import *
  File "/haiwen/seafile-server-6.1.2/seahub/seahub/contacts/handlers.py", line 4, in <module>
    from models import Contact
  File "/haiwen/seafile-server-6.1.2/seahub/seahub/contacts/models.py", line 54, in <module>
    class Contact(models.Model):
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py", line 139, in __new__
    new_class.add_to_class('_meta', Options(meta, **kwargs))
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py", line 324, in add_to_class
    value.contribute_to_class(cls, name)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/options.py", line 250, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/__init__.py", line 36, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/utils.py", line 241, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/utils.py", line 112, in load_backend
    return import_module('%s.base' % backend_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/haiwen/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/backends/mysql/base.py", line 27, in <module>
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18: version `libmariadbclient_18' not found (required by /usr/lib/python2.7/dist-packages/_mysql.x86_64-linux-gnu.so)
Error:Seahub failed to start.

Thanks for reply.

But how I sad. I’m solving this for 2 weeks. This answer I found as first and try nothing changed. There is maybe problem that I’m using MariaDB no MySQL (look at the log - libmariadbclient not libmysqldbclient). And I never had error libmysqlclient.so.18: cannot open shared object file no matter of file name. This problem they fix by autocreating simlink for libmysqlclient but they still not fixed version error.

I just solved this problem. I downgraded MariaDB and all libraries from 10.2 to 10.1. Please can you write some warning for other people to use default debian repositories for mariadb and do not install v10.2 on Debian 9.

Thanks