We’re getting the following error when trying to push a > 30MB Nuget package from Jenkins to the internal Octopus repository:
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
For some reason, the package will push from my own machine with no errors (and quite quickly), but just refuses to work from Jenkins. (there are no errors at all in the Octopus server log)
Thanks for getting in touch! Are you able to provide the full command and logs that you run from Jenkins?
Are you using exactly the same command from within Jenkins as you are locally?
Hopefully this will give us a clue of where to start looking.
Vanessa
(The key is hidden here, but is valid, and is the same as I’m using when running exactly the same command locally).
Which logs do you want from Jenkins? Just the console output for this particular command?
See attached: note that the first time we run the command after waiting a while, we are getting a 503 error when trying to push the large file (the smaller ones work fine). It’s after then that we start getting that original error.
I also tried splitting up the pushes of the 3 packages into 3 separate commands in Jenkins, attempting to push the biggest package first, followed by the 2 smaller ones. The results are even more bizarre (see attached).
Yes, we had looked at that thread before. Stupid question though - where is the Nuget server’s web.config located? We don’t have anything at all in IIS on our Octopus server…
Can you ad -verbosity detailed to the end of your Nuget.exe push command line and see if we get any form of better detail on the error?
We are a bit out of ideas here, sorry.
Hi folks - apologies for the delay in responding (due to my account vanishing ).
It looks like this one was caused by an old (ish) version of nugget.exe on our Jenkins server. Replacing it with the latest version resolved the issue.