Nuget Push: The socket has been shut down.
Hi,
on Mac OSX.
I am trying to push some nupkg files to the Team City Nuget server as a final part of my build step, but I am getting the following -
Step 2/2: Publish biid Packages (NuGet Publish) (1s)
[12:05:55][Step 2/2] push: Publish package biid.sdk.core.xamarin.3.2.55.nupkg (1s)
[12:05:55][push] Starting: /Library/Frameworks/Mono.framework/Versions/5.16.1/bin/mono /Users/matthewwaring/Downloads/TeamCity/buildAgent/tools/NuGet.CommandLine.5.0.0/tools/NuGet.exe push /Users/matthewwaring/Downloads/TeamCity/buildAgent/work/2b35ac7e0452d98f/myname.nupkg ******* -Source http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v3/index.json
[12:05:55][push] in directory: /Users/matthewwaring/Downloads/TeamCity/buildAgent/work/2b35ac7e0452d98f
[12:05:55][push] Pushing myname.nupkg to 'http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2'...
[12:05:55][push] PUT http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2/
[12:05:56][push] An error was encountered when fetching 'PUT http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2/'. The request will now be retried.
[12:05:56][push] An error occurred while sending the request
[12:05:56][push] Unable to write data to the transport connection: The socket has been shut down.
[12:05:56][push] The socket has been shut down
[12:05:56][push] PUT http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2/
[12:05:56][push] An error was encountered when fetching 'PUT http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2/'. The request will now be retried.
[12:05:56][push] An error occurred while sending the request
[12:05:56][push] Unable to write data to the transport connection: The socket has been shut down.
[12:05:56][push] The socket has been shut down
[12:05:56][push] PUT http://localhost:8111/httpAuth/app/nuget/feed/NugetServer/biid_Nuget_Feed/v2/
[12:05:56][push] An error occurred while sending the request
[12:05:56][push] Unable to write data to the transport connection: The socket has been shut down.
[12:05:56][push] The socket has been shut down
[12:05:56][push] Process exited with code 1
[12:05:56][push] Process exited with code 1 (Step: Publish biid Packages (NuGet Publish))
[12:05:56][Step 2/2] Step Publish biid Packages (NuGet Publish) failed
Anyone any ideas whats going on, if I run nuget push from the command line on my Mac OX, I get a similar error (I have tried creating a project specific nuget feed and same thing).
Thanks
Please sign in to leave a comment.
Hi Matthew,
This is quite strange, "The socket has been shut down" seems to indicate that the connection is being closed, so we might need to check the server logs to know what is going on. Also of course make sure that there is no firewall blocking the data. Please collect the teamcity-server.log and teamcity-nuget.log files in a timeframe where this error explicitly happened (or try it again and collect the current files) and send them to us via the "Submit a request" button on top of this page.
Hi Denis,
Thanks for reply.
Had to move on from this and use a docker based LiGet server instead, but I will revisit as soon as possible and post the trace, see if we can see what was going on.
Best
Matt