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!

Unexpected Internal Error 500 when publishing to a new feed



  • Just testing Proget upload to a new Proget install from a local Jenkins instance.

    On Proget I have created a new Universal Package Feed, and configured a test project in Jenkins to push to this.

    The Proget Adminstration page shows an error:

    An error occurred processing a POST request to http://proget/upack/Test/upload: Value cannot be n...

    And the details show:

    Message:

    An error occurred processing a POST request to http://proget/upack/Test/upload: Value cannot be null. Parameter name: target

    Details:

    System.ArgumentNullException: Value cannot be null.
    Parameter name: target
    at Inedo.ProGet.Feeds.MultiHasher.<CopyAndComputeHashesAsync>d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.Feeds.MultiHasher.<CopyAndComputeHashAsync>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.Feeds.Universal.UniversalFeed.<InstallPackageInternalAsync>d__23.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.FeedEndpoints.Universal.UniversalRepositoryHandler.<ProcessUploadRequestAsync>d__18.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.<ProcessRequestAsync>d__8.MoveNext()`
    

    Product: ProGet
    Version: 5.1.2



  • ... and the Jenkins "ProGet Package Upload" settings are:

    • Feed name: Test
    • Group name: demo
    • Package name: HelloWorld
    • Version: 1.1.4
    • Files to Package: bin/Release/HelloWorld.exe

    I've also checked the .unpack file created on the client - and this looks correct. So I guess the cause is something on the server (ProGet)?

    Cheers,
    Dwight


  • inedo-engineer

    Hello Dwight,

    This should be logging an error message, but it's not. I've filed PG-1311 to fix the lack of a useful error. I've attached a modified build of ProGetCoreEx.dll to PG-1311.

    If you replace ProGetCoreEx.dll and try this again, is there a warning message starting with Unable to open file in /administration/logs?



  • Thanks for the DLL to try.

    I have stopped the service, copied on the new DLL and restarted the service.

    After making the change the issue remains unchanged. I still get the same message in the Administration Overview > Diagnostic Center > View Error Message.



  • And the Jenkins console output says:

    14:59:14 [ProGet] Packaging Artifacts
    14:59:14 [ProGet] Sending POST as user 'ITL_Build' to http://proget/upack/Test/upload
    14:59:14 [ProGet] With application/zip content:
    14:59:14 	... Content of file C:\Work\Demo\Hello World\HelloWorld.unpack ...
    14:59:14 
    
    14:59:54 FATAL: Server returned HTTP response code 500: Internal Server Error
    14:59:54 Response Content: Value cannot be null.
    14:59:54 Parameter name: target
    14:59:54 com.inedo.http.HttpResponseException: Server returned HTTP response code 500: Internal Server Error
    14:59:54 Response Content: Value cannot be null.
    14:59:54 Parameter name: target
    14:59:54 	at com.inedo.http.HttpEasyReader.<init>(HttpEasyReader.java:51)
    14:59:54 	at com.inedo.http.HttpEasy.post(HttpEasy.java:555)
    14:59:54 	at com.inedo.proget.api.ProGetApi.uploadPackage(ProGetApi.java:167)
    14:59:54 	at com.inedo.proget.jenkins.UploadPackageBuilder$PutPackage.call(UploadPackageBuilder.java:237)
    14:59:54 	at com.inedo.proget.jenkins.UploadPackageBuilder$PutPackage.call(UploadPackageBuilder.java:191)
    14:59:54 	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
    14:59:54 	at com.inedo.proget.jenkins.UploadPackageBuilder.perform(UploadPackageBuilder.java:180)
    14:59:54 	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
    14:59:54 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    14:59:54 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
    14:59:54 	at hudson.model.Build$BuildExecution.build(Build.java:206)
    14:59:54 	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
    14:59:54 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
    14:59:54 	at hudson.model.Run.execute(Run.java:1794)
    14:59:54 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    14:59:54 	at hudson.model.ResourceController.execute(ResourceController.java:97)
    14:59:54 	at hudson.model.Executor.run(Executor.java:429)
    14:59:54 Finished: FAILURE
    

  • inedo-engineer

    This will be fixed with PG-1313



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation