No such index [.ent-search-actastic-search_relevance_suggestions]

Hi There,
I have setup the Enterprisesearch service with my elastic stack when I'm using version 8.3.3 and reasontly I have upgraded my elastic stack to 8.8.2 version. I face this issue when I'm trying to access the app-search service in my kibana instance. I have successfully started the Enterprisearch service but when I try to access the app-search services it give me below screen shot error. and I found the error log in the Enterprisesearch logs.

Error log
no such index [.ent-search-actastic-search_relevance_suggestions] index '.ent-search-actastic-search_relevance_suggestions'

Further when I try to use the engines I have created in app-search via the API and it works. The only issue I face is the Kibana connectivity.
Any help would be appreciated.

I have attached the full error log below.

[2023-11-14T11:49:28.745+00:00][759765][5056][action_controller][INFO]: Processing by ErrorsController#internal_error as JSON
[2023-11-14T11:49:28.746+00:00][759765][5056][action_controller][INFO]:   Parameters: {"type"=>"indexed", "page"=>{"current"=>"1", "size"=>"10"}}
[2023-11-14T11:49:28.746+00:00][759765][5056][app-server][ERROR]: Internal server error. Please check your application server logs for more details and contact Elastic support if the problem persists
[2023-11-14T11:49:28.752+00:00][759765][5056][action_controller][INFO]: Completed 500 Internal Server Error in 6ms (Views: 1.5ms | Allocations: 0)
10.8.0.120 - - [14/Nov/2023:11:49:19 +0000] "GET /as/engines/collection?type=indexed&page%5Bcurrent%5D=1&page%5Bsize%5D=10 HTTP/1.1" 500 145 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"
[2023-11-14T11:49:30.558+00:00][759765][5060][action_controller][INFO]: Completed 500 Internal Server Error in 10502ms (Allocations: 0)
[2023-11-14T11:49:30.562+00:00][759765][5060][app-server][ERROR]: Exception: Swiftype::ES::IndexMissingException: no such index [.ent-search-actastic-search_relevance_suggestions] index '.ent-search-actastic-search_relevance_suggestions'
/apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/es_exception.class:34:in `raise_from_response': no such index [.ent-search-actastic-search_relevance_suggestions] index '.ent-search-actastic-search_relevance_suggestions' (Swiftype::ES::IndexMissingException)
        from /apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/response.class:98:in `raise_if_error!'
        from org/jruby/RubyKernel.java:1938:in `tap'
        from /apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/client.class:26:in `request!'
        from /apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/node.class:12:in `request!'
        from /apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/index.class:40:in `request!'
        from /apps/enterprise-search-8.8.2/lib/war/lib/swiftype/es/index.class:184:in `document_count'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/schema.class:18:in `document_count'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/relation.class:551:in `block in document_count'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/apm_helpers.class:50:in `es_action_instrument'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/apm_helpers.class:55:in `instrument'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/relation.class:520:in `instrument'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/relation.class:550:in `document_count'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/stats.class:26:in `block in measure_methods'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `block in measure'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:53:in `duration'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `measure'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/stats.class:25:in `block in measure_methods'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/relation.class:137:in `count'
        from /apps/enterprise-search-8.8.2/lib/war/shared_togo/lib/shared_togo/search_relevance_suggestion.class:63:in `block in stats'
        from org/jruby/RubyArray.java:1865:in `each'
        from /apps/enterprise-search-8.8.2/lib/war/shared_togo/lib/shared_togo/search_relevance_suggestion.class:60:in `stats'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/shared/concerns/formatting/engine_concern.class:52:in `format_suggestion_stats'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/shared/concerns/formatting/engine_concern.class:85:in `format_engine_details'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/shared/concerns/formatting/engine_concern.class:12:in `block in format_engines_with_pagination'
        from org/jruby/RubyArray.java:1865:in `each'
        from /apps/enterprise-search-8.8.2/lib/war/actastic/lib/actastic/relation.class:325:in `each'
        from org/jruby/RubyEnumerable.java:799:in `map'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/shared/concerns/formatting/engine_concern.class:11:in `format_engines_with_pagination'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/dashboard/engines_controller.class:29:in `block in index'
        from /apps/enterprise-search-8.8.2/lib/war/app/controllers/concerns/pagination.class:43:in `respond_with_pagination'
        from /apps/enterprise-search-8.8.2/lib/war/loco_moco/app/controllers/loco_moco/dashboard/engines_controller.class:28:in `index'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/abstract_controller/base.rb:195:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
        from /apps/enterprise-search-8.8.2/lib/war/app/controllers/concerns/request_audit_logger_concern.class:36:in `audit_request'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
        from /apps/enterprise-search-8.8.2/lib/war/app/controllers/concerns/request_audit_logger_concern.class:22:in `audit_request_authentication'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/callbacks.rb:139:in `run_callbacks'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/notifications.rb:180:in `block in instrument'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/notifications.rb:180:in `instrument'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/abstract_controller/base.rb:136:in `process'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionview-6.0.6.1/lib/action_view/rendering.rb:39:in `process'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal.rb:190:in `dispatch'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_controller/metal.rb:254:in `dispatch'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/journey/router.rb:49:in `block in serve'
        from org/jruby/RubyArray.java:1865:in `each'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/journey/router.rb:32:in `serve'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/routing/route_set.rb:834:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-attack-6.6.0/lib/rack/attack.rb:103:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/json_parser_error_middleware.class:9:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/rewrite_deprecated_routes_middleware.class:24:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/system_logging_middleware.class:37:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-attack-6.6.0/lib/rack/attack.rb:127:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/eweb_access_middleware.class:15:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
        from org/jruby/RubyKernel.java:1237:in `catch'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/tempfile_reaper.rb:17:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/etag.rb:27:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/conditional_get.rb:27:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/head.rb:14:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/content_type_middleware.class:21:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/content_security_policy_middleware.class:13:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/session/abstract/id.rb:269:in `context'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/session/abstract/id.rb:263:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/cookies.rb:654:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/cookie_strip_middleware.class:12:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/callbacks.rb:101:in `run_callbacks'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/railties-6.0.6.1/lib/rails/rack/logger.rb:37:in `call_app'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/railties-6.0.6.1/lib/rails/rack/logger.rb:26:in `block in call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/tagged_logging.rb:80:in `block in tagged'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/tagged_logging.rb:28:in `tagged'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/activesupport-6.0.6.1/lib/active_support/tagged_logging.rb:80:in `tagged'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/railties-6.0.6.1/lib/rails/rack/logger.rb:26:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/silencer_middleware.class:9:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/request_id_middleware.class:11:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/method_override.rb:24:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/runtime.rb:24:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/rack-2.1.4.3/lib/rack/sendfile.rb:113:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/actionpack-6.0.6.1/lib/action_dispatch/middleware/host_authorization.rb:97:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/stats_middleware.class:10:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/lib/middleware/external_host_middleware.class:26:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/gems/gems/railties-6.0.6.1/lib/rails/engine.rb:527:in `call'
        from /apps/enterprise-search-8.8.2/lib/war/vendor/fishwife-servlet/lib/fishwife/rack_servlet.rb:74:in `service'

I was able to fix this problem by creating the missing index with the proper mappings. In order to do to that, what I did was that create a new Elasticsearch node with kibana and enterprisesearch instance using docker-compose which is in this link, docker-compose.
Once I started all the services, then I navigate t kibana and index management and search for the hidden index which is required for app-search to work. Then I got the correct mappings for that index in created it in the prod elasticsearch then refresh the page and everything worked smoothly. :slight_smile:

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