Hey,
I saw Fess at Fosdem and now trying it out, but I am failing with the initial setup.
My setup so far:
- Opensearch 2.4.1(win11版)
- Fess 14.6.1
- OpenJDK 17
"C:\Program Files\Java\jdk17\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50497,suspend=y,server=n -Dfile.encoding=UTF-8 -Dfess.system.storage.accesskey=minio -Dfess.system.storage.secretkey=minio123 -Dfess.system.storage.endpoint=http://192.168.192.129:9000 -Dfess.system.storage.bucket=fess -Dfess.es.http_address=http://192.168.192.129:9200 -Dfess.search_engine.http_address=http://127.0.0.1:9200 -
org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to initialize the container.
[Path]
esclient.xml
[Namespace]
null
[Included by]
esflute_config.xml
esflute_user.xml
esflute_log.xml
esflute_files.xml
* * * * * * * * * */
at org.lastaflute.di.core.meta.impl.LaContainerImpl.throwContainerInitFailureException(LaContainerImpl.java:463)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:415)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.factory.SingletonLaContainerFactory.init(SingletonLaContainerFactory.java:65)
at org.lastaflute.web.container.WebLastaContainerInitializer.doInitContainer(WebLastaContainerInitializer.java:81)
at org.lastaflute.web.container.WebLastaContainerInitializer.initialize(WebLastaContainerInitializer.java:45)
at org.lastaflute.web.servlet.filter.LastaPrepareFilter.initializeContainer(LastaPrepareFilter.java:137)
at org.lastaflute.web.servlet.filter.LastaPrepareFilter.init(LastaPrepareFilter.java:94)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:272)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4609)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:430)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
at org.dbflute.tomcat.TomcatBoot.startServer(TomcatBoot.java:713)
at org.dbflute.tomcat.TomcatBoot.go(TomcatBoot.java:402)
at org.dbflute.tomcat.TomcatBoot.bootAwait(TomcatBoot.java:347)
at org.codelibs.fess.FessBoot.main(FessBoot.java:110)
Caused by: org.lastaflute.di.core.exception.IllegalMethodRuntimeException: [ESSR0060]Can not configure method(open) of org.codelibs.fess.es.client.SearchEngineClient, because org.lastaflute.di.exception.ContainerInitFailureException: Fesen (http://127.0.0.1:9200) is not available. Check the state of your Fesen cluster (fesen) in 60605ms.
at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:61)
at org.lastaflute.di.core.assembler.DefaultInitMethodAssembler.assemble(DefaultInitMethodAssembler.java:40)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:57)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:41)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:35)
at org.lastaflute.di.core.meta.impl.ComponentDefImpl.init(ComponentDefImpl.java:85)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:434)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
... 44 more
Caused by: org.lastaflute.di.exception.ContainerInitFailureException: Fesen (http://127.0.0.1:9200) is not available. Check the state of your Fesen cluster (fesen) in 60605ms.
at org.codelibs.fess.es.client.SearchEngineClient.waitForYellowStatus(SearchEngineClient.java:783)
at org.codelibs.fess.es.client.SearchEngineClient.open(SearchEngineClient.java:311)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.lastaflute.di.util.LdiMethodUtil.invoke(LdiMethodUtil.java:49)
at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:59)
... 51 more
Caused by: org.codelibs.curl.CurlException: Failed to access to http://127.0.0.1:9200/_cluster/health/?wait_for_no_relocating_shards=false&wait_for_no_initializing_shards=false&wait_for_nodes=&wait_for_status=yellow&wait_for_active_shards=0&wait_for_active_shards=0&timeout=30s&master_timeout=30s
at org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:233)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec$$$capture(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: org.codelibs.curl.CurlException: Failed to access the response.
at org.codelibs.curl.CurlRequest$RequestProcessor.accept(CurlRequest.java:312)
at org.codelibs.curl.CurlRequest.lambda$execute$5(CurlRequest.java:258)
at org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:231)
... 7 more
Caused by: java.net.SocketException: Unexpected end of file from server
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:937)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:760)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:934)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:760)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
at org.codelibs.curl.CurlRequest$RequestProcessor.accept(CurlRequest.java:309)
... 9 more
6月 22, 2024 11:44:37 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter [lastaPrepareFilter]
org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to initialize the container.
[Path]
esclient.xml
[Namespace]
null
[Included by]
esflute_config.xml
esflute_user.xml
esflute_log.xml
esflute_files.xml
* * * * * * * * * */
at org.lastaflute.di.core.meta.impl.LaContainerImpl.throwContainerInitFailureException(LaContainerImpl.java:463)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:415)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:431)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
at org.lastaflute.di.core.factory.SingletonLaContainerFactory.init(SingletonLaContainerFactory.java:65)
at org.lastaflute.web.container.WebLastaContainerInitializer.doInitContainer(WebLastaContainerInitializer.java:81)
at org.lastaflute.web.container.WebLastaContainerInitializer.initialize(WebLastaContainerInitializer.java:45)
at org.lastaflute.web.servlet.filter.LastaPrepareFilter.initializeContainer(LastaPrepareFilter.java:137)
at org.lastaflute.web.servlet.filter.LastaPrepareFilter.init(LastaPrepareFilter.java:94)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:272)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4609)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:430)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
at org.dbflute.tomcat.TomcatBoot.startServer(TomcatBoot.java:713)
at org.dbflute.tomcat.TomcatBoot.go(TomcatBoot.java:402)
at org.dbflute.tomcat.TomcatBoot.bootAwait(TomcatBoot.java:347)
at org.codelibs.fess.FessBoot.main(FessBoot.java:110)
Caused by: org.lastaflute.di.core.exception.IllegalMethodRuntimeException: [ESSR0060]Can not configure method(open) of org.codelibs.fess.es.client.SearchEngineClient, because org.lastaflute.di.exception.ContainerInitFailureException: Fesen (http://127.0.0.1:9200) is not available. Check the state of your Fesen cluster (fesen) in 60605ms.
at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:61)
at org.lastaflute.di.core.assembler.DefaultInitMethodAssembler.assemble(DefaultInitMethodAssembler.java:40)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:57)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:41)
at org.lastaflute.di.core.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:35)
at org.lastaflute.di.core.meta.impl.ComponentDefImpl.init(ComponentDefImpl.java:85)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:434)
at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
... 44 more
**Caused by: org.lastaflute.di.exception.ContainerInitFailureException: Fesen (http://127.0.0.1:9200) is not available. Check the state of your Fesen cluster (fesen) in 60605ms.**
at org.codelibs.fess.es.client.SearchEngineClient.waitForYellowStatus(SearchEngineClient.java:783)
at org.codelibs.fess.es.client.SearchEngineClient.open(SearchEngineClient.java:311)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.lastaflute.di.util.LdiMethodUtil.invoke(LdiMethodUtil.java:49)
at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:59)
... 51 more
Caused by: org.codelibs.curl.CurlException: Failed to access to http://127.0.0.1:9200/_cluster/health/?wait_for_no_relocating_shards=false&wait_for_no_initializing_shards=false&wait_for_nodes=&wait_for_status=yellow&wait_for_active_shards=0&wait_for_active_shards=0&timeout=30s&master_timeout=30s
at org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:233)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec$$$capture(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: org.codelibs.curl.CurlException: Failed to access the response.
at org.codelibs.curl.CurlRequest$RequestProcessor.accept(CurlRequest.java:312)
at org.codelibs.curl.CurlRequest.lambda$execute$5(CurlRequest.java:258)
at org.codelibs.curl.CurlRequest.lambda$connect$4(CurlRequest.java:231)
... 7 more
Caused by: java.net.SocketException: Unexpected end of file from server
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:937)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:760)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:934)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:760)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
at org.codelibs.curl.CurlRequest$RequestProcessor.accept(CurlRequest.java:309)
... 9 more
6月 22, 2024 11:44:37 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
6月 22, 2024 11:44:37 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
6月 22, 2024 11:44:37 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [ROOT] appears to have started a thread named [FesenNodeManager-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.7/java.lang.Object.wait(Native Method)
java.base@17.0.7/java.util.TimerThread.mainLoop(Timer.java:563)
java.base@17.0.7/java.util.TimerThread.run(Timer.java:516)
6月 22, 2024 11:44:37 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [ROOT] appears to have started a thread named [eshttp] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method)
java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkUntil(LockSupport.java:410)
java.base@17.0.7/java.util.concurrent.ForkJoinPool.awaitWork(ForkJoinPool.java:1726)
java.base@17.0.7/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1623)
java.base@17.0.7/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
6月 22, 2024 11:44:37 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesObjectStreamClassCaches
警告: When running on Java 9 or later you need to add "--add-opens=java.base/java.io=ALL-UNNAMED" to the JVM command line arguments to enable ObjectStream cache memory leak protection. Alternatively, you can suppress this warning by disabling ObjectStream class cache memory leak protection.
6月 22, 2024 11:44:37 下午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalsForLeaks
警告: When running on Java 9 or later you need to add "--add-opens=java.base/java.lang=ALL-UNNAMED" to the JVM command line arguments to enable ThreadLocal memory leak detection. Alternatively, you can suppress this warning by disabling ThreadLocal memory leak detection.
6月 22, 2024 11:44:37 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesRmiTargets
警告: When running on Java 9 or later you need to add "--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" to the JVM command line arguments to enable RMI Target memory leak detection. Alternatively, you can suppress this warning by disabling RMI Target memory leak detection.
6月 22, 2024 11:44:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
6月 22, 2024 11:44:37 下午 org.dbflute.tomcat.logging.BootLogger info
信息: Boot successful as development: url -> http://localhost:8080
Disconnected from the target VM, address: '127.0.0.1:50497', transport: 'socket'
Process finished with exit code 130