Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Leap 15, Leap 16, Leap 17, Leap 18

      Description

      2017-07-30 19:01:13,100 [art-exec-169] [ERROR] (o.a.a.y.YumAddonImpl:398) - An error occurred while saving YUM metadata for rpm-local:./bamba
      java.lang.RuntimeException: java.nio.file.InvalidPathException: Path element cannot end with a dot: rpm-local/./bamba/_tmp_22596255283785598496658/
      	at org.jfrog.metadata.yum.writer.YumRepoMetadataWriter.write(YumRepoMetadataWriter.java:89) ~[rpm-writer-4.x-SNAPSHOT.jar:na]
      	at org.artifactory.addon.yum.YumAddonImpl.writeMetadataAsSystem(YumAddonImpl.java:394) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.addon.yum.YumAddonImpl.writeMetadata(YumAddonImpl.java:377) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_73]
      	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.$Proxy281.writeMetadata(Unknown Source) [na:na]
      	at org.artifactory.addon.yum.YumAddonImpl$RpmMetadataWriter.write(YumAddonImpl.java:345) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at org.jfrog.metadata.indexer.RpmRepoIndexer.indexUsingAdvancedWriter(RpmRepoIndexer.java:92) [rpm-indexer-4.x-SNAPSHOT.jar:na]
      	at org.jfrog.metadata.indexer.RpmRepoIndexer.index(RpmRepoIndexer.java:76) [rpm-indexer-4.x-SNAPSHOT.jar:na]
      	at org.artifactory.addon.yum.YumAddonImpl.calculateYumMetadataAsSystem(YumAddonImpl.java:310) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.addon.yum.YumAddonImpl.calculateYumMetadata(YumAddonImpl.java:278) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.addon.yum.YumAddonImpl.calculateRpmMetadataAsync(YumAddonImpl.java:114) [artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_73]
      	at org.artifactory.work.queue.AsyncWorkQueueServiceImpl.lambda$0(AsyncWorkQueueServiceImpl.java:82) [artifactory-core-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.work.queue.WorkQueueImpl.doJobs(WorkQueueImpl.java:81) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_73]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_73]
      	at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) ~[artifactory-storage-common-5.x-SNAPSHOT.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_73]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_73]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_73]
      Caused by: java.nio.file.InvalidPathException: Path element cannot end with a dot: rpm-local/./bamba/_tmp_22596255283785598496658/
      	at org.artifactory.util.PathValidator.validate(PathValidator.java:74) ~[artifactory-common-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.storage.db.fs.model.DbMutableItem.<init>(DbMutableItem.java:107) ~[artifactory-storage-db-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.storage.db.fs.model.DbMutableFolder.<init>(DbMutableFolder.java:46) ~[artifactory-storage-db-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.storage.db.fs.model.DbFsItemProvider.createAncestors(DbFsItemProvider.java:201) ~[artifactory-storage-db-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.storage.db.fs.model.DbFsItemProvider.getOrCreateMutableFsItem(DbFsItemProvider.java:139) ~[artifactory-storage-db-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.storage.db.fs.model.DbFileProvider.getOrCreMutableFile(DbFileProvider.java:75) ~[artifactory-storage-db-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.repo.db.DbStoringRepoMixin.createOrGetFile(DbStoringRepoMixin.java:651) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:179) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:157) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.repo.service.RepositoryServiceImpl.saveResourceInTransaction(RepositoryServiceImpl.java:1755) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_73]
      	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.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.$Proxy141.saveResourceInTransaction(Unknown Source) ~[na:na]
      	at org.artifactory.repo.service.RepositoryServiceImpl.saveResource(RepositoryServiceImpl.java:1726) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at org.artifactory.repo.service.RepositoryServiceImpl.saveFileInternal(RepositoryServiceImpl.java:584) ~[artifactory-core-5.x-SNAPSHOT.jar:na]
      	at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73]
      	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_73]
      	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.$Proxy141.saveFileInternal(Unknown Source) ~[na:na]
      	at org.artifactory.addon.yum.indexer.RpmRepoMetadataSink.write(RpmRepoMetadataSink.java:74) ~[artifactory-addon-yum-5.x-SNAPSHOT.jar:na]
      	at org.jfrog.metadata.yum.writer.YumRepoMetadataWriter.writeIndex(YumRepoMetadataWriter.java:174) ~[rpm-writer-4.x-SNAPSHOT.jar:na]
      	at org.jfrog.metadata.yum.writer.YumRepoMetadataWriter.writeRpmIndices(YumRepoMetadataWriter.java:157) ~[rpm-writer-4.x-SNAPSHOT.jar:na]
      	at org.jfrog.metadata.yum.writer.YumRepoMetadataWriter.write(YumRepoMetadataWriter.java:79) ~[rpm-writer-4.x-SNAPSHOT.jar:na]
      	... 25 common frames omitted
      

      Don't know if it's related, but, repo is configured for depth 1, and I have few artifacts in several depths, including 1.

        Attachments

          Activity

            People

            Assignee:
            yuvalr Yuval Reches
            Reporter:
            yogeva Yogev Abergel (Inactive)
            Assigned QA:
            Yogev Abergel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: