che: Error "backend not available" when user logs-in for the first time (namespace provisioning returns error 500)
Describe the bug
Dashboard is not working after installing inside a new AKS cluster
Che version
7.59
Steps to reproduce
1- Install in AKS following https://che.eclipseprojects.io/2022/07/25/@karatkep-installing-eclipse-che-on-aks.html 2- Downgrade the oauth-proxy to 7.2.0 as mentioned in #21886 3- Open the dasboard page and get error: “Backend in not available. Try to refresh the page or re-login to the Dashboard.”
Expected behavior
Open the eclipse che dashboard successfully
Runtime
other (please specify in additional context)
Screenshots
I follow this tutorial to install eclipse che using AKS
https://che.eclipseprojects.io/2022/07/25/@karatkep-installing-eclipse-che-on-aks.html
I also follow the instructions in this issue #21886 to downgrade the oauth-proxy to 7.2.0
I was able to install it without any issue but when I tried to get into the dashboard I get the following error:


I am able to see the swagger page

All pods are running

Installation method
chectl/latest
Environment
Azure
Additional context
Azure Kubernetes Version:

Release Notes Text
Prior to this fix the automatic creation of a developer namespace in Eclipse Che 7.60 was failing when the developer login name contained invalid characters for the RFC 3986 such as @ or :. As a consequence, developers with those login names, would not be able to access to Eclipse Che. This in now fixed and the namespaces are created successfully even if the developer login name had invalid characters for RFC 3986.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 31 (10 by maintainers)
the culprit is related to the removal of
user-preferencessecret as part of https://github.com/eclipse-che/che-server/pull/398 which was considered to be obsolete and not needed for Dev Workspaces. The current plan is to restore the secret and change the logic of how it is generated (previously the data was obtained from db, which should not be used now)I also encountered this issue yesterday evening, deploying Che
nexton OpenShift (GCP). However, I was able to log in as a regular, newly-created user on the cluster – only kubeadmin did not work for me.@l0rd, just want to confirm that Che 7.59 creates the namespaces automatically. Not sure about Che 7.60 - I did not try it yet.
@alfespa17, my congrats!
P.S. I remember it took several days (even more - about week) to deep dive into che world before make it workable for me.
@karatkep thank you for all your help. I was able to make it work.
The CleCluster spec is the following:
I used the following configuration:
Azure Kubernetes Service: 1.24.6 with Azure AD authentication with Azure RBAC
After the installation was completed I had to provision a namespace for my user using the following reference
Create a file with the following name: “workspace.yaml”
I am not really sure if creating a namespace for my user is a normal flow but it make it works.