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!

ProGet crash on startup



  • I am trying to run ProGet on a Linux 6.5.13 x86_64 VM and receive the following crash on startup:

    Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
       at Inedo.ProGet.SharedConfig.ProcessUrls(IEnumerable`1 urls)+MoveNext() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E561202\Src\ProGetCoreEx\Configuration\SharedConfig.cs:line 241
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Inedo.ProGet.SharedConfig.Initialize(Boolean reloadFile) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E561202\Src\ProGetCoreEx\Configuration\SharedConfig.cs:line 50
       at Inedo.ProGet.Service.Program.Main(String[] args) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E561202\Src\ProGet.Service\Program.cs:line 340
       at Inedo.ProGet.Service.Program.<Main>(String[] args)
    

    I use the following starting arguments:

    /usr/local/proget/service/ProGet.Service run --mode=both
    

    Tested with the last 2 major versions of ProGet (24.0.37, 24.0.x, and 23.x).

    I am using the filesystem provided by the official OCI image as the root filesystem of the Linux VM, i.e.:

    proget.inedo.com/productimages/inedo/proget:24.0.37
    

    This makes the base OS Debian-based (at least from an initial inspection of the OCI image).

    Any insight from the ProGet dev team would be greatly appreciated! Thank you!


    Log in to reply
     

  • inedo-engineer

    Hi @alex_6102 ,

    It sounds like you're trying to do a kind of "manual" or "custom" installation on Linux? That's the impression I got when you mentioned, "using the file system provided..."

    We don't support this kind of installation,; you should really just run the Docker image like this:

    docker run -d --name=proget --restart=unless-stopped \
      -v proget-packages:/var/proget/packages -p 80:80 --net=inedo \
      -e PROGET_SQL_CONNECTION_STRING='Data Source=inedo-sql; Initial Catalog=ProGet; User ID=sa; Password=«YourStrong!Passw0rd»' \
      proget.inedo.com/productimages/inedo/proget:latest
    

    As for the error... it seems that ProGet is failing to read the configuration file, which isn't used on a Linux installation. Instead, environment variables are used, since that's the Docker way.

    -- Dean



  • Your response gave me a hint -- i was just missing the relevant environmental variables from the OCI image. This is now resolved, thanks!


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation