LDAP Broken under Seafile 8.0.1 Server

I managed to install the 8.0.5 version on my laptop, architecture AMD64, and it is working!

I copied the seafile configuration from the instance I am running on raspberry, which means it connects to the same database (MySQL) and the same LDAP server. I even installed the exact same packages (I am running it inside Docker container that I am building myself).

Since the only difference between the 2 instances is in the binaries, I can conclude that there is something different in the ARM ones.

@jobenvil, is there any more information I can provide? Now that I have 2 instances that I can compare :slight_smile:

@nicu thanks for asking! You could compare:

dpkg -l | grep -i ldap
ldd seaf-fuse seaf-server (directory i.e. /home/seafile/seafile-server-8.0.5/seafile/bin)

and check this also, but I think you already know about it:

and here the seafile “manual”:

https://manual.seafile.com/deploy/using_ldap/

thank you @jobenvil for taking so much of your time to look into this issue!

I did some more investigation based on the info you provided.
ldd seaf-fuse seaf-server - I pasted at the end of this post the results of running command in both arm and amd installations (sorry for posting the here, I could not find a way to attach them as files)

what I noticed is that those 3 ldap libraries mentioned in the manual and the linked post,

liblber-2.4.so.2 libldap-2.4 .so.2 libsasl2.so.2

are not listed as dependencies in the arm instance but they are in the amd

additionally, I noticed that in the folder /opt/seafile/seafile-server-8.0.5/seafile/lib I have

  • for arm
    liblber-2.4.so.2 libsasl2.so.2 libldap_r-2.4.so.2
  • for amd
    liblber-2.4.so.2 libsasl2.so.2 libldap-2.4.so.2
    notice the _r for libldap - not sure if this makes any difference since they don’t seem to be used, based on the below list of dependencies

arm

seaf-fuse:
linux-vdso.so.1 (0xbee7e000)
libssl.so.1.1 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 (0xb6e6c000)
libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0xb6cb6000)
libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb6ca0000)
libevent-2.1.so.6 => /usr/lib/arm-linux-gnueabihf/libevent-2.1.so.6 (0xb6c58000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6c33000)
libsearpc.so.1 => not found
libgio-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0 (0xb6b17000)
libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xb6acd000)
libglib-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb69ec000)
libjansson.so.4 => not found
libfuse.so.2 => not found
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69c8000)
libmariadb.so.3 => /usr/lib/arm-linux-gnueabihf/libmariadb.so.3 (0xb6987000)
libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb68ca000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb67d0000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb67bd000)
/lib/ld-linux-armhf.so.3 (0xb6f01000)
libgmodule-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 (0xb67aa000)
libmount.so.1 => /lib/arm-linux-gnueabihf/libmount.so.1 (0xb675e000)
libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0xb6734000)
libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb6714000)
libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xb66fe000)
libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb66a1000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6626000)
libgnutls.so.30 => /usr/lib/arm-linux-gnueabihf/libgnutls.so.30 (0xb64e9000)
libblkid.so.1 => /lib/arm-linux-gnueabihf/libblkid.so.1 (0xb64a5000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb648f000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6466000)
libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb63a5000)
libidn2.so.0 => /usr/lib/arm-linux-gnueabihf/libidn2.so.0 (0xb637a000)
libunistring.so.2 => /usr/lib/arm-linux-gnueabihf/libunistring.so.2 (0xb620b000)
libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb61ef000)
libnettle.so.6 => /usr/lib/arm-linux-gnueabihf/libnettle.so.6 (0xb61b3000)
libhogweed.so.4 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.4 (0xb6179000)
libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb611b000)
seaf-server:
linux-vdso.so.1 (0xbedf6000)
libssl.so.1.1 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 (0xb6e53000)
libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0xb6c9d000)
libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb6c87000)
libevent-2.1.so.6 => /usr/lib/arm-linux-gnueabihf/libevent-2.1.so.6 (0xb6c3f000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6c1a000)
libsearpc.so.1 => not found
libgio-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0 (0xb6afe000)
libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xb6ab4000)
libglib-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb69d3000)
libjansson.so.4 => not found
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69af000)
libarchive.so.13 => not found
libmariadb.so.3 => /usr/lib/arm-linux-gnueabihf/libmariadb.so.3 (0xb696e000)
libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb68b1000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb67b7000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb67a4000)
/lib/ld-linux-armhf.so.3 (0xb6f72000)
libgmodule-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 (0xb6791000)
libmount.so.1 => /lib/arm-linux-gnueabihf/libmount.so.1 (0xb6745000)
libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0xb671b000)
libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb66fb000)
libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xb66e5000)
libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb6688000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb660d000)
libgnutls.so.30 => /usr/lib/arm-linux-gnueabihf/libgnutls.so.30 (0xb64d0000)
libblkid.so.1 => /lib/arm-linux-gnueabihf/libblkid.so.1 (0xb648c000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6476000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb644d000)
libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb638c000)
libidn2.so.0 => /usr/lib/arm-linux-gnueabihf/libidn2.so.0 (0xb6361000)
libunistring.so.2 => /usr/lib/arm-linux-gnueabihf/libunistring.so.2 (0xb61f2000)
libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb61d6000)
libnettle.so.6 => /usr/lib/arm-linux-gnueabihf/libnettle.so.6 (0xb619a000)
libhogweed.so.4 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.4 (0xb6160000)
libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb6102000)

amd

seaf-fuse:
linux-vdso.so.1 (0x00007ffe519fe000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f8c51dfa000)
libevent-2.0.so.5 => not found
libsearpc.so.1 => not found
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f8c51c3c000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f8c51be6000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f8c51ac7000)
libjansson.so.4 => not found
libfuse.so.2 => not found
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8c518a7000)
libldap-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap-2.4.so.2 (0x00007f8c51853000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f8c51842000)
libmariadb.so.3 => /usr/lib/x86_64-linux-gnu/libmariadb.so.3 (0x00007f8c517eb000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8c517e4000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8c51661000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8c51640000)
libssl.so.10 => not found
libcrypto.so.10 => not found
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f8c5151e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8c5135b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8c51e0e000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f8c51355000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f8c512f6000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f8c510ce000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f8c510b4000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f8c510aa000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f8c51034000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f8c51017000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f8c50e6a000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f8c50e15000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8c50e0b000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f8c50cda000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f8c50cbb000)
libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f8c50b37000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f8c50924000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f8c508ec000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f8c508b3000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f8c5082e000)
seaf-server:
linux-vdso.so.1 (0x00007ffec0891000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f738d207000)
libevent-2.0.so.5 => not found
libsearpc.so.1 => not found
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f738d049000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f738cff3000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f738ced4000)
libjansson.so.4 => not found
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f738ccb4000)
libarchive.so.13 => not found
libldap-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap-2.4.so.2 (0x00007f738cc60000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f738cc4f000)
libmariadb.so.3 => /usr/lib/x86_64-linux-gnu/libmariadb.so.3 (0x00007f738cbf8000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f738cbf1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f738ca6e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f738ca4d000)
libssl.so.10 => not found
libcrypto.so.10 => not found
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f738c92b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f738c768000)
/lib64/ld-linux-x86-64.so.2 (0x00007f738d21b000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f738c762000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f738c703000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f738c4db000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f738c4c1000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f738c4b7000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f738c441000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f738c424000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f738c277000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f738c222000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f738c218000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f738c0e7000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f738c0c8000)
libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f738bf44000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f738bd31000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f738bcf9000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f738bcc0000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f738bc3b000)

@nicu we have to thank you.

It is good that you read the linked post. The key is in these three libraries. In some cases Seafile recommends to move them to another directory and then the seafile binaries will use the libraries from your system and not the linked one. Why? because they compile with a specific environment, BUT we compile (or myself) with native binaries. It does means, that I build the seafile binaries inside a “focal”, “bionic”, “buster” and “stretch” lxc containers. Our linked build binaries have literaly the same libaries that would have by default the system, therefore this garantee some libraries coherence.

I observe something different between your posted arm libraries and mine:

root@hiperborea /home/seafile/seafile-server-8.0.5/seafile/bin # ldd seaf-fuse
        linux-vdso.so.1 (0xbef2c000)
        libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0xb6dbd000)
        libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb6da7000)
        libevent-2.1.so.7 => /usr/lib/arm-linux-gnueabihf/libevent-2.1.so.7 (0xb6d61000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6d3b000)
        libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xb6cea000)
        libglib-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb6c02000)
        libjansson.so.4 => /usr/lib/arm-linux-gnueabihf/libjansson.so.4 (0xb6be9000)
        libfuse.so.2 => /lib/arm-linux-gnueabihf/libfuse.so.2 (0xb6bb6000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6b93000)
        libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0xb6b4e000)   # HERE
        liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0xb6b35000)       # HERE
        libmariadb.so.3 => /usr/lib/arm-linux-gnueabihf/libmariadb.so.3 (0xb6af4000)
        libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb6a31000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6933000)
        /lib/ld-linux-armhf.so.3 (0xb6fbb000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6920000)
        libffi.so.7 => /usr/lib/arm-linux-gnueabihf/libffi.so.7 (0xb690a000)
        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb68ac000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb688c000)
        libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0xb686b000)         # HERE
        libgssapi.so.3 => /usr/lib/arm-linux-gnueabihf/libgssapi.so.3 (0xb6835000)
        libgnutls.so.30 => /usr/lib/arm-linux-gnueabihf/libgnutls.so.30 (0xb66df000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6676000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb664d000)
        libheimntlm.so.0 => /usr/lib/arm-linux-gnueabihf/libheimntlm.so.0 (0xb6636000)
        libkrb5.so.26 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.26 (0xb65d2000)
        libasn1.so.8 => /usr/lib/arm-linux-gnueabihf/libasn1.so.8 (0xb656b000)
        libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0xb6558000)
        libhcrypto.so.4 => /usr/lib/arm-linux-gnueabihf/libhcrypto.so.4 (0xb6523000)
        libroken.so.18 => /usr/lib/arm-linux-gnueabihf/libroken.so.18 (0xb6505000)
        libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb6440000)
        libidn2.so.0 => /usr/lib/arm-linux-gnueabihf/libidn2.so.0 (0xb6413000)
        libunistring.so.2 => /usr/lib/arm-linux-gnueabihf/libunistring.so.2 (0xb62a7000)
        libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb628a000)
        libnettle.so.7 => /usr/lib/arm-linux-gnueabihf/libnettle.so.7 (0xb624e000)
        libhogweed.so.5 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.5 (0xb6215000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb61b7000)
        libwind.so.0 => /usr/lib/arm-linux-gnueabihf/libwind.so.0 (0xb617f000)
        libheimbase.so.1 => /usr/lib/arm-linux-gnueabihf/libheimbase.so.1 (0xb6166000)
        libhx509.so.5 => /usr/lib/arm-linux-gnueabihf/libhx509.so.5 (0xb612a000)
        libcrypt.so.1 => /lib/arm-linux-gnueabihf/libcrypt.so.1 (0xb60e4000)

root@hiperborea /home/seafile/seafile-server-8.0.5/seafile/bin # ldd seaf-server
        linux-vdso.so.1 (0xbef02000)
        libcrypto.so.1.1 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0xb6d40000)
        libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb6d2a000)
        libevent-2.1.so.7 => /usr/lib/arm-linux-gnueabihf/libevent-2.1.so.7 (0xb6ce4000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6cbe000)
        libsearpc.so.1 => not found
        libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xb6c6d000)
        libglib-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb6b85000)
        libjansson.so.4 => /usr/lib/arm-linux-gnueabihf/libjansson.so.4 (0xb6b6c000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6b49000)
        libarchive.so.13 => /usr/lib/arm-linux-gnueabihf/libarchive.so.13 (0xb6abc000)
        libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0xb6a77000)
        liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0xb6a5e000)
        libmariadb.so.3 => /usr/lib/arm-linux-gnueabihf/libmariadb.so.3 (0xb6a1d000)
        libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb695a000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb685c000)
        /lib/ld-linux-armhf.so.3 (0xb6fcf000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6849000)
        libffi.so.7 => /usr/lib/arm-linux-gnueabihf/libffi.so.7 (0xb6833000)
        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb67d5000)
        libnettle.so.7 => /usr/lib/arm-linux-gnueabihf/libnettle.so.7 (0xb6799000)
        libacl.so.1 => /usr/lib/arm-linux-gnueabihf/libacl.so.1 (0xb6783000)
        liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0xb6759000)
        libzstd.so.1 => /usr/lib/arm-linux-gnueabihf/libzstd.so.1 (0xb66de000)
        liblz4.so.1 => /usr/lib/arm-linux-gnueabihf/liblz4.so.1 (0xb66b8000)
        libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0xb669c000)
        libxml2.so.2 => /usr/lib/arm-linux-gnueabihf/libxml2.so.2 (0xb6582000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb6562000)
        libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0xb6541000)
        libgssapi.so.3 => /usr/lib/arm-linux-gnueabihf/libgssapi.so.3 (0xb650b000)
        libgnutls.so.30 => /usr/lib/arm-linux-gnueabihf/libgnutls.so.30 (0xb63b5000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb634c000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6323000)
        libicuuc.so.66 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.66 (0xb61d5000)
        libheimntlm.so.0 => /usr/lib/arm-linux-gnueabihf/libheimntlm.so.0 (0xb61be000)
        libkrb5.so.26 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.26 (0xb615a000)
        libasn1.so.8 => /usr/lib/arm-linux-gnueabihf/libasn1.so.8 (0xb60f3000)
        libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0xb60e0000)
        libhcrypto.so.4 => /usr/lib/arm-linux-gnueabihf/libhcrypto.so.4 (0xb60ab000)
        libroken.so.18 => /usr/lib/arm-linux-gnueabihf/libroken.so.18 (0xb608d000)
        libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb5fc8000)
        libidn2.so.0 => /usr/lib/arm-linux-gnueabihf/libidn2.so.0 (0xb5f9b000)
        libunistring.so.2 => /usr/lib/arm-linux-gnueabihf/libunistring.so.2 (0xb5e2f000)
        libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb5e12000)
        libhogweed.so.5 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.5 (0xb5dd9000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb5d7b000)
        libicudata.so.66 => /usr/lib/arm-linux-gnueabihf/libicudata.so.66 (0xb42ad000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb4164000)
        libwind.so.0 => /usr/lib/arm-linux-gnueabihf/libwind.so.0 (0xb412c000)
        libheimbase.so.1 => /usr/lib/arm-linux-gnueabihf/libheimbase.so.1 (0xb4113000)
        libhx509.so.5 => /usr/lib/arm-linux-gnueabihf/libhx509.so.5 (0xb40d7000)
        libcrypt.so.1 => /lib/arm-linux-gnueabihf/libcrypt.so.1 (0xb4091000)

and I can observe all these three libraries inside the /lib/ directory:

root@hiperborea /home/seafile/seafile-server-8.0.5/seafile/lib # ll
total 42984
-rw-r--r-- 1 seafile seafile    21864 Jun 18 19:11 libacl.so.1
-rw-r--r-- 1 seafile seafile   509364 Jun 18 19:11 libarchive.so.13
-rw-r--r-- 1 seafile seafile   355172 Jun 18 19:11 libasn1.so.8
-rw-r--r-- 1 seafile seafile    49468 Jun 18 19:11 libbz2.so.1.0
-rw-r--r-- 1 seafile seafile     9528 Jun 18 19:11 libcom_err.so.2
-rw-r--r-- 1 seafile seafile  1679776 Jun 18 19:11 libcrypto.so.1.1
-rw-r--r-- 1 seafile seafile   185768 Jun 18 19:11 libcrypt.so.1
-rw-r--r-- 1 seafile seafile   218708 Jun 18 19:11 libevent-2.1.so.7
-rw-r--r-- 1 seafile seafile    22172 Jun 18 19:11 libffi.so.7
-rw-r--r-- 1 seafile seafile   140780 Jun 18 19:11 libfuse.so.2
-rw-r--r-- 1 seafile seafile    99996 Jun 18 19:11 libgcc_s.so.1
-rw-r--r-- 1 seafile seafile   883048 Jun 18 19:11 libglib-2.0.so.0
-rw-r--r-- 1 seafile seafile   317084 Jun 18 19:11 libgmp.so.10
-rw-r--r-- 1 seafile seafile  1329996 Jun 18 19:11 libgnutls.so.30
-rw-r--r-- 1 seafile seafile   264496 Jun 18 19:11 libgobject-2.0.so.0
-rw-r--r-- 1 seafile seafile   155712 Jun 18 19:11 libgssapi.so.3
-rw-r--r-- 1 seafile seafile   146168 Jun 18 19:11 libhcrypto.so.4
-rw-r--r-- 1 seafile seafile    34632 Jun 18 19:11 libheimbase.so.1
-rw-r--r-- 1 seafile seafile    26292 Jun 18 19:11 libheimntlm.so.0
-rw-r--r-- 1 seafile seafile   165688 Jun 18 19:11 libhogweed.so.5
-rw-r--r-- 1 seafile seafile   179500 Jun 18 19:11 libhx509.so.5
-rw-r--r-- 1 seafile seafile 28038296 Jun 18 19:11 libicudata.so.66
-rw-r--r-- 1 seafile seafile  1295940 Jun 18 19:11 libicuuc.so.66
-rw-r--r-- 1 seafile seafile   107840 Jun 18 19:11 libidn2.so.0
-rw-r--r-- 1 seafile seafile    34312 Jun 18 19:11 libjansson.so.4
-rw-r--r-- 1 seafile seafile   340124 Jun 18 19:11 libkrb5.so.26
-rw-r--r-- 1 seafile seafile    34240 Jun 18 19:11 liblber-2.4.so.2    # HERE
-rw-r--r-- 1 seafile seafile   211020 Jun 18 19:11 libldap_r-2.4.so.2  # HERE
-rw-r--r-- 1 seafile seafile    87428 Jun 18 19:11 liblz4.so.1
-rw-r--r-- 1 seafile seafile   104024 Jun 18 19:11 liblzma.so.5
-rw-r--r-- 1 seafile seafile   197448 Jun 18 19:11 libmariadb.so.3
-rw-r--r-- 1 seafile seafile   177764 Jun 18 19:11 libnettle.so.7
-rw-r--r-- 1 seafile seafile   737520 Jun 18 19:11 libp11-kit.so.0
-rw-r--r-- 1 seafile seafile   316748 Jun 18 19:11 libpcre.so.3
-rw-r--r-- 1 seafile seafile    55056 Jun 18 19:11 libroken.so.18
-rw-r--r-- 1 seafile seafile    67396 Jun 18 19:11 libsasl2.so.2     # HERE
lrwxrwxrwx 1 seafile seafile       18 Jun 18 19:09 libsearpc.so -> libsearpc.so.1.0.2
lrwxrwxrwx 1 seafile seafile       18 Jun 18 19:09 libsearpc.so.1 -> libsearpc.so.1.0.2
-rwxr-xr-x 1 seafile seafile    30604 Jun 18 19:11 libsearpc.so.1.0.2
-rw-r--r-- 1 seafile seafile   732296 Jun 18 19:11 libsqlite3.so.0
-rw-r--r-- 1 seafile seafile  1274760 Jun 18 19:11 libstdc++.so.6
-rw-r--r-- 1 seafile seafile    50604 Jun 18 19:11 libtasn1.so.6
-rw-r--r-- 1 seafile seafile  1422692 Jun 18 19:11 libunistring.so.2
-rw-r--r-- 1 seafile seafile    21968 Jun 18 19:11 libuuid.so.1
-rw-r--r-- 1 seafile seafile   161140 Jun 18 19:11 libwind.so.0
-rw-r--r-- 1 seafile seafile  1088428 Jun 18 19:11 libxml2.so.2
-rw-r--r-- 1 seafile seafile    75340 Jun 18 19:11 libz.so.1
-rw-r--r-- 1 seafile seafile   435576 Jun 18 19:11 libzstd.so.1
drwxrwxr-x 2 seafile seafile     4096 Jun 18 19:11 pkgconfig
drwxrwxr-x 3 seafile seafile     4096 Jun 18 19:09 python3.6

