Problem create Engine - Enterprise Search encountered an error. Check Kibana Server logs for details

Hi. I have a problem with creating an engine. When creating a new index-based engine, this problem pops up:

Enterprise Search encountered an error. Check Kibana Server logs for details.

In the kibana logs I find something like this:

[2023-08-28T17:45:08.300+00:00][ERROR][plugins.enterpriseSearch] An error occurred while resolving request to https://example.com/internal/enterprise_search/search_indices: Enterprise Search encountered an error.
[2023-08-28T17:45:08.302+00:00][ERROR][plugins.enterpriseSearch] ResponseError: index_closed_exception
	Root causes:
		index_closed_exception: closed
    at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:479:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at KibanaTransport.request (/usr/share/kibana/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
    at Indices.stats (/usr/share/kibana/node_modules/@elastic/elasticsearch/lib/api/api/indices.js:1401:16)
    at fetchIndexStats (/usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/server/lib/indices/fetch_index_stats.js:17:7)
    at fetchSearchIndices (/usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/server/lib/indices/fetch_indices.js:31:24)
    at /usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/server/routes/enterprise_search/indices.js:64:21
    at /usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/server/utils/elasticsearch_error_handler.js:21:14
    at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:146:30)
    at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:112:50)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
    at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:32)
    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)

When creating managed docs engine I don't have such problem.

Kubernetes cluster on bare metal
Version 8.9.0.

Is the relevant index closed? And have you tried to open it first?

Okay it's true.
I checked all the indexes using GET /_cat/indices?pretty and one was closed. I opened it by POST /<target>/_open and it worked.
In that case, for App Search to work then all indexes must always be open? I can't have any closed indexes?

The closed index was created by me and has no relation to Enterprise Search

The closed index was not the index you were trying to build the App Search Engine off of?

Can we talk in specifics? What was the name of your index with the data you wanted to search through App Search, and what index was closed?

Also, what version are you on? I will try to reproduce.

for App Search to work then all indexes must always be open?

I don't believe that should be the case, no. App Search needs access to the .ent-search-* indices that Enterprise Search manages, as well as the index that you're trying to build an Engine off of, in the case of Elasticsearch Index App Search Engines. Outside of that, I'd expect things to work fine if unrelated indices are closed.

Sure.
The index was called test-logstash-rabbitmq-01, because that's what I called it to myself.
It was the only one that was closed, the rest were as open. I opened it and it worked.

It was not the index from which I wanted to make a search engine. I couldn't even do any indexing because when I clicked Continue there, it immediately threw an error on the next page. It didn't load any indexes.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.