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

[Hosted Che] Unauthorized! Configured service account doesn't have access. #12366

Closed
TheZoker opened this issue Jan 9, 2019 · 31 comments
Closed
Assignees
Labels
area/hosted-che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.

Comments

@TheZoker
Copy link

TheZoker commented Jan 9, 2019

I tried to run theia within che following these instructions:
https://docs.google.com/document/d/1hFXTwzIU3MnqcciXH9E7xyUtEJRUeUuJ-e0JlEhTKjo/mobilebasic

After doing everything exactly what the docs say, the "Loading" dialog takes forever. After waiting a long time, I tried to start the workspace again. But I get the following issue:

screenshot_2019 01 09_15h28m07s_009_

Here copy'n'paste:

Failure executing: GET at: https://f8osoproxy-test-dsaas-production.09b5.dsaas.openshiftapps.com/api/v1/namespaces/zoker2-che/persistentvolumeclaims. 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 also tried to install the theia stack with the same result.

Does anyone know what went wrong here? I did not change any parameter or anything else...

@mohschmid
Copy link

Same issue for me!

@slemeur slemeur added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 10, 2019
@slemeur
Copy link
Contributor

slemeur commented Jan 10, 2019

Thanks @mohschmid and @TheZoker for reporting the issue.

@ibuziuk @benoitf @l0rd : Could you give a look?

@hellanemrri
Copy link

Same issue for me..???????

@bryantson
Copy link

Same issue as well. Any update?

@sleshchenko
Copy link
Member

@bryantson Could you provide information about how did you deploy your Che? Chectl, operator, helm....? What were the arguments?

@bryantson
Copy link

@sleshchenko The issue was encountered when I used https://che.openshift.io. I also did encountered the issue when I ran minishift previously.

@amisevsk
Copy link
Contributor

This is a che.openshift.io specific issue and seems to be related to how user accounts are provisioned there.

I've created issue redhat-developer/rh-che#1569 to track this, as it's not a Che-specific issue.

@davidwindell
Copy link
Contributor

I also have this issue on Rancher so I don't think it's platform specific

@puneethpk
Copy link

Even i have the same issue..any fixes for this? or is it still open?

@l0rd
Copy link
Contributor

l0rd commented Oct 7, 2019

@puneethpk I beleive the original issue on che.openshift.io has been fixed. I am not able to reproduce it neither locally nor on an hosted instance of Che. Can you please provide some details that would help us reproduce it?

@amisevsk
Copy link
Contributor

amisevsk commented Oct 7, 2019

@davidwindell @puneethpk Could you share details about your Che installations? The referenced error message is pretty specific to our production deployment.

As a test, the output of kubectl describe serviceaccount che or similar would be helpfu (in addition to the usual version/deploy method/cluster info).

@davidwindell
Copy link
Contributor

I'm no longer able to reproduce it, can't recall when it was fixed but it might be when I started applying cheWorkspacesNamespace to my helm values.

@puneethpk
Copy link

I have deployed it using yaml files in kubernetes cluster deployed in aws. This is the error log i get when i try to create a workspace.Che service account has all the access.
The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password

@hari1992-web
Copy link

I have deployed it using yaml files in kubernetes cluster deployed in aws. This is the error log i get when i try to create a workspace.Che service account has all the access.
The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password

i am also facing same issue by using through yaml files , any solution please

@hari1992-web
Copy link

Error: Failed to start the workspace: "Failure executing: POST at: https://10.96.0.1/api/v1/namespaces. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. namespaces is forbidden: User "system:serviceaccount:default:che" cannot create resource "namespaces" in API group "" at the cluster scope. The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password."

@skabashnyuk
Copy link
Contributor

related to #15946
CC @ibuziuk

@hari1992-web
Copy link

hari1992-web commented Apr 1, 2020

related to #15946
CC @ibuziuk

Its not helpful please specify another answer

@skabashnyuk
Copy link
Contributor

@hari1992-web this issue is might be related to #15946 It's worth to check it again when #15946 would be closed.

@hari1992-web
Copy link

Press F5 or click here to try again.

Error: Failed to start the workspace: "Failure executing: GET at: https://10.96.0.1/api/v1/namespaces/che-che. Message: Unauthorized! Configured service account doesn't have access. Service account may have been revoked. Unauthorized. The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password."

@hari1992-web
Copy link

Press F5 or click here to try again.

Error: Failed to start the workspace: "Failure executing: GET at: https://10.96.0.1/api/v1/namespaces/che-che. Message: Unauthorized! Configured service account doesn't have access. Service account may have been revoked. Unauthorized. The error may be caused by an expired token or changed password. Update Che server deployment with a new token or password."

Screenshot from 2020-04-11 10-55-48

@hari1992-web

This comment has been minimized.

@ibuziuk
Copy link
Member

ibuziuk commented Apr 11, 2020

the original issue is che.openshift.io specific if you can still reproduce it on there, please provide details. Otherwise, please open a separate issue with details.

@hari1992-web

This comment has been minimized.

@sleshchenko

This comment has been minimized.

@hari1992-web

This comment has been minimized.

@sleshchenko
Copy link
Member

@hari1992-web We don't support installing through yaml files, we only support helm or operator.
For sure you can run helm with --dry-run and --debug options and extract yamls files you'll be able to apply manually, but it may be error-prone and I don't recommend doing it until you deeply understand Che Deployment. What the problem with chectl?
Please again, create a separate issue!

@ibuziuk ibuziuk added the severity/P1 Has a major impact to usage or development of the system. label Apr 14, 2020
@ibuziuk ibuziuk self-assigned this Apr 14, 2020
@ibuziuk
Copy link
Member

ibuziuk commented Apr 14, 2020

Looks like we had an issue with expired token on 1a and 1b. @skryzhny rotated the tokens and the issue should be fixed.
@hari1992-web could you please confirm that #12366 (comment) is no longer reproducible fo r you?

@ibuziuk ibuziuk added this to the 7.12 milestone Apr 14, 2020
@hari1992-web
Copy link

@hari1992-web We don't support installing through yaml files, we only support helm or operator.
For sure you can run helm with --dry-run and --debug options and extract yamls files you'll be able to apply manually, but it may be error-prone and I don't recommend doing it until you deeply understand Che Deployment. What the problem with chectl?
Please again, create a separate issue!

ok I will use now with chectl and error will be posted please wait
Thanks
Advance

@hari1992-web
Copy link

Readiness probe failed: HTTP probe failed with statuscode: 500
Back-off restarting failed container
Screenshot from 2020-04-16 10-26-13

facing this issue Iam using installating through chectl tool
please any body know this issue
Thanks Advance

@ibuziuk ibuziuk modified the milestones: 7.12, 7.13 Apr 28, 2020
@ibuziuk ibuziuk changed the title Unauthorized! Configured service account doesn't have access. [Hosted Che] Unauthorized! Configured service account doesn't have access. May 6, 2020
@tomgeorge tomgeorge modified the milestones: 7.13, 7.14 May 20, 2020
@nickboldt
Copy link
Contributor

1 month later, slip to backlog.

@nickboldt nickboldt modified the milestones: 7.14, Backlog - Hosted Che Jun 22, 2020
@ibuziuk
Copy link
Member

ibuziuk commented Jun 23, 2020

The original issue has been fixed. Closing

@ibuziuk ibuziuk closed this as completed Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hosted-che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests