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!

    Internal Server 500 when attempting to download the package (ProGet doesn't seem to resolve the package location correctly)

    Scheduled Pinned Locked Moved Support
    errorproget
    7 Posts 1 Posters 101 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      When attempting to download a package, either from Visual Studio, NuGet.exe, or directly from the ProGet web interface, I am receiving a 500 Internal Server Error.

      When clicking on the "download" button in the web interface (or using VS/nuget.exe) I noticed that the URL proget is sending the request to is:

      http://<ProGet URL>/nuget/<Feed Name>/package/<Package>

      This responds with a 500 error code.

      When visiting the API Endpoint, everything looks healthy

      http://<ProGet URL>/nuget/<Feed Name>/

      <service xmlns="http://www.w3.org/2007/app">
      <workspace>
      <title xmlns="http://www.w3.org/2005/Atom">Default</title>
      <collection href="Packages">
      <title xmlns="http://www.w3.org/2005/Atom">Packages</title>
      </collection>
      </workspace>
      </service>
      

      Note the collection tag is labeled "Packages" and not "Package".

      I can visit the following URL and be presented with the XML listing all of the packages in the feed.
      http://<ProGet URL>/nuget/<Feed Name>/Packages

      But recall that the URL on the download button, as well as the URL Visual Studio and NuGet.exe are asking for is

      http://<ProGet URL>/nuget/<Feed Name>/package/<Package>

      Upon looking at the headers while executing nuget.exe I noticed that it was indeed finding the package using the ProGet API:

      /nuget/<Feed Name>/Packages(Id='Package',Version='0.1.0')

      However the next request (to actually get the .nupkg) is

      /nuget/Mission-Application/package/<Package>/<Version>

      My guess is I have something configured incorrectly, but I've combed through every setting available.

      I'm running ProGet 4.8.4 on Windows Server 2012 using an external SQL DB and Integrated Web Server.

      Product: ProGet
      Version: 4.8.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        The API can be a bit weird, but all looks fine to me.

        The 500 error will be logged in Admin > Error Logs; with that information, we might be able to identify the error.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Alana,

          Thanks for the response! Unfortunately no error is being logged in the recent errors. I switched from using IIS to Integrated Web Server and now instead of a 500 error I get "Cannot find the package in the package store."

          I will dig around in the Windows Event Viewer and see if I can find anything.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            After playing around I have noticed that when switching to internal storage, packages may be downloaded without error. Our desire is to keep things backed up on S3, however when I use S3 as the backing store, proget produces the error.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              When you change a package store, the packages contained within the old store are not removed; so, this error is expected.

              You can create a new feed, then migrate packages from one feed to another.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                I have created a new feed configured to use S3 as the backing store, pushed packages to it, and still receive the 500 error.

                Upon inspection, for this new feed has a disk path "C:\ProgramData\ProGet\Packages.nugetv2\F4" and the folder does F4 does not exist (as expected).

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  In this case, it sounds like the permissions for AWS must not be correct...the user must have full control/read/write access to bucket you specify.

                  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