Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Large Chocolatey package upload is failing

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 10 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      joshuagilman_1054
      last edited by joshuagilman_1054

      I have a Chocolatey package that's ~7GB in size and I can't get it to upload using the web UI or by using the choco binary. Looking at the network traffic, it seems to stop dead at ~2GB in size through the web interface, which I'm assuming must be a limit imposed somewhere. What's not clear is if that same limit is imposed on Chocolatey because the choco binary just waits indefinitely and never finishes uploading the package.

      I also tried using nuget.exe which eventually times out with:

      Response status code does not indicate success: 400 (There must be exactly one package.).

      This is rather confusing as I am only pushing a single .nupkg file.

      What settings do I need to adjust to support uploading larger Chocolatey packages?

      1 Reply Last reply Reply Quote 0
      • J Offline
        joshuagilman_1054
        last edited by

        I tried increasing the value in Web.cfg at this location:

        <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" maxRequestLength="1342177280" executionTimeout="86400" targetFramework="4.5" />
        

        I've bumped it to 10GB there, restarted the server, but found no difference. I see another setting here:

        <requestLimits maxAllowedContentLength="4294967295" maxQueryString="1048576" maxUrl="1048576" />
        

        But that's already set to 32 GB, so I don't think it's the culprit. I'm not using IIS and this appears to be the only web-related configuration I can find.

        atrippA 1 Reply Last reply Reply Quote 0
        • atrippA Offline
          atripp inedo-engineer @joshuagilman_1054
          last edited by

          @joshuagilman_1054 that's really large chocolatey file (nuget package), so you may want to rethink your approach. It'll cause some pain across the board, as you try to download and install that file as well. Instead, perhaps have your chocolatey package download an asset that you've stored in ProGet instead?

          In general, large files are tricky to publish over a single HTTP request reliably. This is across the board, even when uploading files to places like Amazon S3; those rely on a chunked uploading process... but the NuGet API doesn't support that.

          Otherwise, there's no limit imposed by ProGet itself, and you've found the settings that ASP.NET imposes. There could be some other limitation happening, but it's hard to say where; apparently it varies by operating system version, and it might even be middleware (like a proxy/firewall).

          The message "there must be exactly one package" is unexpected; I would instead expect 'request length exceed". In any case, that message just means that no valid files were attached to the request, which can happen if it was suddenly cut off.

          All told, when it comes to really large files (even asset directories), a Drop Path approach may be easiest to use.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation