Hi,
I configured a nuget feed for my internal Proget server (docker) and I keep getting a 500 Internal Server Error message. I tried to use an API Access key and user method, the end result is the same. Here is the log extract :
An error occurred processing a PUT request to http://myserverurl:11080/nuget/Test/: Unexpected end of Stream, the content may have already been read by another component.
System.IO.IOException: Unexpected end of Stream, the content may have already been read by another component.
at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.ReadAsync(Memory1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Memory
1 buffer, CancellationToken cancellationToken)
at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool1 bytePool, Nullable
1 limit, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Http.Features.FormFeature.InnerReadFormAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Http.Features.FormFeature.ReadForm()
at Inedo.Web.AhHttpFileCollection.get_Count()
at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.PutHandler.ProcessPutRequestAsync(AhHttpContext context, WebApiContext apiContext, RequestData urlData, NuGetFeed feed) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E576295\Src\src\ProGet\WebApplication\FeedEndpoints\NuGet\NuGetApi.PutHandler.cs:line 40
at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, NuGetFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E576295\Src\src\ProGet\WebApplication\FeedEndpoints\NuGet\NuGetApi.cs:line 27
at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, NuGetFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E576295\Src\src\ProGet\WebApplication\FeedEndpoints\NuGet\NuGetFeedHandler.cs:line 38
at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(AhHttpContext context) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E576295\Src\src\ProGet\WebApplication\FeedEndpoints\FeedEndpointHandler.cs:line 194
::Web Error on 07/24/2025 12:55:31::
Here is my configuration :
#PROGET
proget:
deploy:
placement:
constraints:
- node.hostname==PTR1-APPNODE-1
restart_policy:
condition: any
max_attempts: 20
delay: 240s
image: proget.inedo.com/productimages/inedo/proget:latest
environment:
- PUID=${PUID:-500}
- PGID=${PGID:-500}
- USER_UID=${PUID:-500}
- USER_GID=${PGID:-500}
- TZ=${TIMEZONE:-America/Toronto}
volumes:
- /mnt/PTR1-NAS-1/MAIN/proget:/var/proget/packages
- proget-database:/var/proget/database
- proget-backups:/var/proget/backups
ports:
- 11080:80
networks:
- dev-net
I have checked if it was perhaps a permission issue writing to the NAS by logging in the container and creating a file from there and all was fine.
Any ideas what I'm missing and how to fix this?
Thanks