Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-27081

Can't restore NuGet package with V3 api, but it restores with V2 API

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.30.0
    • Fix Version/s: None
    • Component/s: nuget-v3
    • Labels:
    • Environment:
      docker container. Host is CentOS 7.7

      Description

      Hello!

      I have a strange issue today. We have NuGet package, that can not be restored via nexus group.

      Group contains 2 repositories:

      Both a working via V3 protocol.

      NuGet.Config relies to a https://mynexusinstance.com/repisitory/nuget/index.json

      where nuget - the name of the group.

       

      So, when user tries (both locally and in CI) restore packages one of them can not be restored and nuget.exe or dotnet restore command replies that package could not be found in repository. But in fact this package present in hosted repository.

      When user changes nuget config to <hostedrepoaddress>/index.json problem remains the same.

      But when user changes nuget config to <hostedrepoaddress> problem magically solved and package restores both localy and in CI.

       

      We've tried to delete package, then use task for compact nuget blob storage, then upload package again - problem stays.

      We've tried to rebuild repo indexes and search - problem stays.

      Also, nuget client and dotnet restore informs with error 404 and package not found message and if we tried to go to this url(https://mynexusinstance.com/repository/nuget/v3/content/kelite.approvaltests/4.2.2.2-alphafs/kelite.approvaltests.4.2.2.2-alphafs.nupkg) we will see the following (screenshot in the attachment) 

      But package is presents in the repo as I mentioned before

      I suspect that index.json might be corrupted for some reason but have no idea how to fix it. Any advise about that?

      Or this is a bug?

      Nothing suspicious in request or nexus logs (both told about 404 error)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Dimis Dmitry
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title