We're trying to setup a test environment with proget container to see if it can replace our current nuget.server, so at the moment this is a free licence setup.
Policy here is to setup our containers with rootless users.
The main setup is working, even the kestrel wasn't trowing errors without the config as described here (we did however applied these settings afterwards to make sure this wasn't part of the problem described bellow)
We've tested several methods to see if everything works as expected, we have two feeds setup for powershell modules, one without a connector to psgallery and one with.
The following work flawless with both feeds find-module, publish-module, however when we try to install a package that hasn't been cached yet, there is an error thrown in powershell (notice the 404)
Install-Module -Name IvantiPS -Scope CurrentUser -Repository PSGalleryLocal -Force
PackageManagement\Install-Package : Package 'IvantiPS' failed to be installed because: Het einde van de record voor de
centrale map is niet gevonden.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (IvantiPS:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement
.Cmdlets.InstallPackage
In the logs of the container we then see the following happening
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery - 200 273 text/xml 2.7007ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/FindPackagesById()?id='FoooBarr' - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/FindPackagesById()?id='FoooBarr' - 200 504 application/atom+xml 213.2596ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/FindPackagesById()?id='IvantiPS'&$skip=0&$top=40 - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://nuget.qa.xxx.be/ - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://nuget.qa.xxx.be/ - 200 14205 text/html;+charset=UTF-8 3.0951ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/FindPackagesById()?id='IvantiPS'&$skip=0&$top=40 - 200 14137 application/atom+xml 182.2315ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/package/IvantiPS/0.1.8 - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://nuget.qa.xxx.be/nuget/PSGallery/package/IvantiPS/0.1.8 - 404 24 - 746.6243ms
When a package has been published to the same feed and then installed there is no issue, so it's like the copy/move from the psgallery-download is failing somewhere along the road. The same command to my own setup at home (without rootless setup) does work, so i think something is missing in the documentation to make caching work in a rootless setup, specific folders, permissions, config?
Hope someone can help us out!