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

[Self-hosted NuGet.Server package]: Basically nothing works at all #10318

Open
dca00 opened this issue Jan 12, 2025 · 1 comment
Open

[Self-hosted NuGet.Server package]: Basically nothing works at all #10318

dca00 opened this issue Jan 12, 2025 · 1 comment

Comments

@dca00
Copy link

dca00 commented Jan 12, 2025

Impact

I'm unable to use this version

Describe the bug

Push command does not work.
Manually deployed packages do not show up in feed.
404 error when clicking on "Click here to view your packages".

Repro Steps

  1. Followed instructions at https://learn.microsoft.com/en-us/nuget/hosting-packages/nuget-server
  2. Published solution.
  3. Deployed to IIS.
  4. Tried to push packages - results in errors. Had to remove duplicate /nuget from the path because leaving as on the Default.aspx resulted in 404 errors.
  5. Tried to put packages into Packages physical folder.
  6. Still 404 from package list.

Expected Behavior

Should work.

Screenshots

The highlighted is wrong/misleading, results in 404 errors:

image

When clicking on the 1st link (under Click here...)

image

Additional Context and logs

NuGet Version: 6.12.1.1
Pushing TestPackage.1.1.1.3.nupkg to 'http://192.168.10.21/nuget'...
PUT http://192.168.10.21/nuget/
MSBuild auto-detection: using msbuild version '17.12.6.51805' from 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Using C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe as a credential provider plugin.
[CredentialProvider.143812]Running in plug-in mode
[CredentialProvider.143812]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin
[CredentialProvider.143812]Handling 'Request' 'Initialize'. Time elapsed in ms: 8 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"}
[CredentialProvider.143812]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 10
[CredentialProvider.143812]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 11
[CredentialProvider.143812]Handling 'Request' 'GetOperationClaims'. Time elapsed in ms: 2 - Payload: {}
[CredentialProvider.143812]Sending response: 'Request' 'GetOperationClaims'. Time elapsed in ms: 16
[CredentialProvider.143812]Time elapsed in milliseconds after sending response 'Request' 'GetOperationClaims': 44
[CredentialProvider.143812]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 7 - Payload: {"LogLevel":"Debug"}
[CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 9
[CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 15
[CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 6 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true}
[CredentialProvider]Creating a progress reporter with interval: 00:00:02
[CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True
[CredentialProvider]URI: http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]GET http://192.168.10.21/nuget
[CredentialProvider]Caught exception processing GetAuthenticationCredentials (RequestId: 3c44f0dd-0169-48c4-8881-4a39a45210bc)
[CredentialProvider]System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 192.168.10.21:80
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpClient.d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.AuthUtil.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.AuthUtil.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.VstsCredentialProvider.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGetCredentialProvider.RequestHandlers.GetAuthenticationCredentialsRequestHandler.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.RequestHandlers.RequestHandlerBase2.<HandleResponseAsync>d__12.MoveNext() Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request. at NuGet.Protocol.Plugins.OutboundRequestContext1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e) at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e) --- End of inner exception stack trace --- An error was encountered when fetching 'PUT http://192.168.10.21/nuget/'. The request will now be retried. A task was canceled. PUT http://192.168.10.21/nuget/ [CredentialProvider.143816]Running in plug-in mode [CredentialProvider.143816]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin [CredentialProvider.143816]Handling 'Request' 'Initialize'. Time elapsed in ms: 15 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"} [CredentialProvider.143816]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 18 [CredentialProvider.143816]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 21 [CredentialProvider.143816]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 4 - Payload: {"LogLevel":"Debug"} [CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 7 [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 21 [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 10 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true} [CredentialProvider]Creating a progress reporter with interval: 00:00:02 [CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True [CredentialProvider]URI: http://192.168.10.21/nuget [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set. [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget [CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set. [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget [CredentialProvider]GET http://192.168.10.21/nuget Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request. at NuGet.Protocol.Plugins.OutboundRequestContext1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e) at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e) --- End of inner exception stack trace --- An error was encountered when fetching 'PUT http://192.168.10.21/nuget/'. The request will now be retried. A task was canceled. PUT http://192.168.10.21/nuget/ [CredentialProvider.143822]Running in plug-in mode [CredentialProvider.143822]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin [CredentialProvider.143822]Handling 'Request' 'Initialize'. Time elapsed in ms: 18 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"} [CredentialProvider.143822]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 22 [CredentialProvider.143822]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 25 [CredentialProvider.143822]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 4 - Payload: {"LogLevel":"Debug"} [CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 7 [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 21 [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 11 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true} [CredentialProvider]Creating a progress reporter with interval: 00:00:02 [CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True [CredentialProvider]URI: http://192.168.10.21/nuget [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set. [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget [CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set. [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget [CredentialProvider]GET http://192.168.10.21/nuget Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request. at NuGet.Protocol.Plugins.OutboundRequestContext1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e)
--- End of inner exception stack trace ---

@dca00 dca00 added the Type:Bug label Jan 12, 2025
@erdembayar
Copy link
Contributor

See #10320 (comment)
Unfortunately, we couldn't offer you support on this package anymore, please check alternative options in above link.
Sorry about inconvenience.

@erdembayar erdembayar changed the title [Self-hosted Bug]: Basically nothing works at all [Self-hosted NuGet.Server package]: Basically nothing works at all Jan 14, 2025
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

2 participants