Skip to content

search re-indexing fails on disabled spaces #3559

Description

@schweigisito

Describe the bug

opencloud 8.x.x introduces a new search index version in both bleve and also opensearch. This enforces a re-indexing of all spaces. Unfortunately the search re-indexing fails on disabled spaces.

Steps to reproduce

  • Create a new space, e.g. testspace and disable it
  • Trigger the re-indexing via
$ docker compose exec opencloud opencloud search index --all-spaces --force-rescan --insecure

=> It fails with:

failed to index space: rpc error: code = Unknown desc = error: not found: stat: error: not found: d9dc2372-2684-48f8-aa99-3fc672eddcf3
Error: rpc error: code = Unknown desc = error: not found: stat: error: not found: d9dc2372-2684-48f8-aa99-3fc672eddcf3
Usage:
  opencloud search index [flags]

Aliases:
  index, i

Flags:
      --all-spaces        index all spaces instead. This or --space is required.
      --endpoint string   the address of the search service gRPC endpoint. (default "127.0.0.1:9220")
      --force-rescan      force a rescan of all files, even if they are already indexed. This will make the indexing process much slower, but ensures that the index is up-to-date using the current search service configuration.
  -h, --help              help for index
      --insecure          disable TLS for the gRPC connection.
  -s, --space string      the id of the space to travers and index the files of. This or --all-spaces is required.

rpc error: code = Unknown desc = error: not found: stat: error: not found: d9dc2372-2684-48f8-aa99-3fc672eddcf3
  • Enable space
  • Re-run the re-indexing

=> Space gets re-indexed successfully.

Expected behavior

There are different scenarios, what the expected behaviour might be:

  • either skipping disabled spaces, but at least log them to tell the admin it needs to be re-indexed once it has been enabled again
  • or also re-indexing it although it is disabled, with the assumption that the search will work, once the space has been enabled again
  • or implement an automation which triggers the re-indexing once a disabled space gets enabled again

Actual behavior

See abouve.

Setup

Happens with 7.2.4 in k8s deployment using opensearch backend and also with docker compose usingbleve.

8.0.1 seems to skip disabled spaces but not really index them.

Activity

  1. added theissue type on Sep 18, 2026
  2. v-scharf commented on Sep 18, 2026

    @v-scharf
    Contributor

    sorry, I couldn't reproduce:
    tested: opencloud-7.2.4 against rolling-8.0.1, rolling 7.5.0 against rolling-8.0.1, bleve or opensearch with tika extracter - woks to me

    Image
  3. schweigisito commented on Sep 18, 2026

    @schweigisito
    MemberAuthor

    Grrrr, I still had 7.2.0 in .env file because of hunting another issue... Hence only reproducible with stable-7.2

  4. schweigisito commented on Sep 18, 2026

    @schweigisito
    MemberAuthor

    8.0.1 seems to skip disable spaces but not really index them.

    I can confirm this. Disabled space get displayed as they were indexed but actually they weren't.

  5. v-scharf commented on Sep 18, 2026

    @v-scharf
    Contributor

    Grrrr, I still had 7.2.0 in .env file because of hunting another issue... Hence only reproducible with stable-7.2

    Yes, I can confirm. search reindex fails in stable opencloud.
    I added test for that #3560

  6. schweigisito commented on Sep 18, 2026

    @schweigisito
    MemberAuthor

    This requires a backport to stable-7.2, as it breaks the post-migration job in opencloud-charts.

  7. bilogic commented on Sep 20, 2026

    @bilogic

    Running in docker

    $ opencloud search index --all-spaces --endpoint 127.0.0.1:9220
    failed to index space: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
    Error: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
    Usage:
      opencloud search index [flags]
    
    Aliases:
      index, i
    
    Flags:
          --all-spaces        index all spaces instead. This or --space is required.
          --endpoint string   the address of the search service gRPC endpoint. (default "127.0.0.1:9220")
          --force-rescan      force a rescan of all files, even if they are already indexed. This will make the indexing process much slower, but ensures that the index is up-to-date using the current search service configuration.
      -h, --help              help for index
          --insecure          disable TLS for the gRPC connection.
      -s, --space string      the id of the space to travers and index the files of. This or --all-spaces is required.
    
    rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
  8. self-assigned this
    on Sep 22, 2026
  9. added
    backport-required
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Component:BackendPriority:p2-highType:Bugbackport-required

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions