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 Error when using upack push

    Scheduled Pinned Locked Moved Support
    packagesproget
    5 Posts 2 Posters 21 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 trying to push a universal package using upack, we're getting a 500 error from the client:

      Package: :helloworld
      Version: 1.0.0
      Unhandled exception: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
         at System.Net.HttpWebRequest.GetResponse()
         at ProGet.Client.Program.push(String package, String target, String user)
      

      The feed in the ProGet UI is indicating we should use the following command:
      upack.exe push http://proget.aws.cloud.apprenda.local/upack/packages

      The package that we're trying to use will work fine either through the web UI or through Invoke-WebRequest with PowerShell based on the documentation (http://inedo.com/support/documentation/proget/reference/universal-feed-api-and-package-format)

      Product: ProGet
      Version: 4.7.6

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

        If you can go to Admin > Errors, you should then be able to see the error message that is corresponding with the request. It may be an obvious message... but if not, please share it either here, or via a ticket, so that we can investigate further..

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

          Sure, here's the error message. This only happens when using upack, like I said, we can still upload via the web UI or Invoke-WebRequest to the API.

          System.NullReferenceException: Object reference not set to an instance of an object.
          at Inedo.ProGet.Extensions.Amazon.PackageStores.S3PackageStore.UploadStream.FinalFlush()
          at Inedo.ProGet.Extensions.Amazon.PackageStores.S3PackageStore.UploadStream.Dispose(Boolean disposing)
          at System.IO.Stream.Close()
          at Inedo.ProGet.Feeds.Universal.UniversalFeed.<InstallPackageInternalAsync>d__19.MoveNext()
          --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
          at Inedo.ProGet.WebApplication.SimpleHandlers.Universal.UniversalRepositoryHandler.<ProcessUploadRequestAsync>d__16.MoveNext()
          --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
          at Inedo.ProGet.WebApplication.SimpleHandlers.ApiHandlerBase.<ProcessRequestAsync>d__0.MoveNext()
          
          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            I see you're also using S3.

            So in this case, can you do the following:

            1. test by using a normal disk-based package store.
            2. submit the package as a ticket so we can investigate further, as well as whether it worked on normal package store
            1 Reply Last reply Reply Quote 0
            • benB Offline
              ben inedo-engineer
              last edited by

              I'm on ProGet Version 4.7.8 (Build 4) (locally hosted, not on EC2) and I'm able to upload universal packages to an S3-backed feed using the upack.exe tool with both the latest published release of the Amazon plugin and a debug build from source code.

              Can you still reproduce the error on the latest version of ProGet?

              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