-
Notifications
You must be signed in to change notification settings - Fork 519
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
Paket doesn't work properly with Nexus(es) #1210
Comments
|
It probably is. Can you run it with -v flag to get stacktrace?
|
|
to make the report more precise, the the trace: # packages/Paket/tools/paket.exe -v restore
Paket version 2.21.3.0
found: C:\Users\user\Projects\tmp3\coolsoftware\src\paket.dependencies
Parsing C:\Users\user\Projects\tmp3\coolsoftware\src\paket.dependencies
Something went wrong while downloading Akka 1.0.3 - Trying again.
...
Response from http://klondike:8081/api/odata/Packages?$filter=Id eq 'Corporation.Department.Data.Common' and Version eq '1.0.0.231':
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="http://klondike:8081/api/odata/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">Packages</title>
<id>http://klondike:8081/api/odata/Packages</id>
<updated>2015-11-12T08:58:48Z</updated>
<link rel="self" title="Packages" href="Packages" />
<entry>
<id>http://klondike:8081/api/odata/Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')</id>
<title type="text">Corporation.Department.Data.Common</title>
<summary type="text"></summary>
<updated>2015-10-09T07:58:10Z</updated>
<author>
<name>Department</name>
</author>
<link rel="edit-media" title="DataServicePackage" href="Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')/$value" />
<link rel="edit" title="DataServicePackage" href="Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')" />
<category term="NuGet.Lucene.Web.DataServices.DataServicePackage" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/zip" src="http://klondike:8081/api/packages/Corporation.Department.Data.Common/1.0.0.231/content" />
<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:Version>1.0.0.231</d:Version>
<d:Title>Corporation.Department.Data.Common</d:Title>
<d:Owners>Corporation</d:Owners>
<d:IconUrl m:null="true"></d:IconUrl>
<d:LicenseUrl m:null="true"></d:LicenseUrl>
<d:ProjectUrl m:null="true"></d:ProjectUrl>
<d:DownloadCount m:type="Edm.Int32">882</d:DownloadCount>
<d:RequireLicenseAcceptance m:type="Edm.Boolean">false</d:RequireLicenseAcceptance>
<d:Description>Common classes for data</d:Description>
<d:ReleaseNotes m:null="true"></d:ReleaseNotes>
<d:Created m:type="Edm.DateTime">2015-10-09T08:58:04Z</d:Created>
<d:Published m:type="Edm.DateTime">2015-10-09T07:58:10.1267923Z</d:Published>
<d:Dependencies></d:Dependencies>
<d:PackageHash>cLSvBsIBLSznmqG1oqZ3/BTPphQ6N+T7Y5GU3fD7F+mcGPzCNvEPqSss8tDpwKMwggOM7olzjZrEpvo6/xI73w==</d:PackageHash>
<d:PackageHashAlgorithm>SHA512</d:PackageHashAlgorithm>
<d:PackageSize m:type="Edm.Int64">20446</d:PackageSize>
<d:Copyright m:null="true"></d:Copyright>
<d:Tags m:null="true"></d:Tags>
<d:IsAbsoluteLatestVersion m:type="Edm.Boolean">false</d:IsAbsoluteLatestVersion>
<d:IsLatestVersion m:type="Edm.Boolean">false</d:IsLatestVersion>
<d:IsPrerelease m:type="Edm.Boolean">false</d:IsPrerelease>
<d:Listed m:type="Edm.Boolean">true</d:Listed>
<d:DevelopmentDependency m:type="Edm.Boolean">false</d:DevelopmentDependency>
<d:VersionDownloadCount m:type="Edm.Int32">90</d:VersionDownloadCount>
<d:Score m:type="Edm.Single">0</d:Score>
<d:Summary m:null="true"></d:Summary>
</m:properties>
</entry>
</feed>
...
loaded details for 'Corporation.Department.Data.Common@1.0.0.231' from url 'http://klondike:8081/api/odata'
loaded details for 'Corporation.Squirrel2@1.2.0.45653' from url 'http://klondike:8081/api/odata'
loaded details for 'Corporation.Department.Team.Logging@1.1.0.205' from url 'http://klondike:8081/api/odata'
Something went wrong while downloading Selenium.Support 2.44.0 - Trying again.
Downloading Corporation.Department.Data.Common 1.0.0.231
to C:\Users\user\AppData\Local\NuGet\Cache\Corporation.Department.Data.Common.1.0.0.231.nupkg
Downloading Corporation.Squirrel2 1.2.0.45653
to C:\Users\user\AppData\Local\NuGet\Cache\Corporation.Squirrel2.1.2.0.45653.nupkg
Downloading Corporation.Department.Team.Logging 1.1.0.205
to C:\Users\user\AppData\Local\NuGet\Cache\Corporation.Department.Team.Logging.1.1.0.205.nupkg
Paket failed with:
Could not retrieve data from http://nexus1:8081/nexus/service/local/nuget/nuget-public/odata/Packages(Id='Castle.Windsor',Version='3.3.0')
Message: One or more errors occurred.
Details: The remote server returned an error: (401) Unauthorized.
StackTrace:
at Paket.Utils.getXmlFromUrl@263-6.Invoke(String message)
at Paket.Utils.getXmlFromUrl@250-5.Invoke(Exception _arg2)
at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@851.Invoke(AsyncParams`1 args)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
at Paket.RestoreProcess.Restore(String dependenciesFileName, Boolean force, FSharpOption`1 group, FSharpList`1 referencesFileNames)
at <StartupCode$Paket-Core>.$PublicAPI.Restore@243-2.Invoke(Unit unitVar0)
at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
at Paket.Program.handler@340-13.Invoke(ParseResults`1 results)
at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
at Paket.Program.processCommand@61-1.Invoke(Command command, String[] args)
at Paket.Program.main()is this trace helpful? what other information can I provide, or how do I make it more verbose? |
|
|
|
if sources look like this the trace of |
|
could you please upgrade paket and show the trace from the broken trial with new paket version? |
|
Paket version 2.24.1.0
found: C:\Users\user\Projects\tmp3\coolsoftware\src\paket.dependencies
Parsing C:\Users\user\Projects\tmp3\coolsoftware\src\paket.dependencies
Response from http://klondike:8081/api/odata/Packages?$filter=Id eq 'Corporation.Department.Data.Common' and Version eq '1.0.0.231':
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="http://klondike:8081/api/odata/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">Packages</title>
<id>http://klondike:8081/api/odata/Packages</id>
<updated>2015-11-12T10:22:07Z</updated>
<link rel="self" title="Packages" href="Packages" />
<entry>
<id>http://klondike:8081/api/odata/Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')</id>
<title type="text">Corporation.Department.Data.Common</title>
<summary type="text"></summary>
<updated>2015-10-09T07:58:10Z</updated>
<author>
<name>Department</name>
</author>
<link rel="edit-media" title="DataServicePackage" href="Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')/$value" />
<link rel="edit" title="DataServicePackage" href="Packages(Id='Corporation.Department.Data.Common',Version='1.0.0.231')" />
<category term="NuGet.Lucene.Web.DataServices.DataServicePackage" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/zip" src="http://klondike:8081/api/packages/Corporation.Department.Data.Common/1.0.0.231/content" />
<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:Version>1.0.0.231</d:Version>
<d:Title>Corporation.Department.Data.Common</d:Title>
<d:Owners>Corporation</d:Owners>
<d:IconUrl m:null="true"></d:IconUrl>
<d:LicenseUrl m:null="true"></d:LicenseUrl>
<d:ProjectUrl m:null="true"></d:ProjectUrl>
<d:DownloadCount m:type="Edm.Int32">889</d:DownloadCount>
<d:RequireLicenseAcceptance m:type="Edm.Boolean">false</d:RequireLicenseAcceptance>
<d:Description>Common classes for data</d:Description>
<d:ReleaseNotes m:null="true"></d:ReleaseNotes>
<d:Created m:type="Edm.DateTime">2015-10-09T08:58:04Z</d:Created>
<d:Published m:type="Edm.DateTime">2015-10-09T07:58:10.1267923Z</d:Published>
<d:Dependencies></d:Dependencies>
<d:PackageHash>cLSvBsIBLSznmqG1oqZ3/BTPphQ6N+T7Y5GU3fD7F+mcGPzCNvEPqSss8tDpwKMwggOM7olzjZrEpvo6/xI73w==</d:PackageHash>
<d:PackageHashAlgorithm>SHA512</d:PackageHashAlgorithm>
<d:PackageSize m:type="Edm.Int64">20446</d:PackageSize>
<d:Copyright m:null="true"></d:Copyright>
<d:Tags m:null="true"></d:Tags>
<d:IsAbsoluteLatestVersion m:type="Edm.Boolean">false</d:IsAbsoluteLatestVersion>
<d:IsLatestVersion m:type="Edm.Boolean">false</d:IsLatestVersion>
<d:IsPrerelease m:type="Edm.Boolean">false</d:IsPrerelease>
<d:Listed m:type="Edm.Boolean">true</d:Listed>
<d:DevelopmentDependency m:type="Edm.Boolean">false</d:DevelopmentDependency>
<d:VersionDownloadCount m:type="Edm.Int32">97</d:VersionDownloadCount>
<d:Score m:type="Edm.Single">0</d:Score>
<d:Summary m:null="true"></d:Summary>
</m:properties>
</entry>
</feed>
...
loaded details for 'Corporation.Department.Data.Common@1.0.0.231' from url 'http://klondike:8081/api/odata'
...
Something went wrong while downloading Castle.Core 3.3.3
Message: Could not retrieve data from http://nexus1:8081/nexus/service/local/nuget/nuget-public/odata/Packages(Id='Castle.Core',Version='3.3.3')
Message: One or more errors occurred.
Details: The remote server returned an error: (401) Unauthorized.
==> Trying again.
Paket failed with:
Could not retrieve data from http://nexus1:8081/nexus/service/local/nuget/nuget-public/odata/Packages(Id='Castle.Core',Version='3.3.3')
Message: One or more errors occurred.
Details: The remote server returned an error: (401) Unauthorized.
...
StackTrace:
at Paket.Utils.getXmlFromUrl@263-6.Invoke(String message)
at Paket.Utils.getXmlFromUrl@250-5.Invoke(Exception _arg2)
at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@851.Invoke(AsyncParams`1 args)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
at Paket.RestoreProcess.Restore(String dependenciesFileName, Boolean force, FSharpOption`1 group, FSharpList`1 referencesFileNames)
at <StartupCode$Paket-Core>.$PublicAPI.Restore@243-2.Invoke(Unit unitVar0)
at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
at Paket.Program.handler@340-13.Invoke(ParseResults`1 results)
at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
at Paket.Program.processCommand@61-1.Invoke(Command command, String[] args)
at Paket.Program.main() |
|
ok I have a guess and found a potential bug. |
|
ok used a different wifi. please try 2.24.3 |
|
wow, thank you! the problem seems to be gone. |
|
Ok, I'm pretty sure it was the bug. That code was obviously broken. |
I use 2 Nexus instances
nexus1andnexus2.nexus1doesn't need credentials,nexus2needs credentials.I have these sources in
paket.dependenciesWhen Paket tries downloading packages from
nexus1it fails:The remote server returned an error: (401) Unauthorized.If I delete the
nexus2line, downloading fromnexus1works. Is it possible this is a bug in Paket?The text was updated successfully, but these errors were encountered: