Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Possible Performance degration, V3 was not working" error when using with TFS feed #2877

Closed
drwatson1 opened this issue Oct 31, 2017 · 20 comments

Comments

@drwatson1
Copy link
Contributor

Description

I get "Possible Performance degration, V3 was not working: One or more errors occurred." message when I use the on-premise TFS server.

Repro steps

The minimal paket.dependencies file to reproduce:

source http://tfs.geobuilder.ru:8080/tfs/DefaultCollection/_packaging/default-1/nuget/v3/index.json
source https://api.nuget.org/v3/index.json

framework: >= net45

nuget GeoCybernetica.Shared ~> 1.1.0.77

http://tfs.geobuilder.ru:8080 - is the latest version of on-premise TFS server and it is accessible from internet. I can provide you a login and password to reproduce.

@shauser
Copy link

shauser commented Nov 8, 2017

I also get this warning since a few days, using an UNC path for our internal repository. It seems to me that it happens when two sources are listed and resolve at the same time.
This is the full error I get (which includes the exception message which caused this for me):

Possible Performance degradation, V3 was not working: The process cannot access the file 'C:\Users\username\AppData\Local\Nuget\Cache\Microsoft.AspNet.WebApi.Client.5.2.3.s1689900308_v5.114.json' because it is being used by another process.Possible Performance degradation, V3 was not working: The process cannot access the file 'C:\Users\username\AppData\Local\Nuget\Cache\Microsoft.AspNet.WebApi.Client.5.2.3.s1689900308_v5.114.json' because it is being used by another process.

@drwatson1
Copy link
Contributor Author

I think this is an another case.
For my issue these messages appear only for packages hosted by on-premise TFS. For nuget.org and myget.org they are absent.

I found issue #2700 with the similar symptoms.

@blumu
Copy link

blumu commented Nov 22, 2017

I also get this when pulling from a VSTS V3 feed. Also even though Paket falls back on V2, the message breaks our build because it now gets printed to stderror:

eprintfn "Possible Performance degradation, V3 was not working: %s" exn.Message

@matthid
Copy link
Member

matthid commented Nov 22, 2017

@blumu in vsts there usually is a checkbox in advanced to ignore stderr

@blumu
Copy link

blumu commented Nov 22, 2017 via email

@matthid
Copy link
Member

matthid commented Nov 22, 2017

@blumu Actual errors lead to a non-zero exit code.

@blumu
Copy link

blumu commented Nov 22, 2017

@matthid Thanks for confirming that paket returns non-zero exit code. I would still love to have a paket option to silence this error though. As a workaround we disabled the VSTS option to fail on stderror:
image

The only drawback: we need to make sure to run paket in a dedicated VSTS task as we still want to fail on stderrors issued by our other build scripts.

@matthid
Copy link
Member

matthid commented Nov 22, 2017

Yes this is basically the "warnings as errors" feature. Note that in an ideal world we would have zero warnings. But the NuGet ecosystem is a mess and we are glad it is somehow not breaking apart every day. So yeah we have some edge cases.

@enricosada
Copy link
Collaborator

eprintfn "Possible Performance degradation, V3 was not working: %s" exn.Message

@matthid putting that to stdout instead of stderr can be ok?

@drwatson1
Copy link
Contributor Author

As for me, I think it is a workaround only, not a solution. Because V3 is working

@matthid
Copy link
Member

matthid commented Jan 24, 2018

In my opinion warnings need to go to stderr not stdout, because stdout needs to be potentially parsable. That is generally agreed on in the unix and command line world.

@matthid
Copy link
Member

matthid commented Jan 24, 2018

Ideally the root cause is solved ;)

@matthid
Copy link
Member

matthid commented Jan 24, 2018

Ideally the root cause is solved ;)

I should add: if that is not possible for some technical reason we could add an option to silence that particular warning.

@forki
Copy link
Member

forki commented Jan 24, 2018 via email

@matthid
Copy link
Member

matthid commented Jan 24, 2018

Everything agrees except Microsoft.

It's really just a matter of defaults. Microsoft thinks defaulting to "Warning as error" is a good default and you cannot argue with that. It's more a problem with people not being able to change the defaults ;)

@drwatson1
Copy link
Contributor Author

))))
I don't think so. It's look like a holy war therefore.
I can supply you with an account to our server if you want to see what's the matter or you can close the issue as none relevant.... It's up to you)))

@matthid
Copy link
Member

matthid commented Jan 24, 2018

No war. Ultimately, we have something here which is not critical but might need to be fixed (-> therefore a warning).
Until then disabling "warning as error" is a viable workaround.

@drwatson1
Copy link
Contributor Author

Ok, I agree
It's more then nothing)) Thank you
But what do you think about this? Is it a real degradation or it is a possibility only? About a month or two ago 'paket install' takes about 30-40 minutes to add a one new package.... For now it works several minutes

@matthid
Copy link
Member

matthid commented Oct 23, 2018

Some additional info (verbose mode):

Starting request to 'https://tfs/tfs/TEAM/_packaging/GUID/nuget/v3/registrations2/PACKAGE/index.json'
Possible Performance degradation, V3 was not working: Value cannot be null.
Parameter name: source
Error while using V3 API: System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at Microsoft.FSharp.Collections.SeqModule.Filter[T](FSharpFunc`2 predicate, IEnumerable`1 source)
   at [email protected](Unit unitVar)
   at [email protected](AsyncParams`1 args)

@matthid
Copy link
Member

matthid commented Oct 23, 2018

Actually I think this has been fixed since #3341

@matthid matthid closed this as completed Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants