Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19753

License verification sometimes breaks bootstrap in a cluster

    Details

      Description

      While starting up concurrently one of the cluster nodes can fail with license verification error:

      2018-05-29 12:38:29,650 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
      org.alfresco.repo.lock.LockAcquisitionException: 04290028 Failed to get lock '\{http://www.alfresco.org/model/content/1.0}verifylicense' using token 'aa1c1dad-bf78-44f0-ae19-d117cea4ce3b'. An exclusive lock exists: LockEntity[ ID=1, sharedResourceId=1, exclusiveResourceId=1]
       at org.alfresco.repo.domain.locks.AbstractLockDAOImpl.getLock(AbstractLockDAOImpl.java:120)
       at org.alfresco.repo.lock.JobLockServiceImpl$5.execute(JobLockServiceImpl.java:494)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
       at org.alfresco.repo.lock.JobLockServiceImpl.doWithRetry(JobLockServiceImpl.java:546)
       at org.alfresco.repo.lock.JobLockServiceImpl.getLockImpl(JobLockServiceImpl.java:500)
       at org.alfresco.repo.lock.JobLockServiceImpl.getLock(JobLockServiceImpl.java:228)
       at org.alfresco.repo.lock.JobLockServiceImpl.getLock(JobLockServiceImpl.java:218)
       at org.alfresco.repo.lock.JobLockServiceImpl.getLock(JobLockServiceImpl.java:288)
       at org.alfresco.enterprise.license.LicenseComponent.lambda$verifyLicense$0(LicenseComponent.java:134)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
       at org.alfresco.enterprise.license.LicenseComponent.verifyLicense(LicenseComponent.java:134)
       at org.alfresco.repo.descriptor.DescriptorServiceImpl.bootstrap(DescriptorServiceImpl.java:382)
       at org.alfresco.repo.descriptor.DescriptorServiceImpl.access$7(DescriptorServiceImpl.java:328)
       at org.alfresco.repo.descriptor.DescriptorServiceImpl$5.doWork(DescriptorServiceImpl.java:318)
       at org.alfresco.repo.descriptor.DescriptorServiceImpl$5.doWork(DescriptorServiceImpl.java:1)
       at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
       at org.alfresco.repo.descriptor.DescriptorServiceImpl.onBootstrap(DescriptorServiceImpl.java:322)
       at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
       at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:221)
       at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:186)
       at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:206)
       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)
       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:353)
       at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:887)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
       at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
       at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4753)
       at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5215)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
       at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141)
       at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
       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:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  amukha Alex Mukha
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel