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

Conan virtual repositories with multiple remotes resolution fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: 6.11.6
    • Fix Version/s: None
    • Component/s: Conan
    • Labels:
      None
    • Environment:

      Conan 1.18.1 on macOS Mojave

      Artifactory Pro 6.11.6

      Description

      Problem: If there are multiple remotes in a Conan virtual repo, and the first remote fails, Artifactory returns failure rather than searching the next remote.

      Steps to reproduce: Set up a virtual repo with a conan-center remote, and a bincrafters remote. Attempt to retrieve a Bincrafters recipe.

      Workaround: Use only one remote per virtual repo, and add the multiple resulting virtual repos to the client remote list.

      env CONAN_TRACE_FILE=$PWD/trace.log conan install boost_dll/1.67.0@bincrafters/testing -pr apple-clang-9.1-macos-10.7
      ...
      boost_dll/1.67.0@bincrafters/testing: Trying with 'conan-center-virtual'...
      {"_action": "REST_API_CALL", "duration": 0.020654916763305664, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.1 (Python 3.6.5) python-requests/2.20.1", "X-Client-Anonymous-Id": "**********", "X-Client-Id": "kam"}, "method": "GET", "time": 1565832364.9654558, "url": "http://artifactory2.dlogics.com:8081/artifactory/api/conan/conan-center-virtual/v1/ping"}
      {"_action": "REST_API_CALL", "duration": 2.3109567165374756, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.1 (Python 3.6.5) python-requests/2.20.1", "X-Client-Anonymous-Id": "**********", "X-Client-Id": "kam"}, "method": "GET", "time": 1565832367.2770329, "url": "http://artifactory2.dlogics.com:8081/artifactory/api/conan/conan-center-virtual/v2/conans/boost_dll/1.67.0/bincrafters/testing/latest"}
      {"_action": "REST_API_CALL", "duration": 2.0464022159576416, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.1 (Python 3.6.5) python-requests/2.20.1", "X-Client-Anonymous-Id": "**********", "X-Client-Id": "kam"}, "method": "GET", "time": 1565832369.324734, "url": "http://artifactory2.dlogics.com:8081/artifactory/api/conan/conan-center-virtual/v2/conans/boost_dll/1.67.0/bincrafters/testing/revisions/0/files"}
      {"_action": "REST_API_CALL", "duration": 0.020975828170776367, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.1 (Python 3.6.5) python-requests/2.20.1", "X-Client-Anonymous-Id": "**********"}, "method": "GET", "time": 1565832369.346709, "url": "http://artifactory2.dlogics.com:8081/artifactory/api/conan/conan-center-virtual/v2/conans/boost_dll/1.67.0/bincrafters/testing/revisions/0/files/conanmanifest.txt"}
      

      Log message from Artifactory:

      2019-08-15 01:30:08,898 [http-nio-8081-exec-7] [ERROR] (o.a.a.c.r.ConanV2RemoteRepoHandler:261) - Unable to fetch latest revision from 'https://api.bintray.com/conan/conan/conan-center/v2/conans/boost_dll/1.67.0/bincrafters/testing/latest': HTTP/1.1 404 Not Found
      2019-08-15 01:30:11,228 [http-nio-8081-exec-1] [ERROR] (o.a.a.c.r.ConanV2RemoteRepoHandler:398) - Unable to fetch file list from 'https://api.bintray.com/conan/conan/conan-center/v2/conans/boost_dll/1.67.0/bincrafters/testing/revisions/0/files': HTTP/1.1 404 Not Found
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kam Kevin A. Mitchell
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: