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!

    Apply license key inside container

    Scheduled Pinned Locked Moved Support
    11 Posts 3 Posters 32 Views 1 Watching
    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.
    • stevedennisS Offline
      stevedennis inedo-engineer @jlarionov_2030
      last edited by

      Hi @jlarionov_2030 ,

      As of ProGet 2023 (or maybe earlier?), license keys are no longer requested / entered at installation time, but in the software itself now. This only matters on new instances.

      You can use pgutil settings to set a license key if you'd like.

      Thanks,
      Steve

      1 Reply Last reply Reply Quote 0
      • J Offline
        jlarionov_2030
        last edited by

        @stevedennis Trying to use pgutil settings list with a fresh ProGet container gives me the following error:

        [vagrant@localhost ~]$ pgutil settings list
        '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
        

        Here's my pgutil config:

        [vagrant@localhost ~]$ cat ~/pgutil/pgutil.config
        {
          "sources": [
            {
              "name": "Default",
              "url": "http://localhost:8624"
            }
          ]
        }
        

        However once I enter the license key via the web UI, the pgutil settings list command successfully lists all the instance settings.

        stevedennisS 1 Reply Last reply Reply Quote 0
        • stevedennisS Offline
          stevedennis inedo-engineer @jlarionov_2030
          last edited by

          Hi @jlarionov_2030,

          I haven't tested or tried it, but I can't help but wonder the API is responding with some kind of "license required" error, and blocking the seting.

          I suppose we could investigate and try to resolve the error, but automated setup with a license key isn't so common of a requirement.... if tis is not really something you will do that often, perhaps it's not worth the effort.

          Let us know your thoughts.

          Thanks,
          Steve

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jlarionov_2030 @stevedennis
            last edited by

            @stevedennis We run a lot of automated tests against ephemeral instances of ProGet in CI environments, so we need a programmatic way to apply a license key.

            atrippA 1 Reply Last reply Reply Quote 0
            • atrippA Offline
              atripp inedo-engineer @jlarionov_2030
              last edited by

              Hi @jlarionov_2030 , easy change! We will not require a valid license for Settings API Endpoint going forward; PG-3133 will ship in next maintenance release, scheduled for Friday.

              J 2 Replies Last reply Reply Quote 0
              • J Offline
                jlarionov_2030 @atripp
                last edited by

                @atripp That did the trick. I'm able to use pgutil now to set an API key and fully automate ProGet setup. Thank you!

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jlarionov_2030 @atripp
                  last edited by

                  @atripp This issue has resurfaced. I confirmed it was fixed in 2024.39 but it's failing in the same way again in 2025.18.

                  When calling pgutil apikeys create system I get the following error:

                  Downloading InedoHub.
                  Gathering package information...
                  Installing MSVC runtime...
                  Downloading ProGet-25.0.18.upack...
                  Installing ProGet...
                  ProGet 25.0.18 installed.
                  Downloading pgutil v2.2.4.4
                  Creating API key.
                  '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
                  
                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jlarionov_2030
                    last edited by

                    I have confirmed that the issue was reintroduced with version 2025.0 (it was last working in 2024.39).

                    atrippA 1 Reply Last reply Reply Quote 0
                    • atrippA Offline
                      atripp inedo-engineer @jlarionov_2030
                      last edited by

                      Hi @jlarionov_2030 ,

                      PG-3133 (which allowed pgutil settings to run without a license key) was applied to ProGet 2025.12 so I don't think it could have worked in ProGet 2024.39.

                      There were also no changes from ProGet 2025.12 to 2025.18 that would have caused this, and it works fine for me.

                      Are you sure you're running the pgutil settings command first to apply a license key?

                      Just based on the logs, it doesn't say...

                      Thanks,
                      Alana

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jlarionov_2030 @atripp
                        last edited by

                        @atripp I'm sorry, you're absolutely right. It does indeed work with version 2025.18. I simply forgot to apply the license key with pgutil before attempting to create the API key. Then I confused myself more when 2024.39 wasn't throwing the same error (because I was still setting the license with the --LicenseKey Inedo Hub option).

                        For anyone stumbling here in the future like me, here's what you need to do to apply the license key and create an API key with pgutil:

                        pgutil sources add --name=Default --url=http://localhost:8624
                        pgutil settings set --name=Licensing.Key --value=LICENSE-KEY-GOES-HERE
                        api_key=$(pgutil apikeys create system)
                        
                        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