Skip to content

Java Indexer failed to index project #571

@CaoGaorong

Description

@CaoGaorong

I have compiled the glean from source code and built the Java Indexer. But when I index the Java proejct, it reports error:

*** Exception: basic-thriftservice does not support Tier
CallStack (from HasCallStack):
  error, called at glean/util/Glean/Impl/ThriftService.hs:98:25 in glean-0.1.0.0-l-util-63572f97e9c1b8d79e35c8d87fea30a67c6904aa6152962ada96215ef7135341:Glean.Impl.ThriftService

Here is my steps:

  1. build the Glean (Everything works fine)
-- Installing: /root/.hsthrift/lib/cmake/rocksdb/RocksDBConfig.cmake
-- Installing: /root/.hsthrift/lib/cmake/rocksdb/RocksDBConfigVersion.cmake
-- Installing: /root/.hsthrift/lib/pkgconfig/rocksdb.pc
export LD_LIBRARY_PATH=/root/.hsthrift/lib
export PKG_CONFIG_PATH=/root/.hsthrift/lib/pkgconfig
export PATH=$PATH:/root/.hsthrift/bin
  1. run the Java indexer
@#cabal build exe:glean
Up to date

As above shown, the java indexer is works good.

  1. index the Java project(change to the project dir and run the following command):
@#glean index java-lsif ./ --db wdappser/wdappserInstance
glean: basic-thriftservice does not support Tier
CallStack (from HasCallStack):
  error, called at glean/util/Glean/Impl/ThriftService.hs:98:25 in glean-0.1.0.0-l-util-63572f97e9c1b8d79e35c8d87fea30a67c6904aa6152962ada96215ef7135341:Glean.Impl.ThriftService

or index in the shell:

@#glean shell
Glean Shell, built on 2025-07-24 11:05:44.998540937 UTC, from rev <unknown>
Using service glean.query.prod
type :help for help.
> :index java-lsif /home/www/wdappserver
*** Exception: basic-thriftservice does not support Tier
CallStack (from HasCallStack):
  error, called at glean/util/Glean/Impl/ThriftService.hs:98:25 in glean-0.1.0.0-l-util-63572f97e9c1b8d79e35c8d87fea30a67c6904aa6152962ada96215ef7135341:Glean.Impl.ThriftService
>

I had rebuilt the Glean but it still not works. Is there any solution or suguestion to solve this? Or why does it reports "Exception: basic-thriftservice does not support Tier"? Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions