Skip to content

Context deadline exceeded error when searching indexes #2592

Closed

Description

@carlosjfcasero

Describe the bug

When running opencloud search index --all-spaces the error {"id":"go.micro.client","code":408,"detail":"context deadline exceeded","status":"Request Timeout"} appears after some time

Steps to reproduce

  1. run opencloud search index --all-spaces in container

Expected behavior

Command ends successfully.

Actual behavior

Get {"id":"go.micro.client","code":408,"detail":"context deadline exceeded","status":"Request Timeout"} error
After that, every run of command opencloud search index --all-spaces translates into log
2026-04-09T14:13:38Z ERR sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest code=Unknown end="09/Apr/2026:14:13:38 +0000" from=tcp://127.0.0.1:54594 host.name=opencloud-app-template-6c786f68bc-9lqrl line=github.com/opencloud-eu/reva/v2@v2.42.5/internal/grpc/interceptors/log/log.go:69 pkg=rgrpc service=storage-shares start="09/Apr/2026:14:13:38 +0000" time_ns=183781582 traceid=b897601d41a79b378fea4387cafc068f uri=/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces user-agent=grpc-go/1.79.2

Setup

Run Opencloud in a container in kubernetes

Details

SEARCH_EXTRACTOR_TYPE=tika
SEARCH_EXTRACTOR_TIKA_TIKA_URL=http://tika.tika:9998
FRONTEND_FULL_TEXT_SEARCH_ENABLED=true

Additional context

Add any other context about the problem here.

Activity

  1. schlegel11 commented on Apr 18, 2026

    @schlegel11

    If anyone tries to run the command opencloud search index --all-spaces to reindex/rescann all files via tika, you have to stop your opencloud instance and remove the content in /data/search directory.
    I still get the error calling ListReceivedSharesRequest log message but in this case the reindex works.

  2. carlosjfcasero commented on Apr 21, 2026

    @carlosjfcasero
    Author

    If anyone tries to run the command opencloud search index --all-spaces to reindex/rescann all files via tika, you have to stop your opencloud instance and remove the content in /data/search directory. I still get the error calling ListReceivedSharesRequest log message but in this case the reindex works.

    I'll try, thank you!

    EDIT: It worked!

  3. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon May 13, 2026
  4. dschmidt commented on Jul 31, 2026

    @dschmidt
    Contributor

    Per #3207 (comment)

    Yes you're right, the experience when using the CLI needs to be improved. We also still have the problem that the CLI doesn't wait indefinitely until the reindex process has completed, so returning an error message usually wouldn't reach the user (See #2592). I would defer that to a proper fix alongside #2592 and just go with the server log messages for now.

    When tackling this issue, we should report back spaces that could not be reindexed properly (and preferably what went wrong)

  5. added a commit that references this issue on Jul 31, 2026
    e26a009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions