Getting Error when pushing to octopus nuget server

Hi Team,

I use TeamCity as my CI server, pushing nuget packages to the octopus nuget feed via nuget.exe.
Normally this works very well, but one of my newer packages is about 420 MB size.
When trying to push that package nuget returns:

Failed to process request. ‘Request Entity Too Large’.
The remote server returned an error: (413) Request Entity Too Large…

I’ll tried increasing timer from the command line like so -Timeout 601, but that does not make any difference.
Also the error appears after some seconds so i do not think it’s a timeout issue.

So, all in all, i have no idea what’s going wrong, please help me out :wink:

Best Regards
Robert Schadt

It’s even bigger ~550 MB

Hi Robert,

Thanks for getting in touch!

Could you please let me know what version of Octopus you are running, and could you show me the full NuGet command that is executed when you push the package?

Thanks,
Henrik

Hi Hendrik,

full output:

C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT\tools>NuGet.exe push C:\TeamCity\buildAgent\work\587623dcbe10cf06\packages\MyAppSetupNugetPackage.14.1.19.nupkg API-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Source http://octopus.objektinstanz.de

Pushing MyAppSetupNugetPackage 14.1.19 to ‘http://octopus.objektinstanz.de’…

Failed to process request. ‘Request Entity Too Large’.
The remote server returned an error: (413) Request Entity Too Large…

Octopus Version is 3.1.5

Henrik not Hendrik, my bad… Is there a edit comment function available for the forum?

Hi Robert,

It looks like you’ve specified a slightly incomplete URL for the -source argument to NuGet, it should end with /nuget/packages (you can find the full URL to use under Library->Packages, e.g. URL to push packages to our demo site is https://demo.octopus.com/nuget/packages). Could you try and update the URL TeamCity use and see if that succeeds?

I hope that helps.

Thank you and best regards,
Henrik

Hi Henrik,

this makes no difference.
I’ve already tried adding nuget/packages before even contacting you.

Best Regards
Robert

//-------------------------------------------------------------------------
Objektinstanz UG (haftungsbeschränkt)
Alte Dorfstraße 24B
70599 Stuttgart
Telefon: +49 711 219 59 48 0
Fax: +49 711 219 59 48 9
//-------------------------------------------------------------------------
Sitz der Gesellschaft: Stuttgart
Handelsregister: Amtsgericht Stuttgart, HRB 750432
Geschäftsführung: Robert Schadt

2016-10-24 0:11 GMT+02:00 Henrik Andersson <tender2+de606c44ad@tenderapp.com

:

Hi Robert,

Are you running your Octopus behind CloudFlare? CloudFlare impose a max file size on uploads to websites running behind their service, so this could be the reason why you are getting the 413 Request Entity too large error.

Thanks,
Henrik

Hi Henrik,

sorry for taking your time. I was in the progress of writing you an email,
telling you that the problem is solved.

I have changed the url to localhost, as both teamcity and octopus are on
the same server. That worked.
And yes, your guess with cloudflare was correct, i only found out about the
limit an hour ago
(and only because localhost worked, and i started to dig deeper into the
issue. Never thought on that one… ;))

So, thank you very much for your support, you have a really high level of
service quality!

Best Regards
Robert Schadt

//-------------------------------------------------------------------------
Objektinstanz UG (haftungsbeschränkt)
Alte Dorfstraße 24B
70599 Stuttgart
Telefon: +49 711 219 59 48 0
Fax: +49 711 219 59 48 9
//-------------------------------------------------------------------------
Sitz der Gesellschaft: Stuttgart
Handelsregister: Amtsgericht Stuttgart, HRB 750432
Geschäftsführung: Robert Schadt

2016-10-25 8:27 GMT+02:00 Henrik Andersson <tender2+de606c44ad@tenderapp.com

:

Hi Robert,

Great to hear you figured it out.

Happy deployments!

Thank you and best regards,
Henrik