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!

    Unexpected Internal Error 500 when publishing to a new feed

    Scheduled Pinned Locked Moved Support
    progetjenkinspublishing
    6 Posts 3 Posters 16 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.
    • D Offline
      dwight.holman_5467
      last edited by

      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

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

        ... 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

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

          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?

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

            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.

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

              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
              
              1 Reply Last reply Reply Quote 0
              • atrippA Offline
                atripp inedo-engineer
                last edited by

                This will be fixed with PG-1313

                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