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!

    Unable to GET from connector "nuget.org"; using cached copy.

    Scheduled Pinned Locked Moved Support
    10 Posts 3 Posters 40 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.
    • P Offline
      parthu.reddy
      last edited by

      72a31e19-632b-4e05-a7b1-b6e1a2781557-image.png d9724526-1c66-40aa-b8cd-2d5f0d805164-image.png

      Hi Team

      Recently we got too many of these warnings. Can we know when this occurs.

      Thanks
      Parthu

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

        Hi @parthu-reddy,

        This basically means that ProGet was unable to communicate with nuget.org for one reason or another. More specifically... ProGet didn't receive a timely response.

        Usually it's a temporary outage or network issue, and will hopefully go away and not cause any issues.

        Thanks,
        Steve

        1 Reply Last reply Reply Quote 0
        • P Offline
          parthu.reddy
          last edited by parthu.reddy

          Hi Steve

          Thanks for the info. A question, normally proget fetches from connector if a package is not available locally right. In this case is it trying to download new package and has timeout or some network issue? If that's the case what can it fetch from cached copy?

          Is it possible to know what it's requesting for.

          Thanks
          Parthu

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

            Hi @parthu-reddy,

            If you (the NuGet client) requests the NewtonSoft.Json-13.0.0 package, and ProGet already has that package cached , then ProGet will return the package without ever contacting NuGet.org.

            However, the NuGet client will also request a list "all versions of NewtonSoft.Json when doing a package restore. I don't know why, that's just what it does.

            In this case, ProGet will contact the connector (NuGet.org) and aggregate the remote/local results. If the connector is unreachable (as in the case above), ProGet will log a warning and instead return a list of "all (cached) versions of NewtonSoft.Json`... which will be probably all that's needed.

            This is likely why no one has complained/noticed and jobs aren't failing.

            Thanks,
            Steve

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              parthu.reddy @stevedennis
              last edited by

              Hi @stevedennis

              Just need some more info. What is the configured time for timeout. Are you maintaining any connection pool for number of connections to nuget.

              Thanks
              Parthu

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

                Hi @parthu-reddy ,

                The default Timeout is 10 seconds, but you can configure it on each connector.

                There is no "connection pool" for NuGet -- these are just normal HTTP connections like your browser or any other web api.

                Thanks,
                Steve

                P 2 Replies Last reply Reply Quote 0
                • P Offline
                  parthu.reddy @stevedennis
                  last edited by parthu.reddy

                  Hi @stevedennis

                  Thanks for the info.

                  5a26f394-05a9-401d-b81a-fa5f74a77d72-image.png
                  Another question, where is this metadata-caching stored? On the proget server or in DB?

                  Why I'm asking is, if we add new server to cluster, does this cause increase in requests to nuget.org if the caching is done on server locally?

                  Does this metadata caching feature reduce the queries to fetch versions that you mentioned?
                  6d83f1cf-db1d-4232-9d00-f79ba97d1fea-image.png

                  And can I get links to this caching. Does this

                  Thanks
                  Parthu

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

                    Hi @parthu-reddy ,

                    These are stored in the database and if you click "status" you can see the cached queries.

                    Does this metadata caching feature reduce the queries to fetch versions that you mentioned?

                    Yes, instead of going to NuGet.org, the database will be queried.

                    HOWEVER, this may actually reduce performance; NuGet.org is a static file system running on Azure Blob storage, and it might be quicker to download the query from Azure than to query your SQL Database.

                    You'd really need to expirement and see which is faster / more load.

                    Thanks,
                    Alana

                    1 Reply Last reply Reply Quote 1
                    • P Offline
                      parthu.reddy @stevedennis
                      last edited by

                      Hi @stevedennis / @atripp

                      We're getting lot of these errors after removing the cache configuration a997b106-514d-4608-a0f4-60b3bf2c9ddf-image.png

                      Why are we getting connection pool error when there's no connection pool?
                      e327e593-e522-4946-92e2-330a0abab635-image.png

                      Thanks
                      Parthu

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

                        Hi @parthu-reddy ,

                        This looks more related to Server Overload / Database than anything to me. Note how all the requests are coming in at exact same second. Can you throttle your load balancer a bit, so they don't all hit at the same time? Even a slight delay will help.

                        FYI - we are tracking a recent regression to SQL Server analysis engine (???) that is causing one particular query (NuGet_GetPackage) to go incredibly slow under extreme traffic. For some reason, it's using the wrong plan suddly. It's been happening to a few users after a recent upgrade/patch to SQL Server. We have a work-around but would like to test it in the field against a user.

                        Thanks,
                        Alana

                        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