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

`index.json` locks error while copying Conan packages from one repo to another

    XMLWordPrintable

    Details

    • Severity:
      Critical

      Description

      We are experiencing issues with the Conan indexes, I attach a log, search for "2019-05-07 09:21:47,667" to find the error. 
      Any suggestions? It fails pretty frequently. The operation being done is copying a package with the Artifactory rest API from one repository to another one.
      If I retry the operation usually it works.
      Here is a small piece of the error:
       
       

      2019-05-07 09:19:47,420 [art-exec-74] [INFO ] (o.a.a.c.s.ConanServiceImpl:280) - Conan index calculation for conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f finished successfully 2019-05-07 09:19:47,420 [art-exec-74] [INFO ] (o.a.a.c.s.ConanServiceImpl:278) - Starting Conan index calculation for conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f 2019-05-07 09:19:47,588 [art-exec-74] [INFO ] (o.a.a.c.s.ConanServiceImpl:280) - Conan index calculation for conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f finished successfully 2019-05-07 09:19:47,589 [art-exec-74] [INFO ] (o.a.a.c.s.ConanServiceImpl:278) - Starting Conan index calculation for conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f 2019-05-07 09:21:47,660 [art-exec-74] [WARN ] (o.a.s.d.l.p.DbMapLockWrapper:60) - Could not acquire lock within 120 seconds. Couldn't acquire lock for: 120000 milliseconds 2019-05-07 09:21:47,665 [http-nio-8081-exec-7] [WARN ] (o.a.s.d.l.p.DbMapLockWrapper:60) - Could not acquire lock within 120 seconds. Couldn't acquire lock for: 120000 milliseconds 2019-05-07 09:21:47,667 [http-nio-8081-exec-7] [WARN ] (o.a.s.f.l.SessionLockEntry:120) - Mutable item 'auto-trashcan:conan-center/conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f/index.json' has local modifications that will be discarded. 2019-05-07 09:21:47,677 [http-nio-8081-exec-7] [ERROR] (o.a.a.r.CopyMoveHelper:89) - Failed to copy from src=c3i_PR-21_8a3875acec823ca2b601aba60ff9f3f697057f87// to target=conan-center//: Lock on LockEntryId conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f/index.json not acquired in 120 seconds. Lock info: org.artifactory.storage.db.locks.provider.DbMapLockWrapper@42d41b6.: Lock on LockEntryId conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f/index.json not acquired in 120 seconds. Lock info: org.artifactory.storage.db.locks.provider.DbMapLockWrapper@42d41b6. 2019-05-07 09:21:47,677 [art-exec-74] [ERROR] (o.a.r.d.DbStoringRepoMixin:290) - Couldn't save resource conan-center:conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f/index.json, reason: org.artifactory.concurrent.LockingException: Lock on LockEntryId auto-trashcan:conan-center/conan/gtest/1.8.1/stable/e90a0fab2f7f8df5b77bd4986ec99ced/package/805658ef14072e0f5de5a0aa4d2ec1ced53ae05f/index.json not acquired in 120 seconds. Lock info: org.artifactory.storage.db.locks.provider.DbMapLockWrapper@791de1b0.  at org.artifactory.storage.fs.lock.SessionLockEntry.acquire(SessionLockEntry.java:105)  at org.artifactory.storage.fs.lock.SessionLockEntry.acquireWriteLock(SessionLockEntry.java:90)

       
       that error happens even when no other process is doing anything on the same artifactory instance, only that copy is happening, and it failed (again)

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                alexeiv Alexei Vainshtein
                Reporter:
                diegor Diego Rodriguez-Losada Gonzalez
                Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

                    Connection: RTFACT Sync
                    RTMID-19146 -
                    SYNCHRONIZED
                    • Last Sync Date: