Skip to content
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

opening a Che 7 workspace from factory fails due to cors #12788

Closed
gorkem opened this issue Feb 27, 2019 · 13 comments
Closed

opening a Che 7 workspace from factory fails due to cors #12788

gorkem opened this issue Feb 27, 2019 · 13 comments

Comments

@gorkem
Copy link
Contributor

gorkem commented Feb 27, 2019

Try creating a workspace with https://che.openshift.io/f?id=factorykfs97j9yp4c9wzwi
Although workspace is created successfully an error on the browser console can be seen and
the workspace is never opened

Failed to load resource: the server responded with a status of 503 (Service Unavailable)
loader.html:1 Access to XMLHttpRequest at 'https://routegvg4iz81-XXXXXXXX-che.8a09.starter-us-east-2.openshiftapps.com/jwt/auth' from origin 'https://che.openshift.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@PavelSosin
Copy link

I just made next step toward installation of Che 7 beta on top of my local kubernetes cluster. I created secret from company certificate pre-installed on my laptop by IT team when it was delivered to me. The next step, I suppose, will be ingress creation. Which type of ingress is suitable for Che7 in the personal evironment, see ((https://github.com/nginxinc/kubernetes-ingress/blob/master/docs/nginx-ingress-controllers.md))

@ibuziuk
Copy link
Member

ibuziuk commented Feb 28, 2019

@gorkem i believe it is related to long route exposure - openshiftio/openshift.io#4695

@skabashnyuk
Copy link
Contributor

@gorkem I was able to reproduce it in some cases

15 46 43
Agree with @ibuziuk more likely this is routes issue.
Because one request to jwt proxy finished with successful redirection but next request returned 500 http error.

@PavelSosin are you statement is related to this issue?

@ibuziuk
Copy link
Member

ibuziuk commented Feb 28, 2019

@skabashnyuk do you think there could be some workaround for this?
page refresh does not seem to help
image

@ibuziuk
Copy link
Member

ibuziuk commented Feb 28, 2019

funny thing that when I directly navigate to jwt-proxy route it keeps returning 503 even in a couple of minutes after workspace startup

@skabashnyuk
Copy link
Contributor

@skabashnyuk do you think there could be some workaround for this?

I don't think so.

@ibuziuk
Copy link
Member

ibuziuk commented Feb 28, 2019

I mean, is it expected that when all routes are exposed and accessible, page refresh would proceed with the redirect correctly?

@skabashnyuk
Copy link
Contributor

The issue is that the route becomes available and then gone. I think we can't guarantee in this case anything.

@ibuziuk
Copy link
Member

ibuziuk commented Feb 28, 2019

do you mean route flapping? AFAIK, on starter clusters there is only a problem related to the long route exposure (not route flapping)

@skabashnyuk
Copy link
Contributor

I reproduce it with route flapping.

  1. A successful request to JWT proxy with a redirect as a result.
  2. Next request JWT proxy - 503 service unavailable from OpenShift.

@nickboldt nickboldt added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 31, 2019
@nickboldt
Copy link
Contributor

This sounds like a problem we should fix in Che 7.1, if it's not already fixed in 7.0. If you agree please set a milestone and remove the triage label.

@skabashnyuk
Copy link
Contributor

Does anyone reproduce it since February?
@ibuziuk wdyt?

@ibuziuk
Copy link
Member

ibuziuk commented Aug 1, 2019

AFAIK, this is route flapping (not CORS) related issue,which should be closed since it is infrastructure specic. Currently, there is no route flapping on OSO clusters used by che.openshift.io

@benoitf benoitf removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants