Issue while Pushing Package from Azure Devops

(Sitaram Pal) #1

Hi -
Octopus Server version is 3.17.14

Error Message while Queueing build in Azure Devops and using octo cmd for pushing package to octopus server

automation environment: “AzureDevOps”
Process will run in backwards compatible mode for older versions of Octopus Server
Handshaking with Octopus Server: https://ServerURL/
Handshake successful. Octopus version: 3.17.14; API version: 3.0.0
Authenticated as: administrator user@server.com
Pushing package: D:\a\1\a\Proj.nupkg…
Server does not support delta compression for package push
Falling back to pushing the complete package to the server

System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.Http.WinHttpException: The server returned an invalid or unrecognized response
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.Tasks.RendezvousAwaitable1.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at System.Net.Http.HttpClient.d__58.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 Octopus.Client.OctopusAsyncClient.d__561.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 Octopus.Client.OctopusAsyncClient.<Post>d__462.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 Octopus.Client.Repositories.Async.BuiltInPackageRepositoryRepository.d__6.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 Octopus.Cli.Commands.Package.PushCommand.d__18.MoveNext() in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\Package\PushCommand.cs:line 72
— 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 Octopus.Cli.Commands.ApiCommand.d__37.MoveNext() in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\ApiCommand.cs:line 237
— 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 Octopus.Cli.Commands.ApiCommand.d__35.MoveNext() in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\ApiCommand.cs:line 226
— 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 Octopus.Cli.CliProgram.Run(String[] args) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\CliProgram.cs:line 52
Exit code: -3
##[error]Error: The process ‘C:\hostedtoolcache\windows\Octo\6.12.0\x64\Octo.cmd’ failed with exit code 4294967293

##[error]Failed to push package. The process ‘C:\hostedtoolcache\windows\Octo\6.12.0\x64\Octo.cmd’ failed with exit code 4294967293

(Daniel Fischer) #3

Hi Sitaram,

Thanks for getting in touch! I’ll need to get some more details to get a better idea of what could be going wrong here. I can see you are using the latest version of Octo.exe (6.12.0).

Have you recently upgraded your Octo.exe version? If so, was this working on a previous version of Octo.exe?

If this was working on a previous version, you may be able to roll back your Octo.exe version to get this working for an immediate workaround.

Outside of that, I can see that there is a successful handshake with the Octopus server before failing during the package transfer. The most common cause we see for this is when there is a proxy in the way causing trouble.

Would you be able to double check that the proxy is not getting in the way here?

If this is a proxy issue, it is possible that you need to configure octo.exe proxy settings(towards the bottom) for the package push step in the Additional Arguments box.

Further troubleshooting you can do here would be to use a network monitoring tool such as wireshark on your Octopus server during the push to see what is going on. From the looks of it, the connecting is establishing correctly, but the package data when reaching the Octopus server is not correct.

If you could confirm the above, it may point us in the right direction of what is going wrong here.

Looking forward to hearing from you and getting to the bottom of this.

Best regards,