Hello,
I am trying to make Fess work in my GKE cluster.
Opensearch image: Package fess-opensearch · GitHub
Fess image: Package fess · GitHub
I have a fully functional Opensearch server running, with the plugins installed but, when trying to start a Fess container I get the following error:
{"@timestamp":"2023-05-10T15:37:15.353Z","log.level": "WARN","message":"fess_indices/fess.json is not found.", "ecs.version": "1.2.0","service.name":"fess","event.dataset":"app","process.thread.name":"main","log.logger":"org.codelibs.fess.es.client.SearchEngineClient","error.type":"org.opensearch.OpenSearchStatusException","error.message":"OpenSearch exception [type=illegal_argument_exception, reason=IOException while reading mappings_path: file not readable]","error.stack_trace":"OpenSearchStatusException[OpenSearch exception [type=illegal_argument_exception, reason=IOException while reading mappings_path: file not readable]]\n\tat org.opensearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:207)\n\tat org.codelibs.fesen.client.action.HttpAction.toOpenSearchException(HttpAction.java:139)\n\tat org.codelibs.fesen.client.action.HttpCreateIndexAction.lambda$execute$0(HttpCreateIndexAction.java:66)\n\tat org.codelibs.curl.CurlRequest.lambda$execute$5(CurlRequest.java:260)\n\tat org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:231)\n\tat java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)\n\tSuppressed: java.lang.IllegalArgumentException: Required [acknowledged, shards_acknowledged, index]\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser$Target.finish(ConstructingObjectParser.java:540)\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:186)\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser.apply(ConstructingObjectParser.java:178)\n\t\tat org.opensearch.action.admin.indices.create.CreateIndexResponse.fromXContent(CreateIndexResponse.java:103)\n\t\tat org.codelibs.fesen.client.action.HttpCreateIndexAction.lambda$execute$0(HttpCreateIndexAction.java:63)\n\t\t... 8 more\n\tSuppressed: org.codelibs.fesen.client.action.HttpAction$CurlResponseException: {\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"IOException while reading mappings_path: file not readable\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"IOException while reading mappings_path: file not readable\"},\"status\":400}\n"}
{"@timestamp":"2023-05-10T15:37:15.429Z","log.level": "WARN","message":"fess_indices/fess/alias is not found.", "ecs.version": "1.2.0","service.name":"fess","event.dataset":"app","process.thread.name":"main","log.logger":"org.codelibs.fess.es.client.SearchEngineClient","error.type":"org.opensearch.OpenSearchStatusException","error.message":"OpenSearch exception [type=index_not_found_exception, reason=no such index [fess.20230510]]","error.stack_trace":"[fess.20230510] OpenSearchStatusException[OpenSearch exception [type=index_not_found_exception, reason=no such index [fess.20230510]]]\n\tat org.opensearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:207)\n\tat org.codelibs.fesen.client.action.HttpAction.toOpenSearchException(HttpAction.java:139)\n\tat org.codelibs.fesen.client.action.HttpIndicesAliasesAction.lambda$execute$0(HttpIndicesAliasesAction.java:71)\n\tat org.codelibs.curl.CurlRequest.lambda$execute$5(CurlRequest.java:260)\n\tat org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:231)\n\tat java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)\n\tSuppressed: java.lang.IllegalArgumentException: Required [acknowledged]\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser$Target.finish(ConstructingObjectParser.java:540)\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser.parse(ConstructingObjectParser.java:186)\n\t\tat org.opensearch.common.xcontent.ConstructingObjectParser.apply(ConstructingObjectParser.java:178)\n\t\tat org.opensearch.action.support.master.AcknowledgedResponse.fromXContent(AcknowledgedResponse.java:130)\n\t\tat org.codelibs.fesen.client.action.HttpIndicesAliasesAction.lambda$execute$0(HttpIndicesAliasesAction.java:68)\n\t\t... 8 more\n\tSuppressed: org.codelibs.fesen.client.action.HttpAction$CurlResponseException: {\"error\":{\"root_cause\":[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index [fess.20230510]\",\"index\":\"fess.20230510\",\"resource.id\":\"fess.20230510\",\"resource.type\":\"index_or_alias\",\"index_uuid\":\"_na_\"}],\"type\":\"index_not_found_exception\",\"reason\":\"no such index [fess.20230510]\",\"index\":\"fess.20230510\",\"resource.id\":\"fess.20230510\",\"resource.type\":\"index_or_alias\",\"index_uuid\":\"_na_\"},\"status\":404}\n"}
{"@timestamp":"2023-05-10T15:37:15.455Z","log.level":"ERROR","message":"Failed to initialize Lasta Di.", "ecs.version": "1.2.0","service.name":"fess","event.dataset":"app","process.thread.name":"main","log.logger":"org.lastaflute.web.servlet.filter.LastaPrepareFilter","error.type":"org.lastaflute.di.exception.ContainerInitFailureException","error.message":"Look! Read the message below.\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\nFailed to initialize the container.\n\n[Path]\nesclient.xml\n\n[Namespace]\nnull\n\n[Included by]\nesflute_config.xml\nesflute_user.xml\nesflute_log.xml\n* * * * * * * * * */","error.stack_trace":"org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\nFailed to initialize the container.\n\n[Path]\nesclient.xml\n\n[Namespace]\nnull\n\n[Included by]\nesflute_config.xml\nesflute_user.xml\nesflute_log.xml\n* * * * * * * * * */\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.throwContainerInitFailureException(LaContainerImpl.java:463)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:415)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)\n\tat org.lastaflute.di.core.factory.SingletonLaContainerFactory.init(SingletonLaContainerFactory.java:65)\n\tat org.lastaflute.web.container.WebLastaContainerInitializer.doInitContainer(WebLastaContainerInitializer.java:81)\n\tat org.lastaflute.web.container.WebLastaContainerInitializer.initialize(WebLastaContainerInitializer.java:45)\n\tat org.lastaflute.web.servlet.filter.LastaPrepareFilter.initializeContainer(LastaPrepareFilter.java:137)\n\tat org.lastaflute.web.servlet.filter.LastaPrepareFilter.init(LastaPrepareFilter.java:94)\n\tat org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:272)\n\tat org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)\n\tat org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)\n\tat org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4609)\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5248)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)\n\tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)\n\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)\n\tat java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)\n\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)\n\tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)\n\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)\n\tat java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)\n\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:430)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)\n\tat org.dbflute.tomcat.TomcatBoot.startServer(TomcatBoot.java:713)\n\tat org.dbflute.tomcat.TomcatBoot.go(TomcatBoot.java:402)\n\tat org.dbflute.tomcat.TomcatBoot.bootAwait(TomcatBoot.java:347)\n\tat org.codelibs.fess.FessBoot.main(FessBoot.java:111)\nCaused by: org.lastaflute.di.core.exception.IllegalMethodRuntimeException: [ESSR0060]Can not configure method(open) of org.codelibs.fess.es.client.SearchEngineClient, because [fess.20230510] IndexNotFoundException[no such index [fess.20230510]]\n\tat org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:61)\n\tat org.lastaflute.di.core.assembler.DefaultInitMethodAssembler.assemble(DefaultInitMethodAssembler.java:40)\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:57)\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:41)\n\tat org.lastaflute.di.core.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:35)\n\tat org.lastaflute.di.core.meta.impl.ComponentDefImpl.init(ComponentDefImpl.java:85)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:434)\n\tat org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)\n\t... 42 more\nCaused by: [fess.20230510] IndexNotFoundException[no such index [fess.20230510]]\n\tat org.codelibs.fesen.client.action.HttpGetMappingsAction.lambda$execute$0(HttpGetMappingsAction.java:48)\n\tat org.codelibs.curl.CurlRequest.lambda$execute$5(CurlRequest.java:260)\n\tat org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:231)\n\tat java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)\n"}
{"@timestamp":"2023-05-10T15:38:56.223Z","log.level": "ERROR","message":"Fess is not available.", "ecs.version": "1.2.0","service.name":"fess","event.dataset":"app","process.thread.name":"bootstrap","log.logger":"run.sh"}
Thanks in advance for your help,
Enrique