ERROR: Failed to bootstrap tenants

cancel
Showing results for 
Search instead for 
Did you mean: 
hardik_thakkar
Active Member II

ERROR: Failed to bootstrap tenants

Hi Team,

On starting alfresco server, i am getting  error for Failed to bootstrap tenants.

I have installed alfresco on /utility/alfresco/alfresco-community folder while in logs it gives error for /opt/alfresco-community path.

I am able to connect DB via pgadmin.
Below are the error logs:

2020-01-24 18:34:11,510  INFO  [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
 2020-01-24 18:34:11,512  INFO  [alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.4.12
 2020-01-24 18:34:14,242  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
 2020-01-24 18:34:20,851  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
 2020-01-24 18:34:20,995  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] No changes were made to the schema.
 2020-01-24 18:34:21,660  WARN  [repo.dictionary.DictionaryRepositoryBootstrap] [localhost-startStop-1] Failed to load model 'sub:subsite_datalist' : org.alfresco.service.cmr.dictionary.DictionaryException: 00240018 Failed to compile model 'sub:subsite_datalist'
 2020-01-24 18:34:21,660  WARN  [repo.dictionary.DictionaryRepositoryBootstrap] [localhost-startStop-1] Failed to load model 'pos:AddField' : org.alfresco.service.cmr.dictionary.DictionaryException: 00240019 Failed to compile model 'pos:AddField'
 2020-01-24 18:34:21,710  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
 org.alfresco.error.AlfrescoRuntimeException: 00240021 Failed to bootstrap tenants
        at org.alfresco.repo.tenant.MultiTAdminServiceImpl.startTenants(MultiTAdminServiceImpl.java:372)
        at org.alfresco.repo.tenant.MultiTenantBootstrap.onBootstrap(MultiTenantBootstrap.java:73)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:214)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:185)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 00240020 Failed to create store root: /opt/alfresco-community/solr4/workspace-SpacesStore/conf
        at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:119)
        at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:161)
        at org.alfresco.repo.tenant.TenantRoutingFileContentStore.initContentStore(TenantRoutingFileContentStore.java:72)
        at org.alfresco.repo.tenant.AbstractTenantRoutingContentStore.getTenantContentStore(AbstractTenantRoutingContentStore.java:206)
        at org.alfresco.repo.tenant.AbstractTenantRoutingContentStore.init(AbstractTenantRoutingContentStore.java:219)
        at org.alfresco.repo.tenant.AbstractTenantRoutingContentStore.onEnableTenant(AbstractTenantRoutingContentStore.java:238)
        at org.alfresco.repo.tenant.MultiTAdminServiceImpl$3.doWork(MultiTAdminServiceImpl.java:682)
        at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:126)
        at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:95)
        at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:69)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
        at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:65)
        at org.alfresco.repo.tenant.TenantUtil.runAsSystemTenant(TenantUtil.java:119)
        at org.alfresco.repo.tenant.MultiTAdminServiceImpl.notifyAfterEnableTenant(MultiTAdminServiceImpl.java:676)
        at org.alfresco.repo.tenant.MultiTAdminServiceImpl.startTenants(MultiTAdminServiceImpl.java:336)
        ... 24 more


Jan 24, 2020 6:34:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Jan 24, 2020 6:34:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/alfresco] startup failed due to previous errors
Jan 24, 2020 6:34:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
2020-01-24 18:34:21,898  WARN  [context.support.XmlWebApplicationContext] [localhost-startStop-1] Exception thrown from ApplicationListener handling ContextClosedEvent
 java.lang.NullPointerException
        at org.alfresco.repo.workflow.activiti.ActivitiEngineInitializer.onShutdown(ActivitiEngineInitializer.java:65)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:67)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:214)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:190)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1055)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1016)
        at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:586)
        at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5165)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5829)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:149)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
2020-01-24 18:34:22,065  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopping 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
 2020-01-24 18:34:22,065  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopped 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
 2020-01-24 18:34:22,284  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
 2020-01-24 18:34:22,285  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
 2020-01-24 18:34:22,285  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopping 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1]
 2020-01-24 18:34:22,285  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopped 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1]
 Jan 24, 2020 6:34:22 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j



INFO: No Spring WebApplicationInitializer types detected on classpath
Jan 24, 2020 6:34:34 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter X509AuthFilter
javax.servlet.ServletException: java.lang.NullPointerException
        at org.alfresco.web.scripts.servlet.X509ServletFilterBase.init(X509ServletFilterBase.java:103)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at org.alfresco.solr.servlet.Solr4X509ServletFilter.findCores(Solr4X509ServletFilter.java:140)
        at org.alfresco.solr.servlet.Solr4X509ServletFilter.checkEnforce(Solr4X509ServletFilter.java:79)
        at org.alfresco.web.scripts.servlet.X509ServletFilterBase.init(X509ServletFilterBase.java:73)
        ... 16 more

2020-01-24 18:34:34,569  ERROR [solr.core.CoreContainer] [coreLoadExecutor-5-thread-1] Error creating core [collection1]: Could not load conf for core collection1: Error loading solr config from solr/collection1/conf/solrconfig.xml
 org.apache.solr.common.SolrException: Could not load conf for core collection1: Error loading solr config from solr/collection1/conf/solrconfig.xml
        at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:489)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.solr.common.SolrException: Error loading solr config from solr/collection1/conf/solrconfig.xml
        at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:154)
        at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:80)
        at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)
        ... 7 more
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/utility/alfresco/alfresco-community/solr/collection1/conf'
        at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)
        at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
        at org.apache.solr.core.Config.<init>(Config.java:117)
        at org.apache.solr.core.Config.<init>(Config.java:87)
        at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:167)
        at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:145)
        ... 9 more