question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to list devworkspaces: devworkspaces.workspace.devfile.io is forbidden: User cannot list resource "devworkspaces" in API group "workspace.devfile.io" in the namespace

See original GitHub issue

Summary

my chectl version image

i have installed eclipse-che on k8s platform using below command

chectl server:deploy --che-operator-cr-patch-yaml=/Users/divine/Documents/office_tasks/TAP-4540/terraformCheJune17/eclipseche_yaml/che-operator-cr-patch.yaml --platform=k8s --installer=operator --debug --k8spoderrorrechecktimeout=1000000 --domain=eclipseche-dchelladurai-chejune15.calatrava.vmware.com --k8spodreadytimeout=1000000

i have integrated dex with github connector . i followed the steps mentioned here , to configure dex with github connector.

when i hit eclipse-che dashboard url, the webpage redirects to github login and after successful authentication flow in github, the webpage redirects back to eclipse-che dashboard url, but it fails to completely load the webpage due to error in below api’s.

https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/devworkspacetemplates --403 - get request

https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/devworkspaces --403 - get request

https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/dockerconfig --403 - get request

below are the detailed information about the error

Failed to fetch available workspaces, reason: Failed to fetch the list of devWorkspaces. Unable to list devworkspaces: devworkspaces.workspace.devfile.io is forbidden: User "cdivine304@gmail.com" cannot list resource "devworkspaces" in API group "workspace.devfile.io" in the namespace "divine-c-che-5j1hbg"
image image image

i’m also receiving Unsupported OAuth provider github error message from che pod in eclipse-che namespace image

please help me to fix this error

Relevant information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sparkoocommented, Jun 20, 2022

I’m wondering why 1st way didn’t work. But good that it’s working for you now.

1reaction
Divine1commented, Jun 20, 2022

@sparkoo @tolusha Thank you responding with details

there were 2 suggestions mentioned in the above comments. i tested both of your suggestions. below is the feedback.

Suggestion1 (this didnot fix my issue)

i deleted my eclipse-che setup using chectl server:delete. then i updated by CheClusterCR file with below details.

apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: eclipse-che
spec:
  components:
    cheServer:
      extraProperties:
        CHE_OIDC_USERNAME__CLAIM: email
    database:
      externalDb: true
      postgresHostName: database-1-database.ap-south-1.rds.amazonaws.com
      postgresPort: "5432"
  networking:
    auth:
      identityProviderURL: https://dex-dchelladurai-chejune15.calatrava.vmware.com
      oAuthClientName: eclipse-che
      oAuthSecret: ZXhhbXBsZS1hcHAtc2VjcmV0

then i ran below command to deploy eclipse-che in k8s platform

chectl server:deploy --che-operator-cr-patch-yaml=/Users/divine/Documents/office_tasks/TAP-4540/terraformCheJune17/eclipseche_yaml/che-operator-cr-patch.yaml --platform=k8s --installer=operator --debug --k8spoderrorrechecktimeout=1000000 --domain=eclipseche-dchelladurai-chejune15.calatrava.vmware.com --k8spodreadytimeout=1000000

command completed successfully, but the issue was still replicated. my issue was not fixed.

may be i missed to do someother additional steps. any idea what was missed here?

Suggestion2 (this fixed my issue)

i deleted my eclipse-che setup using chectl server:delete. i edited kube-apiserver and updated with below details image

then i ran below command to deploy eclipse-che in k8s platform

chectl server:deploy --che-operator-cr-patch-yaml=/Users/divine/Documents/office_tasks/TAP-4540/terraformCheJune17/eclipseche_yaml/che-operator-cr-patch.yaml --platform=k8s --installer=operator --debug --k8spoderrorrechecktimeout=1000000 --domain=eclipseche-dchelladurai-chejune15.calatrava.vmware.com --k8spodreadytimeout=1000000

command completed successfully. My issue got fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Known issues Red Hat OpenShift Dev Spaces 3.0
A workspace using Java with the JBoss EAP 7.3 devfile fails with the following error message: No delegateCommandHandler for vscode.java.startDebugSession .
Read more >
Introduction to Devfile - GitHub Pages
A list of projects: the source code repositories; A list of commands: actions to manage the workspace components like running the dev tools,...
Read more >
Eclipse Che
The DevWorkspace Operator extends the Kubernetes API to support ... Kubernetes namespaces provisioner and the Devfile Registry that returns a list of sample ......
Read more >
Search OpenShift CI
#1910801 bug 23 months ago #1890995 bug 22 months ago #1921857 bug 22 months ago #1936404 bug 21 months ago
Read more >
Cloud Tool Time - Eclipse Che and DevWorkspace Engine
In this episode, you will learn about the cutting-edge version of Eclipse Che - a next-generation container development platform, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found