I am trying to programmatically push a package to my Octopus server, and unfortunately running into issues. I’ve got OctopusCLI version 4.12 installed, and am running the below command from the folder which contains my product.zip:
/var/lib/jenkins/OctopusCLI/Octo push --package=product.zip --replace-existing --server https://octopus.ABC.co.uk/ --apikey XYZ
The error is as follows:
(Exception from HRESULT: 0x8007007E)
at Interop.HttpInitializer.EnsureCurlIsInitialized()
at Interop.HttpInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.HttpInitializer.Initialize()
at Interop.Http..cctor()
--- End of inner exception stack trace ---
at Interop.Http.GetSupportedFeatures()
at System.Net.Http.CurlHandler..cctor()
--- End of inner exception stack trace ---
at System.Net.Http.CurlHandler..ctor()
at Octopus.Client.OctopusAsyncClient..ctor(OctopusServerEndpoint serverEndpoint, OctopusClientOptions options, Boolean addCertificateCallback)
at Octopus.Client.OctopusAsyncClient.<Create>d__9.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 Octopus.Client.OctopusAsyncClient.<Create>d__8.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 Octopus.Cli.Commands.ApiCommand.<Execute>d__32.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 Octopus.Cli.Program.Run(String[] args)```
Unfortunately, this DLL does infact exist as a shared object:
```root@devjenkins0:/var/lib/jenkins/OctopusCLI# ls -la | grep Http
-rwxrwxrwx 1 root root 287576 Nov 4 18:56 System.Net.Http.dll
-rwxrwxrwx 1 root root 12608 Nov 4 18:22 System.Net.Http.Native.so```
Any ideas?