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!

Stream was too long when editing Universal Package description.



  • Hello Everyone, first of all thank you for your help.

    I am running a self hosted instance of ProGet on a Docker container over a Ubuntu machine. It works really well since it's a relatively small instance but I ran into a problem.

    I mainly use Universal Package feeds to manage my artifacts but when editing the description of some of them I get the following error:

    An error occurred in the web application: Stream was too long.
    
    URL: http://10.1.0.186/universal-packages/edit-package?feedId=20&pUrl=pkg%3Aupack%2FFeederlink_FW%402.4.0
    Referrer: http://10.1.0.186/universal-packages/edit-package?feedId=20&pUrl=pkg%3Aupack%2FFeederlink_FW%402.4.0
    User: (unknown)
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
    Stack trace:    at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
       at Inedo.ProGet.WebApplication.Pages.Universal.Packages.EditUniversalPackagePage.<>c__DisplayClass12_0.<<CreateChildControlsAsync>b__1>d.MoveNext() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E550814\Src\ProGet.WebApplication\Pages\Universal\Packages\EditUniversalPackagePage.cs:line 189
    --- End of stack trace from previous location ---
       at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync()
       at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context)
       at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
    
    ::Web Error on 04/30/2025 09:36:10::
    

    They are pretty hefty files, this particular package is 2,520 MB. I can edit the description of smaller files without a problem, so I think it has something to do with the size of the file.

    Is there any way I can fix this? Maybe the Host machine isn't powerfull enough? (It has a 4 thread CPU with 8 GB of RAM). Or is it a problem in a config parameter in the aplication itself?

    Thanks in advance guys. Have a nice day :)



  • inedo-engineer

    Hi @daniel-pardo_5658 ,

    The UI-based package editor is intended for small packages, up to 50 MB or so. It looks like there is a platform-enforced limit of 2GB. For now, you will need to download, edit, re-upload.

    That said, I switched the stream that we're using to something that can accommodate larger packages, but I did not test it so I really don't know if it will actually work on these packages. It'll be in the upcoming maintenance release via PG-2964

    -- Dean



  • @dean-houston I see... Ok, thank you very much for your support.



  • @dean-houston I just upgraded to the latest version and it worked perfectly now. I can update packages of more than 2 GBs without any problems.

    Thanks you so much!



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation