cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrade from 5.2 to 7.2 solr4 is starting instead of solr6

vikash_patel
Star Contributor
Star Contributor

Hello Support,

We have upgraded our ACS from 5.2 to 7.2.
Migrated the posteres db and alf_data/contentstore & alf_data/contentstore.deleted to ACS 7.2
We have added solr properties in our alfresco-global.properties

### Solr indexing ###
index.subsystem.name=solr6
solr.secureComms=secret
solr.sharedSecret=secret
solr.port=8983
solr.host=localhost
solr.baseUrl=/solr

db.schema.update=true
db.schema.update.lockRetryCount=24
db.schema.update.lockRetryWaitSeconds=5

But while startup it's loading solr4 and giving errors.
Do anyone have idea ?

------------

2023-07-06 03:00:55,197  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, solr4]
2023-07-06 03:00:55,691  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

------------


Logs :

2023-07-06 03:00:03,157  WARN  [heartbeat.datasender.HBDataSenderServiceBuilder] [main] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.
2023-07-06 03:00:03,316  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2023-07-06 03:00:03,317  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
2023-07-06 03:00:03,317  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
2023-07-06 03:00:03,317  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V6.3-add-indexes-node-transaction
2023-07-06 03:00:03,317  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V7.1.0-remove-alf_server-table
2023-07-06 03:00:03,626  INFO  [alfresco.repo.admin] [main] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
2023-07-06 03:00:03,635  INFO  [alfresco.repo.admin] [main] Connected to database PostgreSQL version 12.15
2023-07-06 03:00:07,068  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2023-07-06 03:00:07,134  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2023-07-06 03:00:09,099  INFO  [population.config.RqaWorkerConfig] [main] QuerySet batch size property is set to [5000].
2023-07-06 03:00:09,633  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2023-07-06 03:00:09,649  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
2023-07-06 03:00:10,868  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl
2023-07-06 03:00:10,871  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js
2023-07-06 03:00:12,596  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
2023-07-06 03:00:12,620  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
2023-07-06 03:00:12,641  INFO  [domain.schema.SchemaBootstrap] [main] Connecting to database: 1565339151, URL=jdbc:postgresql://localhost:5432/alfresco, PostgreSQL JDBC Driver
2023-07-06 03:00:12,642  INFO  [domain.schema.SchemaBootstrap] [main] Schema managed by database dialect org.alfresco.repo.domain.dialect.PostgreSQLDialect.
2023-07-06 03:00:12,670  INFO  [domain.schema.SchemaBootstrap] [main] Applied patches detected: 257
2023-07-06 03:00:12,705  INFO  [domain.schema.SchemaBootstrap] [main] Checking and patching Alfresco tables took 35 ms
2023-07-06 03:00:12,707  INFO  [domain.schema.SchemaBootstrap] [main] Activiti tables need to be checked for patches
2023-07-06 03:00:12,733  INFO  [domain.schema.SchemaBootstrap] [main] Checking and patching Activiti tables took 26 ms
2023-07-06 03:00:12,762  INFO  [domain.schema.SchemaBootstrap] [main] Checking that all patches have been applied took 29 ms
2023-07-06 03:00:12,762  INFO  [domain.schema.SchemaBootstrap] [main] Updating the DB schema took 119 ms
2023-07-06 03:00:12,763  INFO  [domain.schema.SchemaBootstrap] [main] No changes were made to the schema.
2023-07-06 03:00:13,524  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2023-07-06 03:00:13,526  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2023-07-06 03:00:54,800  WARN  [repo.transaction.TransactionServiceImpl] [main] setAllowWrite:false.  Applying veto on write operations: {http://www.alfresco.org/model/application/1.0}LicenseComponent
2023-07-06 03:00:54,801  ERROR [service.descriptor.DescriptorService] [main] Alfresco license: Failed to verify license - Invalid License!
2023-07-06 03:00:54,818  ERROR [service.descriptor.DescriptorService] [main] null
2023-07-06 03:00:54,818  ERROR [service.descriptor.DescriptorService] [main] Alfresco license: Restricted Alfresco Repository to read-only capability
2023-07-06 03:00:54,863  WARN  [cluster.core.ClusteringBootstrap] [main] Clustering is disabled: not starting.
2023-07-06 03:00:54,932  INFO  [repo.admin.ConfigurationChecker] [main] The root data directory ('dir.root') is: /opt/alfresco/alfresco-content-services/alf_data
2023-07-06 03:00:54,958  INFO  [admin.patch.PatchExecuter] [main] Checking for patches to apply ...
2023-07-06 03:00:55,113  INFO  [admin.patch.PatchExecuter] [main]       Applying patch 'patch.alfrescoSystemAdministrators' (Adds the 'GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS' group).
2023-07-06 03:00:55,197  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, solr4]
2023-07-06 03:00:55,691  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 03:00:55,692  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)
        at org.alfresco.traitextender.RouteExtensions.intercept(RouteExtensions.java:85)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.addChild(DbNodeServiceImpl.java:1285)
        
        
0 REPLIES 0