Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-10585

Artifactory failed to delete repo with permission target and concurrent downloads

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.7.0, 4.8.0
    • Fix Version/s: 4.8.2
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      On node 1:
      1. Create 'test' repository and deploy approx. 10K files to it.
      2. Create permission target and place this repository along with some other repositories in the created permission target.
      3. Try to delete the repository via the UI.

      On the 2nd node:
      1. While the deletion of the repo is occurring (should take a while since there are many files), try to download some files from the 'test' repo on the 2nd node. After a while the below exception will show:

      Artifactory failed to delete repo with permission target and concurrent downloads

      2016-06-03 15:58:30,434 [ajp-nio-8019-exec-631] [INFO ] (o.a.e.UploadServiceImpl:453) - Deploy to 'syseng-sandbox-local:com/oracle/opc/compute-images/JEOS_OL_6.6_10GB_RE/1.2.471-20151106-172404/JEOS_OL_6.6_10GB_RE-1.0.002-20141105-033705.tar.gz-1.2.471-20151106-172404.tar.gz' Content-Length: 1083854746
      2016-06-03 15:58:52,092 [hz.slc-stage-node-2.event-3] [INFO ] (o.a.c.CentralConfigServiceImpl:284) - Reloading configuration...
      2016-06-03 15:58:52,095 [hz.slc-stage-node-2.event-3] [WARN ] (o.a.r.s.RepositoryServiceImpl:321) - Removing the no-longer-referenced repository emaas-sandbox-local
      2016-06-03 15:58:52,146 [hz.slc-stage-node-2.event-3] [ERROR] (o.a.c.CentralConfigServiceImpl:308) - Failed to reload configuration: User is not permitted to modify repositories
      org.artifactory.api.security.AuthorizationException: User is not permitted to modify repositories
      at org.artifactory.security.SecurityServiceImpl.alertModifiedField(SecurityServiceImpl.java:2197) ~[artifactory-core-4.7.0d.jar:na]
      at org.artifactory.security.SecurityServiceImpl.validateUnmodifiedPermissionTarget(SecurityServiceImpl.java:2187) ~[artifactory-core-4.7.0d.jar:na]
      at org.artifactory.security.SecurityServiceImpl.updateAcl(SecurityServiceImpl.java:448) ~[artifactory-core-4.7.0d.jar:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
      at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at com.sun.proxy.$Proxy62.updateAcl(Unknown Source) ~[na:na]
      at org.artifactory.repo.service.RepositoryServiceImpl.deleteOrphanRepo(RepositoryServiceImpl.java:354) ~[artifactory-core-4.7.0d.jar:na]
      at org.artifactory.repo.service.RepositoryServiceImpl.deleteOrphanRepos(RepositoryServiceImpl.java:322) ~[artifactory-core-4.7.0d.jar:na]
      at org.artifactory.repo.service.RepositoryServiceImpl.reload(RepositoryServiceImpl.java:241) ~[artifactory-core-4.7.0d.jar:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
      at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74) ~[artifactory-storage-common-4.7.0d.jar:na]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at com.sun.proxy.$Proxy66.reload(Unknown Source) ~[na:na]
      at org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:336) ~[artifactory-core-4.7.0d.jar:na]
      at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:298) [artifactory-core-4.7.0d.jar:na]
      at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:246) [artifactory-core-4.7.0d.jar:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
      at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at com.sun.proxy.$Proxy64.reloadConfiguration(Unknown Source) [na:na]
      at org.artifactory.addon.ha.cluster.listeners.ReloadConfigListener.onMessage(ReloadConfigListener.java:49) [artifactory-addon-ha-4.7.0d.jar:na]
      at com.hazelcast.topic.impl.TopicService.dispatchEvent(TopicService.java:131) [hazelcast-3.6.1.jar:3.6.1]
      at com.hazelcast.spi.impl.eventservice.impl.EventProcessor.process(EventProcessor.java:48) [hazelcast-3.6.1.jar:3.6.1]
      at com.hazelcast.spi.impl.eventservice.impl.RemoteEventProcessor.run(RemoteEventProcessor.java:36) [hazelcast-3.6.1.jar:3.6.1]
      at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:187) [hazelcast-3.6.1.jar:3.6.1]
      at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:171) [hazelcast-3.6.1.jar:3.6.1]
      2016-06-03 15:58:52,171 [hz.slc-stage-node-2.event-3] [INFO ] (o.a.a.h.c.l.ReloadConfigListener:65) - Slave node could not reload configuration due to: Failed to reload configuration: User is not permitted to modify repositories
      2016-06-03 15:58:52,171 [hz.slc-stage-node-2.event-3] [INFO ] (o.a.a.h.c.l.ReloadConfigListener:67) - Slave node will activate wrong version action!
      2016-06-03 15:58:52,300 [hz.slc-stage-node-2.event-3] [INFO ] (o.a.a.h.c.l.ReloadConfigListener:88) - Cluster member is not up to date, due to Failed to reload configuration: User is not permitted to modify repositories
      The File /nas/artifactory_storage/slc-stage-cluster-home/ha-etc/onPrimaryUpgradeEvent indicated not to act on this state.
      Please upgrade the cluster members as soon as possible.
      2016-06-03 15:58:55,530 [ajp-nio-8019-exec-848] [INFO ] (o.a.e.UploadServiceImpl:453) - Deploy to 'syseng-sandbox-local:com/oracle/opc/compute-images/JEOS_OL_6.6_10GB_RE/1.2.471-20151106-172404/JEOS_OL_6.6_10GB_RE-1.0.002-20141105-033705.tar.gz-1.2.471-20151106-172404.tar.gz' Content-Length: 1083854746
      2016-06-03 15:59:22,272 [ajp-nio-8019-exec-861] [INFO ] (o.a.e.UploadServiceImpl:453) - Deploy to 'syseng-sandbox-local:com/oracle/opc/compute-images/JEOS_OL_6.6_10GB_RE/1.2.471-20151106-172404/JEOS_OL_6.6_10GB_RE-1.0.002-20141105-033705.tar.gz-1.2.471-20151106-172404.tar.gz' Content-Length: 1083854746
      2016-06-03 15:59:47,220 [ajp-nio-8019-exec-522] [INFO ] (o.a.e.UploadServiceImpl:453) - Deploy to 'syseng-sandbox-local:com/oracle/opc/compute-images/JEOS_OL_6.6_10GB_RE/1.2.471-20151106-172404/JEOS_OL_6.6_10GB_RE-1.0.002-20141105-033705.tar.gz-1.2.471-20151106-172404.tar.gz' Content-Length: 1083854746
      2016-06-03 16:00:13,848 [ajp-nio-8019-exec-631] [INFO ] (o.a.e.UploadServiceImpl:453) - Deploy to 'syseng-sandbox-local:com/oracle/opc/compute-images/JEOS_OL_6.6_10GB_RE/1.2.471-20151106-172404/

        Attachments

          Activity

            People

            • Assignee:
              gidis Gidi Shabat
              Reporter:
              gidis Gidi Shabat
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: