I have a strange issue today. We have NuGet package, that can not be restored via nexus group.
Group contains 2 repositories:
- Hosted Nexus Repo
- Proxy from https://nuget.org
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/18.104.22.168-alphafs/kelite.approvaltests.22.214.171.124-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)