Repository navigation
Labels
Component:BackendPriority:p2-highHigh priorityType:Bugbackport-requiredNeeds a backport to the current stable branch
Description
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.
testspaceand 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.
Metadata
Metadata
Assignees
Labels
Component:BackendPriority:p2-highHigh priorityType:Bugbackport-requiredNeeds a backport to the current stable branch
Type
Projects
- StatusShow more project fieldsDone
Activity
v-scharf commentedon Sep 18, 2026
sorry, I couldn't reproduce:
tested:
opencloud-7.2.4againstrolling-8.0.1,rolling 7.5.0againstrolling-8.0.1,bleveoropensearchwithtikaextracter - woks to meschweigisito commentedon Sep 18, 2026
Grrrr, I still had
7.2.0in.envfile because of hunting another issue... Hence only reproducible with stable-7.2schweigisito commentedon Sep 18, 2026
I can confirm this. Disabled space get displayed as they were indexed but actually they weren't.
v-scharf commentedon Sep 18, 2026
Yes, I can confirm. search reindex fails in stable opencloud.
I added test for that #3560
schweigisito commentedon Sep 18, 2026
This requires a backport to stable-7.2, as it breaks the post-migration job in opencloud-charts.
bilogic commentedon Sep 20, 2026
Running in docker