-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
octo push doesn't work and return exit code -7 for URL https://my-hosted-octopus/octopus/api #245
Comments
Hi @gitsidgo, in your example you have "my-hosted-octopus", is that an Octopus cloud instance you're referring to there? If so, removing |
@slewis74 Thanks for replying. It is not a managed Octopus. We've self hosted it on our infrastructure. The Is there a way that octo push cli could append |
Thanks, that's great context. We're working on trying to get an accurate reproduction set up. Our working theory, based on what you've described, is that you have a reverse proxy and when it sends the client's initial requests through to Octopus they don't have the Could we check a couple of things? Is that assumption correct, i.e. is there a reverse proxy between the browser and Octopus? If so, could we check what Octopus' ListenPrefixes look like? We're assuming the browser would see requests as If that's the case it would explain what you're seeing with the CLI. The first call it makes is to the This would explain the behaviour of the CLI, but what's curious is that the Octopus portal works on the same mechanics. Is it working ok? Is it accessed through the same reverse proxy? |
@slewis74 Our octopus portal(UI) is running behind a VPN and to access the portal, we have to be on a VPN. The portal is not accessed using the same reverse proxy as suggested above. The portal works fine as there is no On the contrary while we use the CLI, we try to hit octopus on a different URL which is publicly accessible. But the portal is not exposed on the public URL. The screenshot that I've shared above is of this public URL and not the private URL on which the portal is exposed.
|
Ok, given that I think we understand why it's happening, it does relate to the calls going between the proxy and the Octopus API. Those calls get made without the Would it be possible to add an additional What we think should work is that if you add a 2nd listen prefix to Octopus that includes the The Octopus UI would be accessible with or without the |
Have been trying to push a package using
octo push
for URL https://my-hosted-octopus/octopus/api.But it fails with the following logs
As you can see, the URL stripped off the context path
/octopus
in the last DispatchRequest.We further tried with the plain curl command :
It works fine with the curl command but fails with the octo cli push command.
The text was updated successfully, but these errors were encountered: