Mooncake: The new mooncake pip package do not contains libgrpc++.so.1

# mooncake master cannot run successfully

root@TENCENT64:/vllm-workspace#  /usr/local/lib/python3.12/dist-packages/mooncake/mooncake_master 
/usr/local/lib/python3.12/dist-packages/mooncake/mooncake_master: error while loading shared libraries: libgrpc++.so.1: cannot open shared object file: No such file or directory

# it lack of a lots of other dependencies

root@TENCENT64:/vllm-workspace# ldd /usr/local/lib/python3.12/dist-packages/mooncake/mooncake_master 
        linux-vdso.so.1 (0x00007ffc63fde000)
        libgrpc++.so.1 => not found
        libprotobuf.so.23 => not found
        libetcd-cpp-api.so => not found
        libibverbs.so.1 => /usr/lib/x86_64-linux-gnu/libibverbs.so.1 (0x00007fd2f9671000)
        libjsoncpp.so.25 => not found
        libglog.so.0 => not found
        libgflags.so.2.2 => not found
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd2f9443000)
        libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd2f9423000)
        libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007fd2f91fa000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd2f97af000)
        libnl-route-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200 (0x00007fd2f9177000)
        libnl-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-3.so.200 (0x00007fd2f9152000)
        libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007fd2f906b000)


# After I added lib_so to the LD_LIBRARY_PATH

root@TENCENT64:/vllm-workspace# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.12/dist-packages/mooncake/lib_so/
root@TENCENT64:/vllm-workspace# ldd /usr/local/lib/python3.12/dist-packages/mooncake/mooncake_master 
        linux-vdso.so.1 (0x00007fff9957d000)
        libgrpc++.so.1 => not found
        libprotobuf.so.23 => not found
        libetcd-cpp-api.so => /usr/local/lib/python3.12/dist-packages/mooncake/lib_so/libetcd-cpp-api.so (0x00007fae33fdd000)
        libibverbs.so.1 => /usr/lib/x86_64-linux-gnu/libibverbs.so.1 (0x00007fae33fba000)
        libjsoncpp.so.25 => not found
        libglog.so.0 => not found
        libgflags.so.2.2 => not found
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fae33d8c000)
        libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fae33d6c000)
        libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007fae33b43000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fae3457e000)
        libcpprest.so.2.10 => not found
        libgpr.so.10 => not found
        libgrpc.so.10 => not found
        libgrpc++.so.1 => not found
        libprotobuf.so.23 => not found
        libnl-route-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200 (0x00007fae33abc000)
        libnl-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-3.so.200 (0x00007fae33a99000)
        libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007fae339b2000)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21

Most upvoted comments

@xiaguan Great job, it works.

root@TENCENT64:/vllm-workspace# ldd  /usr/local/lib/python3.12/dist-packages/mooncake/mooncake_vllm_adaptor.so 
        linux-vdso.so.1 (0x00007ffff7fc1000)
        libglog-c040a6f3.so.0.4.0 => /usr/local/lib/python3.12/dist-packages/mooncake/../mooncake_transfer_engine.libs/libglog-c040a6f3.so.0.4.0 (0x00007ffff7c86000)
        libetcd_wrapper-a553d0a3.so => /usr/local/lib/python3.12/dist-packages/mooncake/../mooncake_transfer_engine.libs/libetcd_wrapper-a553d0a3.so (0x00007ffff6e3c000)
        libcurl.so.4 => /usr/lib/x86_64-linux-gnu/libcurl.so.4 (0x00007ffff6d8d000)
        libibverbs.so.1 => /usr/lib/x86_64-linux-gnu/libibverbs.so.1 (0x00007ffff6d6a000)
        libjsoncpp-7d699962.so.1.9.5 => /usr/local/lib/python3.12/dist-packages/mooncake/../mooncake_transfer_engine.libs/libjsoncpp-7d699962.so.1.9.5 (0x00007ffff6d2d000)
        libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007ffff6d20000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ffff6af4000)
        libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ffff6ad4000)
        libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007ffff68ab000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffff7fc3000)
        libunwind-5d1f6f10.so.8.0.1 => /usr/local/lib/python3.12/dist-packages/mooncake/../mooncake_transfer_engine.libs/libunwind-5d1f6f10.so.8.0.1 (0x00007ffff688f000)
        libgflags-f3c7dc50.so.2.2.2 => /usr/local/lib/python3.12/dist-packages/mooncake/../mooncake_transfer_engine.libs/libgflags-f3c7dc50.so.2.2.2 (0x00007ffff6861000)
        libnghttp2.so.14 => /usr/lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007ffff6837000)
        libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007ffff6816000)
        librtmp.so.1 => /usr/lib/x86_64-linux-gnu/librtmp.so.1 (0x00007ffff67f7000)
        libssh.so.4 => /usr/lib/x86_64-linux-gnu/libssh.so.4 (0x00007ffff678a000)
        libpsl.so.5 => /usr/lib/x86_64-linux-gnu/libpsl.so.5 (0x00007ffff6776000)
        libssl.so.3 => /usr/lib/x86_64-linux-gnu/libssl.so.3 (0x00007ffff66d0000)
        libcrypto.so.3 => /usr/lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007ffff628c000)
        libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007ffff6238000)
        libldap-2.5.so.0 => /usr/lib/x86_64-linux-gnu/libldap-2.5.so.0 (0x00007ffff61d9000)
        liblber-2.5.so.0 => /usr/lib/x86_64-linux-gnu/liblber-2.5.so.0 (0x00007ffff61c8000)
        libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007ffff60f9000)
        libbrotlidec.so.1 => /usr/lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007ffff60e9000)
        libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007ffff60cd000)
        libnl-route-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200 (0x00007ffff604a000)
        libnl-3.so.200 => /usr/lib/x86_64-linux-gnu/libnl-3.so.200 (0x00007ffff6027000)
        libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007ffff5f40000)
        liblzma.so.5 => /usr/lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ffff5f13000)
        libpthread.so.0 => /usr/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ffff5f0e000)
        libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007ffff5d64000)
        libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007ffff5b79000)
        libhogweed.so.6 => /usr/lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007ffff5b31000)
        libnettle.so.8 => /usr/lib/x86_64-linux-gnu/libnettle.so.8 (0x00007ffff5aeb000)
        libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007ffff5a67000)
        libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007ffff599c000)
        libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007ffff596d000)
        libcom_err.so.2 => /usr/lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007ffff5967000)
        libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007ffff5959000)
        libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007ffff593c000)
        libbrotlicommon.so.1 => /usr/lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007ffff5919000)
        libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007ffff57de000)
        libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007ffff57c6000)
        libkeyutils.so.1 => /usr/lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007ffff57bf000)
        libresolv.so.2 => /usr/lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ffff57a9000)
        libffi.so.8 => /usr/lib/x86_64-linux-gnu/libffi.so.8 (0x00007ffff579c000)

root@TENCENT64:/vllm-workspace#  /usr/local/lib/python3.12/dist-packages/mooncake/mooncake_master 
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0416 21:19:18.357553   690 master.cpp:27] Master service started on port 50051, enable_gc=0, max_threads=4

root@TENCENT64:/vllm-workspace# python3 -c "from mooncake.store import MooncakeDistributedStore"

After testing, it appears that the issue is related to the Python version—there seem to be some problems with installing version 3.12. The issue will be addressed and resolved tomorrow. Thank you for reporting it.

@xiaguan Thanks for your help. The following is my env, basically, it is a vllm container, you can verify it from vllm image

root@TENCENT64:/vllm-workspace# python3 --version Python 3.12.9 root@TENCENT64:/vllm-workspace# ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35 Copyright © 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.

Thank you so much. We will test with vllm container tomorrow. We have verified that it fits with the sglang container, but haven’t checked it with the vllm container yet. Currently, this is still a beta version for the sglang users, the official 0.3.0 release will definitely work well with both engines.

@xiaguan Is there any update?

fixed this issue in #249 yesterday

We are currently collecting several other patches for the next release. If you need an urgent fix for this issue, you can manually download the available py312 wheel package from: https://github.com/kvcache-ai/Mooncake/actions/runs/14463285244.

@ShangmingCai @xiaguan Admire your efficiency 🫡

Our latest distribution of Mooncake Python library has fixed this problem. Close this issue.

We are preparing to include all referenced dynamic libraries in the whl package. To work around the problem you can install all dependencies by using bash dependencies.sh in prior. See #222 in detail.