-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
On dogfooding, sometimes cannot open workspace, redirected to dashboard instead #22288
Comments
I had the same problem with workspaces created from GitHub repo. |
I am now seeing this problem for private and public GitHub repositories |
@dmytro-ndp do you remember if this happened when starting a workspace that has other workspace with a similar name? For example, did you have these workspaces:
and then did the problem happen when you tried to start |
After more investigation, I am convinced this is a routing issue When I experience this error, in the che-gateway log, I see logs such as:
The che-gateway is trying to access the wrong workspace service, in the log above, it tries to reach |
cc @ibuziuk @olexii4 @akurinnoy I would like to investigate a fix on the che-gateway side |
@dkwon17 :
yes, that was the case |
I faced the same issue. Also, I noticed 504 error in the browser console |
I have a PR for a fix here: eclipse-che/che-operator#1709 This issue seems to happen when I have two workspaces with a similar name. For example, it sometimes happens if I have two workspaces named like the following:
The reason why there is a redirection to the dashboard is because traefik is routing the user to a different workspace's workspace service. That's because in the Traefik config, the
In the config above, prefix Therefore, if the user starts and opens the As a result, the user would get a redirect to the dashboard because of errors middleware: eclipse-che/che-operator#1392 |
Describe the bug
Sometimes, when working on my private repository on the dogfooding cluster, the workspace enters the
RUNNING
state, however, the editor does not open, and instead I am being redirected to the dashboard:output.mp4
When accessing the editor, the user should be redirected to the dashboard only if the workspace mainUrl returns a 5XX error. Since workspace is in the
RUNNING
state, this means that the health check must have returned a 2xx or 4xx code, see [1].But for whatever reason, despite health check returning 2xx/4xx, it seems traefik receives a 5xx error when trying to access the mainUrl, therefore causing an unintended redirect to the dashboard.
[1] https://github.com/devfile/devworkspace-operator/blob/61bd5d1888bfa686b01b9b744a3bfcb955e38a8b/controllers/workspace/status.go#L211-L217
Che version
next (development version)
Steps to reproduce
Unfortunately I'm not able to reproduce this issue regularly. The GitHub repo I used to create the workspace with was a private repo
Expected behavior
After the workspace is in the
RUNNING
state, the user should be directed to the editor.Runtime
OpenShift
Screenshots
No response
Installation method
OperatorHub
Environment
macOS, other (please specify in additional context)
Eclipse Che Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: