Clicking “Rebuild index offline” for ProductDocument gave me this errors.
2023-02-02 14:31:22.1736 [App:01] [bca1677dcd6dbc7d494de11f2db4fb83] [ERROR] Litium.Application.Search.Schemas.IndexSchemaConfigurationService - Could not create index accelerator8_rev1.v2.productdocument.sv-se. ServerError: 400Type: illegal_argument_exception Reason: “failed to build synonyms” CausedBy: “Type: illegal_argument_exception Reason: “failed to get synonyms : http://host.docker.internal:9210/api/container/a155989e-c492-45de-9ea2-138e98219fd7/6bb5d5ff-007c-433d-a316-5b88e4cd28a2/solr” CausedBy: “Type: null_pointer_exception Reason: “”””
2023-02-02 14:31:22.1736 [App:01] [bca1677dcd6dbc7d494de11f2db4fb83] [ERROR] [.NET ThreadPool Worker] Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware - An unhandled exception has occurred while executing the request. Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: PUT /accelerator8_rev1.v2.productdocument.en-us. ServerError: Type: illegal_argument_exception Reason: “failed to build synonyms” CausedBy: “Type: illegal_argument_exception Reason: “failed to get synonyms : http://host.docker.internal:9210/api/container/cabf76cb-32d6-46f6-a6e0-95ef355e5d2c/e6a2eb56-d54e-401b-9cc1-b22277be2789/solr” CausedBy: “Type: null_pointer_exception Reason: “”””
at Litium.Search.SearchExtensions.EnsureSuccessStatusCode[T](T response)
at Litium.Application.Search.Schemas.IndexSchemaConfigurationService.CreateIndexIfMissing(String indexName, IIndexState indexState)
at Litium.Application.Search.Schemas.IndexSchemaConfigurationService.EnsureSchema(IIndexMappingConfiguration configuration, String indexName, String culture)
at Litium.Application.Search.Schemas.IndexSchemaMaintenanceService.EnsureIndexConfiguraiton(IIndexMappingConfiguration indexConfiguration, String culture)
at Litium.Application.Search.Schemas.IndexSchemaMaintenanceService.SchemaChanged(ChangeSchemaNotification obj)
at Litium.Application.Search.Schemas.IndexSchemaVersionServiceImpl.Notify(ChangeSchemaNotification event)
at Litium.Application.Search.Schemas.IndexSchemaVersionServiceImpl.CreatePendingVersionAsync(String documentName)
at Litium.Application.Search.IndexConfigurationServiceImpl.QueueIndexRebuildOfflineAsync(IIndexMappingConfiguration config)
at Litium.Application.Search.IndexConfigurationServiceImpl.InvokeActionAsync(String index, String action, Object args)
at Litium.Web.Administration.WebApi.Settings.Controllers.SearchIndexController.<>c__DisplayClass4_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Litium.Web.Administration.WebApi.Settings.Controllers.SearchIndexController.RebuildIndex(String indexName, String actionName)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Builder.AppBuilderExtensions.<>c.<b__3_0>d.MoveNext()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Builder.AppBuilderExtensions.<>c.<b__3_0>d.MoveNext()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.AppBuilderExtensions.<>c__DisplayClass2_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)