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
-
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
-
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..
-
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()
-
I see you're also using S3.
So in this case, can you do the following:
- test by using a normal disk-based package store.
- submit the package as a ticket so we can investigate further, as well as whether it worked on normal package store
-
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?