户外 Solr "aclchangesets return status:403"

Alfresco Solr "aclchangesets return status:403"

我已经使用 alfresco-allinone-archetype 4.4.0 创建了一个 Maven 项目并且我有一个干净的 Alfresco。

使用 启动项目。\run.bat build_start 我从 Solr 收到此错误:

docker-nutella-acs-1       | 12-Apr-2022 10:54:15.943 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
docker-nutella-acs-1       | 12-Apr-2022 10:54:15.958 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Context] failed to 
set property [debug] to [100]
docker-nutella-acs-1       | 12-Apr-2022 10:54:16.137 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
docker-nutella-acs-1       | 12-Apr-2022 10:54:16.144 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application 
directory [/usr/local/tomcat/webapps/ROOT] has finished in [200] ms
docker-nutella-acs-1       | 12-Apr-2022 10:54:16.165 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
docker-nutella-acs-1       | 12-Apr-2022 10:54:16.219 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [126593] milliseconds
docker-nutella-ass-1       | 2022-04-12 10:54:16.841 ERROR (searcherExecutor-7-thread-1-processing-x:alfresco) [   x:alfresco] o.a.s.t.AbstractTracker 
Model tracking failed for core: alfresco
docker-nutella-ass-1       | org.alfresco.error.AlfrescoRuntimeException: 03120000 alfresco GetModelsDiff return status is 403
docker-nutella-ass-1       |    at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:271)
docker-nutella-ass-1       |    at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(SolrCoreLoadRegistration.java:110)
docker-nutella-ass-1       |    at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:44)
docker-nutella-ass-1       |    at org.apache.solr.core.SolrCore.lambda$getSearcher(SolrCore.java:2249)
docker-nutella-ass-1       |    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
docker-nutella-ass-1       |    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute[=11=](ExecutorUtil.java:229)
docker-nutella-ass-1       |    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
docker-nutella-ass-1       |    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
docker-nutella-ass-1       |    at java.lang.Thread.run(Thread.java:748)
docker-nutella-ass-1       | 2022-04-12 10:54:20.040 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-3) [   ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - archive
docker-nutella-ass-1       | org.alfresco.error.AlfrescoRuntimeException: 03120001 api/solr/aclchangesets return status:403
docker-nutella-ass-1       |    at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
docker-nutella-ass-1       |    at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
docker-nutella-ass-1       |    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
docker-nutella-ass-1       |    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

可能是什么原因引起的?

如何解决?

期待亲切的回复, 提前谢谢你。

当 Alfresco webapps 没有正常启动时,你可能会遇到这个错误,然后 Solr 无法与 Alfresco 通信,你能把你在 运行 .\run.bat build_start 时遇到的第一个错误吗?

这是 Alfresco 7.2.0 和捆绑在该原型中的旧版本 Solr 的已知问题。

您可以按照突出显示的步骤 here 暂时在本地解决您的问题,而对于未来版本的 Alfresco SDK,很可能会捆绑更新的兼容版本的搜索服务。