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

Redistributing docker artifacts from a distribution repository results in a failure

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.15.0
    • Fix Version/s: 6.0.0, 5.9.6
    • Labels:
      None

      Description

      Redistributing Docker artifacts from a distribution repository results in a failure.

      To reproduce

      0. On Artifactory, setup an account that can push to Bintray
      1. Create a distribution repo with a rule to allow you to push Docker images
      2. Distribute a Docker image (from a local repo)
      3. Delete the image from Bintray
      4. Under the distribution repository, select the previsouly distributed image, right click and select "Redistribute"
      5. Notice the error in the Artifactory logs and the failure to re-upload the image

      Error in logs

      2017-01-12 22:52:47,342 [art-exec-7516] [ERROR] (o.a.b.d.BintrayVersionDistributor:143) - Error distributing my-dist/test-docker/nginx-1/latest/manifest.json -> test-docker/nginx-1/latest/nginx-1/latest/manifest.json: Can't find property value for docker.repoName on path: my-dist/test-docker/nginx-1/latest/manifest.json which is required for resolving its distribution coordinates
      org.artifactory.api.repo.exception.ItemNotFoundRuntimeException: Can't find property value for docker.repoName on path: my-dist/test-docker/nginx-1/latest/manifest.json which is required for resolving its distribution coordinates
      	at org.artifactory.bintray.distribution.util.DistributionUtils.lambda$5(DistributionUtils.java:148) ~[artifactory-core-4.15.0.jar:na]
      	at java.util.Optional.orElseThrow(Optional.java:290) ~[na:1.8.0_91]
      	at org.artifactory.bintray.distribution.util.DistributionUtils.getTokenValueByPropKey(DistributionUtils.java:148) ~[artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.BintrayVersionDistributor.distributeDocker(BintrayVersionDistributor.java:181) [artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.BintrayVersionDistributor.pushArtifactToBintrayCoordinates(BintrayVersionDistributor.java:158) [artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.BintrayVersionDistributor.pushArtifacts(BintrayVersionDistributor.java:130) [artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.BintrayVersionDistributor.distributeVersion(BintrayVersionDistributor.java:98) [artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.DistributorImpl.distributeVersion(DistributorImpl.java:112) [artifactory-core-4.15.0.jar:na]
      	at org.artifactory.bintray.distribution.DistributorImpl.lambda$1(DistributorImpl.java:99) [artifactory-core-4.15.0.jar:na]
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:1.8.0_91]
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_91]
      	at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_91]
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[na:1.8.0_91]
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_91]
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_91]
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:1.8.0_91]
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:1.8.0_91]
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_91]
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[na:1.8.0_91]
      	at org.artifactory.bintray.distribution.DistributorImpl.distributeInternal(DistributorImpl.java:99) [artifactory-core-4.15.0.jar:na]
      	at sun.reflect.GeneratedMethodAccessor481.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_91]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91]
      	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.artifactory.schedule.aop.TraceableMethodInvocation.proceed(TraceableMethodInvocation.java:58) ~[artifactory-core-4.15.0.jar:na]
      	at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:288) ~[artifactory-core-4.15.0.jar:na]
      	at org.artifactory.schedule.aop.AsyncAdvice.lambda$1(AsyncAdvice.java:242) ~[artifactory-core-4.15.0.jar:na]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_91]
      	at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) ~[artifactory-storage-common-4.15.0.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_91]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_91]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                uriahl Uriah Levy
                Reporter:
                arturoa Arturo Aparicio
                Assigned QA:
                Matan Katz
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: