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!

    ProGet crash on startup

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 13 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.
    • A Offline
      alex_6102
      last edited by alex_6102

      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!

      dean-houstonD 1 Reply Last reply Reply Quote 0
      • dean-houstonD Offline
        dean-houston inedo-engineer @alex_6102
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • A Offline
          alex_6102
          last edited by alex_6102

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

          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