Issue problem:
When I try to create a new project, I get the following message from https://che.openshift.io
""Press F5 or click here to try again.
Error: Failed to run the workspace: "Failure executing: POST at: https://f8osoproxy-test-dsaas-production.09b5.dsaas.openshiftapps.com/api/v1/namespaces/rhn-gps-brson-che/services. Message: Unauthorized! Configured service account doesn't have access. Service account may have been revoked.. The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password."
I tried to follow the step here:
https://github.com/redhat-developer/rh-che/blob/master/FAQ.adoc#how-do-i-figure-out-where-my-workspace-is-running
curl -sgSL "https://api.openshift.io/api/users?filter[username]=rhn-gps-brson"
and it gives: https://api.starter-us-east-1a.openshift.com/
Red Hat Che version:
version: (help/about menu)
Reproduction Steps:
Runtime:
runtime used:
minishift version)oc version)From looking at the logs on production, strangely this seems to be only impacting your namespace (at least, over the last 7 days).
I would suggest resetting your environment via https://github.com/redhat-developer/rh-che/blob/master/dev-guide.adoc#update-tenant, but that's not a user-friendly flow at the moment and may interfere with figuring out the underlying cause.
Looking at it a little more, for some reason your namespace rhn-gps-brson-che does not contain the secret used by Che, so a reset may be necessary after all.
@amisevsk Hello. Where do I obtain the Bearer token?
@bryantson The easiest way I know of is to grab it from a browser request when loading the dashboard:
As I said, not at all a user-friendly flow, but the previous path to doing this was deprecated and not replaced.
Thanks! It worked. I will try to make the pull request to make clear on how to get the token.
Created https://github.com/redhat-developer/rh-che/issues/1569 to track this as it seems others have had the problem.
Closing in favour of https://github.com/redhat-developer/rh-che/issues/1569