Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Virtual Directories - HTTP 404 - Project Summary & Ingest Endpoints

Open FinnianDempsey opened this issue 2 years ago • 7 comments

Team

  • [X] I've assigned a team label to this issue

Severity

Blocking customers on latest version

Version

2022.3.10674

Latest Version

I could reproduce the problem in the latest build

What happened?

If Octopus Server has bindings configured to use a custom Virtual Directory such as /octopus, HTTP 404 errors are returned when navigating the Projects page. This is preventing users from creating new projects.

Reproduction

Configure Octopus Server to use a custom virtual directory binding e.g. https://<octopusUrl>/octopus Navigate to the Projects Page See 404

Error and Stacktrace

/bff/spaces/Spaces-1/projects/summaries:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/ingest Failed to load resource: the server responded with a status of 404 (Not Found)

More Information

Internal Link - Slack Internal Link - Zendesk Discourse

Workaround

Configure Octopus to not use a custom Virtual Directory and use / instead

FinnianDempsey avatar Oct 24 '22 01:10 FinnianDempsey

This is a major issue, as it also stopped any deployments from happening

CDSGlobalUK avatar Oct 24 '22 10:10 CDSGlobalUK

This occurs in 2022.3.10686 installed today.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://(server)/api/telemetry/process. (Reason: CORS request did not succeed). Status code: (null)

Uncaught (in promise) Error: a octopusError.ts:25 f ajax.ts:259 handleError ajax.ts:198 onreadystatechange ajax.ts:86

Unable to ingest messages: Error Object { ErrorMessage: "Error" }

GET /bff/spaces/Spaces-1/projects/summaries -> 404

GET on octopus/api/Spaces-1/projects/Projects-1/logo?cb=Projects-1 is returning status 500

bojake avatar Oct 24 '22 15:10 bojake

my workaround:

ADD another binding using the Octopus Manager that used the root binding (no virtual directory as indicated in the stated workaround).

This fixes the projects and tasks page. We have two bindings now, one for "/octopus" and the other on "/" (the root).

bojake avatar Oct 24 '22 16:10 bojake

FWIW - I tested a deployment and it appears to be working. I did not change any of our deploy agents. Just added the root binding and used existing deployment agent configurations and it appears to be working.

bojake avatar Oct 24 '22 16:10 bojake

The workaround does not work if you are using a reverse proxy

CDSGlobalUK avatar Oct 27 '22 09:10 CDSGlobalUK

Another report of this issue - https://octopus.zendesk.com/agent/tickets/99354

brentkinney avatar Nov 01 '22 22:11 brentkinney

This to have been fixed in the latest build 10723

CDSGlobalUK avatar Nov 07 '22 10:11 CDSGlobalUK

another instance of this [Internal Link]: https://octopus.zendesk.com/agent/tickets/106910

paraicoceallaigh avatar Feb 07 '23 03:02 paraicoceallaigh