07-14-2022 01:45 PM
I've some troubles with the search in alfresco, it doesn't work (for administrator or users)
I am using Alfresco SDK4.4. I imported the all-in-one maven archetype.
The only modification I made to the project is following this guide to fix the Search Services 403 problem.
https://github.com/Alfresco/alfresco-sdk/issues/635
I have tried the commit a0171a9 of the ACS community containerized development.
https://github.com/Alfresco/acs-deployment
It works fine on my machine.
My OS is Windows 10.
Java version is 11.
Maven version is 3.8.5.
Alfresco SDK version is 4.4.
The main error I got is
ERROR (qtp293002476-16) [ ] o.a.s.s.HttpSolrCall null:org.apache.solr.core.SolrCoreInitializationException: SolrCore 'alfresco' is not available due to init failure: /opt/alfresco-search-services/data/alfresco/index/write.lock
The screenshot for Solr Dashboard:
Let me know if any additional information is needed.
Thanks in advance.
The detail of the log result:
acssdk-acs_1 | 2022-07-14 16:36:19,857 INFO [management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-5] Starting 'Search' subsystem, ID: [Search, managed, solr6] acssdk-acs_1 | 2022-07-14 16:36:20,800 INFO [management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-5] Startup of 'Search' subsystem, ID: [Search, managed, solr6] complete acssdk-ass_1 | 2022-07-14 16:36:21.783 ERROR (qtp293002476-16) [ ] o.a.s.s.HttpSolrCall null:org.apache.solr.core.SolrCoreInitializationException: SolrCore 'alfresco' is not available due to init failure: /opt/alfresco-search-services/data/alfresco/index/write.lock acssdk-ass_1 | at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1361) acssdk-ass_1 | at org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:268) acssdk-ass_1 | at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:483) acssdk-ass_1 | at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:361) acssdk-ass_1 | at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:305) acssdk-ass_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) acssdk-ass_1 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) acssdk-ass_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) acssdk-ass_1 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) acssdk-ass_1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) acssdk-ass_1 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) acssdk-ass_1 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513) acssdk-ass_1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) acssdk-ass_1 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) acssdk-ass_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) acssdk-ass_1 | at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) acssdk-ass_1 | at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) acssdk-ass_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) acssdk-ass_1 | at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) acssdk-ass_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) acssdk-ass_1 | at org.eclipse.jetty.server.Server.handle(Server.java:539) acssdk-ass_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) acssdk-ass_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) acssdk-ass_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) acssdk-ass_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) acssdk-ass_1 | at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) acssdk-ass_1 | at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) acssdk-ass_1 | at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) acssdk-ass_1 | at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) acssdk-ass_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) acssdk-ass_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) acssdk-ass_1 | at java.base/java.lang.Thread.run(Thread.java:829) acssdk-ass_1 | Caused by: org.apache.solr.common.SolrException: /opt/alfresco-search-services/data/alfresco/index/write.lock acssdk-ass_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:977) acssdk-ass_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:830) acssdk-ass_1 | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:950) acssdk-ass_1 | at org.apache.solr.core.CoreContainer.create(CoreContainer.java:863) acssdk-ass_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.createAndRegisterNewCore(AlfrescoCoreAdminHandler.java:801) acssdk-ass_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.newCore(AlfrescoCoreAdminHandler.java:705) acssdk-ass_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.lambda$setupNewDefaultCores$3(AlfrescoCoreAdminHandler.java:286) acssdk-ass_1 | at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) acssdk-ass_1 | at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) acssdk-ass_1 | at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) acssdk-ass_1 | at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) acssdk-ass_1 | at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) acssdk-ass_1 | at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) acssdk-ass_1 | at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) acssdk-ass_1 | at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) acssdk-ass_1 | at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) acssdk-ass_1 | at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) acssdk-ass_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.setupNewDefaultCores(AlfrescoCoreAdminHandler.java:279) acssdk-ass_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.lambda$new$0(AlfrescoCoreAdminHandler.java:227) acssdk-ass_1 | ... 1 more acssdk-ass_1 | Caused by: java.nio.file.AccessDeniedException: /opt/alfresco-search-services/data/alfresco/index/write.lock acssdk-ass_1 | at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) acssdk-ass_1 | at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) acssdk-ass_1 | at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) acssdk-ass_1 | at java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:182) acssdk-ass_1 | at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292) acssdk-ass_1 | at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345) acssdk-ass_1 | at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:113) acssdk-ass_1 | at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) acssdk-ass_1 | at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) acssdk-ass_1 | at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:104) acssdk-ass_1 | at org.apache.lucene.index.IndexWriter.isLocked(IndexWriter.java:4776) acssdk-ass_1 | at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:709) acssdk-ass_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:923) acssdk-ass_1 | ... 19 more acssdk-ass_1 | acssdk-acs_1 | 2022-07-14 16:36:21,834 ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-5] Exception from executeScript: 06140003 Wrapped Exception (with status template): 06140022 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 06140021 Failed to execute search: +@cm\:modified:[2022\-7\-7T00\:00\:00.000 TO 2022\-7\-14T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder") acssdk-acs_1 | org.springframework.extensions.webscripts.WebScriptException: 06140003 Wrapped Exception (with status template): 06140022 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 06140021 Failed to execute search: +@cm\:modified:[2022\-7\-7T00\:00\:00.000 TO 2022\-7\-14T23\:59\:59.999] +@cm\:modifier:"admin" +TYPE:"cm:content" -TYPE:"cm:systemfolder" -TYPE:"fm:forums" -TYPE:"fm:forum" -TYPE:"fm:topic" -TYPE:"fm:post" +(TYPE:"content" OR TYPE:"app:filelink" OR TYPE:"folder") ...
07-22-2022 05:33 PM
SDK 4.3 does not have this issue.
Explore our Alfresco products with the links below. Use labels to filter content by product module.