Seahub wont start after Update from 10 to 11 without specific error

Hey guys!

Today I updated Seafile from 9 to 10 and 10 to 11 and now Sehub wont start anymore.

The only “error message” I get ist this:

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

I also updatet my Debian 11.11 to 12.8 today and set the Python3 version to 3.11.2 for the seafile user (former 3.6). I also set an virtual envoronment. I tried to install all new necessary libs in both environments but always fail.

Buuut, when I try to install python_ldap I get this error:

Building wheels for collected packages: python-ldap
  Building wheel for python-ldap (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for python-ldap (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [82 lines of output]
      /tmp/pip-build-env-xnlxhyk5/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-311
      copying Lib/ldapurl.py -> build/lib.linux-x86_64-cpython-311
      copying Lib/ldif.py -> build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/filter.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/compat.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/logger.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/dn.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/constants.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/async.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/functions.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-cpython-311/ldap
      copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-cpython-311/ldap
      creating build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-cpython-311/ldap/controls
      creating build/lib.linux-x86_64-cpython-311/ldap/extop
      copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-cpython-311/ldap/extop
      copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-cpython-311/ldap/extop
      copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-cpython-311/ldap/extop
      creating build/lib.linux-x86_64-cpython-311/ldap/schema
      copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-cpython-311/ldap/schema
      copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-cpython-311/ldap/schema
      copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-cpython-311/ldap/schema
      copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-cpython-311/ldap/schema
      creating build/lib.linux-x86_64-cpython-311/slapdtest
      copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-cpython-311/slapdtest
      copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-cpython-311/slapdtest
      running egg_info
      writing Lib/python_ldap.egg-info/PKG-INFO
      writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
      writing requirements to Lib/python_ldap.egg-info/requires.txt
      writing top-level names to Lib/python_ldap.egg-info/top_level.txt
      reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'Doc/.build'
      adding license file 'LICENCE'
      writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
      creating build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-cpython-311/slapdtest/certs
      running build_ext
      building '_ldap' extension
      creating build/temp.linux-x86_64-cpython-311/Modules
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.3 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/home/seafile/include -I/usr/include/python3.11 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-311/Modules/LDAPObject.o
      Modules/LDAPObject.c:16:10: fatal error: sasl/sasl.h: No such file or directory
         16 | #include <sasl/sasl.h>
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-ldap
Failed to build python-ldap
ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects

I don’t use LDAP so I don’t know if this lib is important to run seahub 11?

python3-dev ldap-utils libldap2-dev is installed. Seafile runs without any errors. MySQL migration wasn’t necessary because I used it from first installation.

If you need some additional information please tell me.

Found the culprit. :slight_smile:

My problem was that I tried to re-install the necessary new libs in the virtual python env and it succeeded. After I edited the service files in /etc/systemd/system and deleted the old python3.6 part in the environment path. After I added the virtual one and retried. It runs!