Repository navigation
Closed
Closed
Copy link
Labels
Description
Describe the bug
If OpenCloud 4.0.x was connected to opensearch, and has created an opencloud-resource index, updating to 6.1.0 fails while starting the OpenCloud. The search service throws an error and OpenCloud is not started properly.
Steps to reproduce
- Install current stable OpenCloud 4.0.x (e.g. via the
helmfiledeployment with included opensearch cluster deployment - Change deployment to use rolling 6.1.0
- Restart OpenCloud pods/service
Expected behavior
- Either a new index is created (and the old one gets deleted)
- Or a throwing an error message telling the administrator what to do or what exactly needs to be done manually
Actual behavior
- While starting the search service, it gets logged:
opencloud: Failed service 'search' (1.000000 failures of 5.000000), restarting: true, error: failed to create OpenSearch backend: failed to apply index template: index opencloud-resource allready exists and is different from the requested version, manual action required: mappings.properties.Content
mappings.properties.Favorites
-
After the fifth error the pod gets destroyed and restarted, or, depending on the deployment, the process gets restarted
-
deleting the
opencloud-resourceindex manually via
$ curl -X DELETE localhost:9200/opencloud-resource
(on an opensearch pod or against the cluster URL) partially fixes the problem. The pod/service is starting again.
- Unfortunately the search doesn't return any results.
- Trying to re-index, doesn't work either:
$ kubectl -n opencloud exec opencloud-api-6f687b6cf-4485z -- opencloud search index --all-spaces
Defaulted container "api" out of: api, fetch-password-list (init)
failed to index space: {"id":"go.micro.client","code":500,"detail":"service eu.opencloud.api.search: not found","status":"Internal Server Error"}
Error: {"id":"go.micro.client","code":500,"detail":"service eu.opencloud.api.search: not found","status":"Internal Server Error"}
Usage:
opencloud search index [flags]
Aliases:
index, i
Flags:
--all-spaces index all spaces instead. This or --space is required.
--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
-s, --space string the id of the space to travers and index the files of. This or --all-spaces is required.
{"id":"go.micro.client","code":500,"detail":"service eu.opencloud.api.search: not found","status":"Internal Server Error"}
command terminated with exit code 1
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
schweigisito commentedon May 5, 2026
The typo within the error message has been addressed in #2701
aduffeck commentedon May 5, 2026
OpenCloud 6.0 introduced a breaking change regarding the opensearch index and the changelog linked to this issue: #2514. Did you upgrade from 5.x to 6.1 directly or was that a 6.0->6.1 upgrade? Regardless, I understand that there probably should have been a clearer statement on the release notes besides the "Breaking change" link to the issue.
The
service eu.opencloud.api.search: not founderror indicates that the search service didn't come up properly yet after you dropped the old index. Can you try to bring it up and run the reindex command again?schweigisito commentedon May 6, 2026
Hm:
Also the actual search service' port 9220 seems to be bound already:
Creating a new text file via WebUI, including e.g. "test search string" and finally using the search and search for "test search string" finds the new text file. So the search seems to work correctly.
schweigisito commentedon May 6, 2026
I was coming from latest stable release 4.0.x and used the latest 6.1.0 rolling image.
schweigisito commentedon May 6, 2026
Maybe worth to mention again: The setup has been deployed using
opencloud-chartsandhelmfile. Means: the following services are enabled on the two different pod types:and
butonic commentedon May 12, 2026
search runs in both pods. the registry is set to memory.
so the index command should be able to find the search service:
👀
butonic commentedon May 12, 2026
in the api pod event handling is disabled:
in the backend pod gRPC is disabled:
searching in the web ui does work ...
the default config is correct:
that should register eu.opencloud.api.search in the memory registry ... and the cli ... 🤦
the cli starts a new process and that obviously has not started and registered a search service in its own process space ...
We can mitigate this by setting the MICRO_REGISTRY=nats-js-kv ... but I would prefer if we could just give the cli command a url to connect to ...
schweigisito commentedon May 12, 2026
I have changed the priority of this issue, as the propagated "migration path" from version 4.0.x to next stable release doesn't work and would leave a partially broken system. Either, without manually deleting the index a not starting process, or, with deleted index, a not existing and recreatable search index.
butonic commentedon May 18, 2026
I created #2755 ... but a workaround for now could be starting an api pod with
MICRO_REGISTRY=nats-js-kv. that should allow the cli command to talk to the registry in the opencloud process.build(deps): bump go-micro to v4.11.4-0.20260929213538-cd412c159a26
build(deps): bump go-micro to v4.11.4-0.20260929213538-cd412c159a26
rhafer commentedon Nov 9, 2026
@schweigisito Do you know if this is still relevant for 9.0.x?
schweigisito commentedon Nov 9, 2026
A not starting pod or opencloud (search service) has been fixed meanwhile by an index migration within the charts. Still to address that the migration creates and empty index. But this has been filed in a separate issue.