07-06-2023 09:20 PM
Hello Team,
We have upgraded Enterprise ACS 5.2 to Enterprise ACS 7.2, migrated the code, database and alf_data/contentstore.
In alfresco-global. Properties
db.schema.update=true
db.schema.update.lockRetryCount=24
db.schema.update.lockRetryWaitSeconds=5
### Solr indexing ###
index.subsystem.name=solr6
solr.secureComms=secret
solr.sharedSecret=secret
solr.port=8983
solr.host=localhost
solr.baseUrl=/solr
Still it's starting solr4 instead of solr6.
Do anyone having any idea to resolve this issue?
Logs :
2023-07-06 23:16:17,456 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, solr4] 2023-07-06 23:16:18,018 WARN [management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.switching' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/common-opencmis-context.xml]: Cannot resolve reference to bean 'search.cmis.alfresco.index' while setting bean property 'indexQueryLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.index' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/solr4/opencmis-context.xml]: Cannot resolve reference to bean 'search.solrQueryHTTPCLient' while setting bean property 'solrQueryHTTPClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.solrQueryHTTPCLient' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-enterprise-repository-14.146.jar!/alfresco/subsystems/Search/solr4/search-enterprise-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
06-Jul-2023 23:15:43.934 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 06-Jul-2023 23:15:43.934 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/alfresco/alfresco-content-services/tomcat 06-Jul-2023 23:15:43.934 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/alfresco/alfresco-content-services/tomcat 06-Jul-2023 23:15:43.934 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/alfresco/alfresco-content-services/tomcat/temp 06-Jul-2023 23:15:43.936 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib] 06-Jul-2023 23:15:44.214 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 06-Jul-2023 23:15:44.234 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [491] milliseconds 06-Jul-2023 23:15:44.278 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 06-Jul-2023 23:15:44.278 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.76] 06-Jul-2023 23:15:44.285 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/alfresco/alfresco-content-services/tomcat/conf/Catalina/localhost/alfresco.xml] Jul 06, 2023 11:15:55 PM org.apache.jasper.servlet.TldScanner scanJars INFO: 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. Jul 06, 2023 11:15:55 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Jul 06, 2023 11:15:55 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 2023-07-06 23:16:05,146 WARN [heartbeat.datasender.HBDataSenderServiceBuilder] [main] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported. 2023-07-06 23:16:05,312 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes 2023-07-06 23:16:05,312 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes 2023-07-06 23:16:05,312 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db 2023-07-06 23:16:05,313 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V6.3-add-indexes-node-transaction 2023-07-06 23:16:05,313 INFO [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V7.1.0-remove-alf_server-table 2023-07-06 23:16:05,651 INFO [alfresco.repo.admin] [main] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'. 2023-07-06 23:16:05,652 INFO [alfresco.repo.admin] [main] Connected to database PostgreSQL version 12.15 2023-07-06 23:16:09,556 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] 2023-07-06 23:16:09,628 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete 2023-07-06 23:16:11,795 INFO [population.config.RqaWorkerConfig] [main] QuerySet batch size property is set to [5000]. 2023-07-06 23:16:12,385 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default] 2023-07-06 23:16:12,402 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete 2023-07-06 23:16:13,625 INFO [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl 2023-07-06 23:16:13,628 INFO [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js 2023-07-06 23:16:15,599 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] 2023-07-06 23:16:15,623 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete 2023-07-06 23:16:15,644 INFO [domain.schema.SchemaBootstrap] [main] Connecting to database: 1081554486, URL=jdbc:postgresql://localhost:5432/alfresco, PostgreSQL JDBC Driver 2023-07-06 23:16:15,645 INFO [domain.schema.SchemaBootstrap] [main] Schema managed by database dialect org.alfresco.repo.domain.dialect.PostgreSQLDialect. 2023-07-06 23:16:15,674 INFO [domain.schema.SchemaBootstrap] [main] Applied patches detected: 257 2023-07-06 23:16:15,716 INFO [domain.schema.SchemaBootstrap] [main] Checking and patching Alfresco tables took 42 ms 2023-07-06 23:16:15,717 INFO [domain.schema.SchemaBootstrap] [main] Activiti tables need to be checked for patches 2023-07-06 23:16:15,761 INFO [domain.schema.SchemaBootstrap] [main] Checking and patching Activiti tables took 43 ms 2023-07-06 23:16:15,792 INFO [domain.schema.SchemaBootstrap] [main] Checking that all patches have been applied took 30 ms 2023-07-06 23:16:15,793 INFO [domain.schema.SchemaBootstrap] [main] Updating the DB schema took 147 ms 2023-07-06 23:16:15,793 INFO [domain.schema.SchemaBootstrap] [main] No changes were made to the schema. 2023-07-06 23:16:16,682 INFO [management.subsystems.ChildApplicationContextFactory] [main] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] 2023-07-06 23:16:16,684 INFO [management.subsystems.ChildApplicationContextFactory] [main] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] 2023-07-06 23:16:17,116 WARN [cluster.core.ClusteringBootstrap] [main] Clustering is disabled: not starting. 2023-07-06 23:16:17,165 INFO [repo.admin.ConfigurationChecker] [main] The root data directory ('dir.root') is: /opt/alfresco/alfresco-content-services/alf_data 2023-07-06 23:16:17,176 INFO [admin.patch.PatchExecuter] [main] Checking for patches to apply ... 2023-07-06 23:16:17,367 INFO [admin.patch.PatchExecuter] [main] Applying patch 'patch.alfrescoSystemAdministrators' (Adds the 'GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS' group). 2023-07-06 23:16:17,456 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, solr4] 2023-07-06 23:16:18,018 WARN [management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.switching' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/common-opencmis-context.xml]: Cannot resolve reference to bean 'search.cmis.alfresco.index' while setting bean property 'indexQueryLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.index' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/solr4/opencmis-context.xml]: Cannot resolve reference to bean 'search.solrQueryHTTPCLient' while setting bean property 'solrQueryHTTPClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.solrQueryHTTPCLient' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-enterprise-repository-14.146.jar!/alfresco/subsystems/Search/solr4/search-enterprise-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException 2023-07-06 23:16:18,020 WARN [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Search' subsystem, ID: [Search, managed, solr4] failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.switching' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/common-opencmis-context.xml]: Cannot resolve reference to bean 'search.cmis.alfresco.index' while setting bean property 'indexQueryLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.cmis.alfresco.index' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-14.148.jar!/alfresco/subsystems/Search/solr4/opencmis-context.xml]: Cannot resolve reference to bean 'search.solrQueryHTTPCLient' while setting bean property 'solrQueryHTTPClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.solrQueryHTTPCLient' defined in URL [jar:file:/opt/alfresco/alfresco-content-services/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-enterprise-repository-14.146.jar!/alfresco/subsystems/Search/solr4/search-enterprise-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:824) at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1098) at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1064) at org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory$SwitchableState.start(SwitchableApplicationContextFactory.java:125) at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1098) at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.getState(AbstractPropertyBackedBean.java:320) at org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory.getApplicationContext(SwitchableApplicationContextFactory.java:74) at org.alfresco.repo.management.subsystems.SubsystemProxyFactory.locateBean(SubsystemProxyFactory.java:181) at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:79) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) at com.sun.proxy.$Proxy116.getCRC(Unknown Source) at org.alfresco.repo.node.CascadeUpdateAspect.markCascadeUpdate(CascadeUpdateAspect.java:115) at org.alfresco.repo.node.CascadeUpdateAspect.onCreateChildAssociation(CascadeUpdateAspect.java:108) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:181) at com.sun.proxy.$Proxy80.onCreateChildAssociation(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.alfresco.repo.policy.PolicyFactory$MultiHandler.invoke(PolicyFactory.java:361) at org.alfresco.repo.policy.$Proxy238.onCreateChildAssociation(Unknown Source) at org.alfresco.repo.node.AbstractNodeServiceImpl.invokeOnCreateChildAssociation(AbstractNodeServiceImpl.java:635) at org.alfresco.repo.node.db.DbNodeServiceImpl.addChild_aroundBody46(DbNodeServiceImpl.java:1326) at org.alfresco.repo.node.db.DbNodeServiceImpl$AjcClosure47.run(DbNodeServiceImpl.java:1) at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:257) at org.alfresco.traitextender.AJExtender.localProceed(AJExtender.java:728) at org.alfresco.traitextender.AJProxyTrait.invoke(AJProxyTrait.java:86) at com.sun.proxy.$Proxy31.addChild(Unknown Source) at org.alfresco.repo.virtual.bundle.VirtualNodeServiceExtension.addChild(VirtualNodeServiceExtension.java:1284) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.alfresco.traitextender.SingletonExtensionFactory$TraiSingletontHandler.invoke(SingletonExtensionFactory.java:74) at com.sun.proxy.$Proxy233.addChild(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.alfresco.traitextender.AJExtender.extendAroundAdvice(AJExtender.java:654) at org.alfresco.traitextender.RouteExtensions.ajc$inlineAccessMethod$org_alfresco_traitextender_RouteExtensions$org_alfresco_traitextender_AJExtender$extendAroundAdvice(RouteExtensions.java:1)
06-27-2024 09:27 AM
Hi,
Try setting this property in alfresco-global.properties
solr.secureComms=https
Thanks
Jordi
Explore our Alfresco products with the links below. Use labels to filter content by product module.