The libldap library on the end system with ubuntu focal:

root@hiperborea /home/seafile/seafile-server-8.0.5/seafile/lib # ll /usr/lib/arm-linux-gnueabihf/libldap*
lrwxrwxrwx 1 root root     18 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap-2.4.so.2 -> libldap_r-2.4.so.2
lrwxrwxrwx 1 root root     11 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap.a -> libldap_r.a
lrwxrwxrwx 1 root root     24 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.10.12
-rw-r--r-- 1 root root 211020 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2.10.12
-rw-r--r-- 1 root root 410088 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r.a
lrwxrwxrwx 1 root root     24 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r.so -> libldap_r-2.4.so.2.10.12
lrwxrwxrwx 1 root root     12 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap.so -> libldap_r.so

The libldap library on the lxc ubuntu focal container with:

root@rpi-focal:/home/seafile#  ll /usr/lib/arm-linux-gnueabihf/libldap*
lrwxrwxrwx 1 root root     18 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap-2.4.so.2 -> libldap_r-2.4.so.2
lrwxrwxrwx 1 root root     11 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap.a -> libldap_r.a
lrwxrwxrwx 1 root root     12 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap.so -> libldap_r.so
lrwxrwxrwx 1 root root     24 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.10.12
-rw-r--r-- 1 root root 211020 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2.10.12
-rw-r--r-- 1 root root 410088 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r.a
lrwxrwxrwx 1 root root     24 Apr  8 06:22 /usr/lib/arm-linux-gnueabihf/libldap_r.so -> libldap_r-2.4.so.2.10.12

I would dig why your seaf-fuse and seaf-server binaries have no link to the libldap_*, liblber* and libsasl2

@nicu did you compile by yourself or did you download the binaries from Github?

If you downloaded from GitHub, which distro do you have?

I downloaded the binaries from Github.
The distribution I am using is Debian Buster - I am installing Seafile in a Docker container based on debian:buster-slim

Aside from the seafile binaries, I am installing the following system packages

apt-get install -y \ 
        default-libmysqlclient-dev \
        memcached libmemcached-dev \
        python3 \
        python3-setuptools \
        python3-ldap \
        python3-pylibmc \
        python3-urllib3 \
        ffmpeg \
        python3-pil \
        python3-pip \
        python3-pymysql \
        python3-memcache \
        python3-requests; \

and then python packages

pip3 install requests_oauthlib Pillow captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha future mysqlclient

@nicu I found the issue. It turns out that I uploaded an “old” v8.0.5 build and therefore not linked the ldap libraries to the binaries. Thanks to your posts it was possible to discover the problem :+1:

I built again all the 4 distros. They are already uploaded. Please check now :pray:

Now it works. Thanks a lot

1 Like

It also works for me! :partying_face:
Thank you @jobenvil and everyone else for your time and effort!

1 Like

@nicu Sure, we are the Seafile community :raised_hands: :muscle: