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: incorrect license violations and errors when recording them

    Scheduled Pinned Locked Moved Support
    6 Posts 3 Posters 25 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.
    • M Offline
      mike.vanoorschot_1180
      last edited by

      Hi,

      We are on 5.3.11 Free Edition, a single instance. We have multiple feeds to allow us to structure them as we wish and we have some connectors back onto this instance to aggregate feeds and make consuming them simpler. However, we are getting thousands of license violations recorded even though this is all on the same instance. We have no proxy servers involved but we do have more than one layer of connector/feed. For example:

      Feed A -> Connector B -> Feed C
      -> Feed D -> Connector E -> nuget.org

      Could this be causing it?
      Another thought: our feed and connector urls use the DNS name of the server and not the IP address. Could this make a difference?

      We also have errors logged when recording violations, which looks like a straight up bug to me?

      Unhandled exception recording license violation: Violation of UNIQUE KEY constraint 'UQ__ProGetLicensingViolations__Lookup_Hash'. Cannot insert duplicate key in object 'dbo.ProGetLicensingViolations'. The duplicate key value is (15, 0xa9e4198114110a2e3ee3ed859e66e9c91c469cca9bacfc55c952a2ae03e035b6). The statement has been terminated.

      Thanks in advance.

      Mike.

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi Mike,

        For the connector issue, can you try setting the Web.BaseUrl in your Advanced Settings to your DNS name? Please let me know if that works.

        For the errors logging the license violation, I'm going to need to dig in a little more on that. I'll let you know when I have more information.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 0
        • M Offline
          mike.vanoorschot_1180
          last edited by

          Hi Rich,

          Web.BaseUrl was already set to "http://crn-ppfs02/". Is that what you meant?

          Thanks,

          Mike.

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @mike-vanoorschot_1180,

            Yes, that is what I'm referring to. Just to confirm, that is the same URL that your connectors use?

            Thanks,
            Rich

            Products Engineer, Inedo

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mike.vanoorschot_1180 @rhessinger
              last edited by

              @rhessinger It is, yes.

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

                Hi @mike-vanoorschot_1180

                We check for local requests using HttpRequest.IsLocal, which basically just looks for 127.0.0.1. If it's not local, then a license violation is recorded.

                If the server doesn't resolve proget.xxxx.com as 127.0.0.1, then configuring BaseUrl will be a problem, especially with NuGet. The NuGet API requires absolute urls (issue #1), and many API responses are just URLS that the client (in this case, the connector) must follow to get the "real answer" (issue #2). So this will trigger license violations.

                If you need to specify a BaseUrl (you really shouldn't have to), then you'll need add a /etc/hosts entry for proget.xxxx.com 127.0.0.1

                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